summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorZach Johnson <zachoverflow@google.com>2019-11-09 17:33:44 -0800
committerZach Johnson <zachoverflow@google.com>2019-11-19 14:36:57 -0800
commit76712b5a38e3c7034a0cd4063085cf0ced99e8da (patch)
treee59c0cbae053945574cfe36356cada1eb0487940 /Android.bp
parent9e4a8e976611eabb7c2ce9f51610be9dd948781f (diff)
downloadBluetooth-76712b5a38e3c7034a0cd4063085cf0ced99e8da.tar.gz
Move jni/Android.bp into Android.bp
Bug: 142747680 Test: compile & run on device, test basic functionality working Change-Id: I9dccd0b47e69762dc3f33ba7dffb8bc219e5cf49
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp35
1 files changed, 30 insertions, 5 deletions
diff --git a/Android.bp b/Android.bp
index a0d1adde9..103575085 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,8 +1,3 @@
-subdirs = [
- "jni",
-]
-
-
// MAP API module
java_library {
@@ -11,6 +6,36 @@ java_library {
srcs: ["lib/mapapi/**/*.java"],
}
+// Bluetooth JNI
+
+cc_library_shared {
+ name: "libbluetooth_jni",
+ compile_multilib: "first",
+ srcs: ["jni/**/*.cpp"],
+ header_libs: ["libbluetooth_headers"],
+ include_dirs: [
+ "system/bt/types",
+ ],
+ shared_libs: [
+ "libbase",
+ "libchrome",
+ "libnativehelper",
+ "liblog",
+ ],
+ static_libs: [
+ "libbluetooth-types",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wextra",
+ "-Wno-unused-parameter",
+ ],
+ sanitize: {
+ scs: true,
+ },
+}
+
// Bluetooth APK
android_app {