1// MAP API module 2 3java_library { 4 name: "bluetooth.mapsapi", 5 6 srcs: ["lib/mapapi/**/*.java"], 7} 8 9// Bluetooth JNI 10 11cc_library_shared { 12 name: "libbluetooth_jni", 13 srcs: ["jni/**/*.cpp"], 14 header_libs: [ 15 "jni_headers", 16 "libbluetooth_headers", 17 ], 18 include_dirs: [ 19 "system/bt/types", 20 ], 21 shared_libs: [ 22 "libbase", 23 "libchrome", 24 "liblog", 25 "libnativehelper", 26 ], 27 static_libs: [ 28 "libbluetooth-types", 29 ], 30 cflags: [ 31 "-Wall", 32 "-Werror", 33 "-Wextra", 34 "-Wno-unused-parameter", 35 ], 36 sanitize: { 37 scs: true, 38 }, 39} 40 41// Bluetooth APK 42 43android_app { 44 name: "Bluetooth", 45 46 srcs: [ 47 "src/**/*.java", 48 ":statslog-bluetooth-java-gen", 49 ], 50 platform_apis: true, 51 certificate: "platform", 52 53 jni_libs: ["libbluetooth_jni"], 54 libs: [ 55 "javax.obex", 56 "services.net", 57 ], 58 static_libs: [ 59 "com.android.vcard", 60 "bluetooth.mapsapi", 61 "sap-api-java-static", 62 "services.net", 63 "libprotobuf-java-lite", 64 "bluetooth-protos-lite", 65 "androidx.core_core", 66 "androidx.legacy_legacy-support-v4", 67 "androidx.lifecycle_lifecycle-livedata", 68 "androidx.room_room-runtime", 69 "guava", 70 ], 71 72 plugins: [ 73 "androidx.room_room-compiler-plugin", 74 ], 75 76 // Add in path to Bluetooth directory because local path does not exist 77 javacflags: ["-Aroom.schemaLocation=packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/schemas"], 78 79 optimize: { 80 enabled: false, 81 }, 82 required: ["libbluetooth"], 83 apex_available: [ 84 "//apex_available:platform", 85 "com.android.bluetooth.updatable", 86 ], 87} 88 89genrule { 90 name: "statslog-bluetooth-java-gen", 91 tools: ["stats-log-api-gen"], 92 cmd: "$(location stats-log-api-gen) --java $(out) --module bluetooth" 93 + " --javaPackage com.android.bluetooth --javaClass BluetoothStatsLog --worksource", 94 out: ["com/android/bluetooth/BluetoothStatsLog.java"], 95} 96