summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp38
1 files changed, 38 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..e368e33
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,38 @@
+capi_srcs = [
+ "src/CommonAPI/**/*.cpp"
+]
+
+cc_defaults {
+ name: "capi_defaults",
+ cppflags: [
+ "-std=c++11",
+ "-Wall",
+ "-Wextra",
+ "-Wformat",
+ "-Wformat-security",
+ "-Wconversion",
+ "-Wno-attributes",
+ "-fexceptions",
+ "-fstrict-aliasing",
+ "-fstack-protector",
+ "-fasynchronous-unwind-tables",
+ "-fno-omit-frame-pointer",
+ "-Werror",
+ "-fvisibility=hidden",
+ "-DCOMMONAPI_INTERNAL_COMPILATION"
+ ]
+}
+
+cc_library_shared {
+ name: "libCommonAPI",
+ vendor: true,
+ srcs: capi_srcs,
+ defaults: [
+ "capi_defaults"
+ ],
+ local_include_dirs: [
+ "include"
+ ],
+ export_include_dirs: ["include"],
+ rtti: true
+}