summaryrefslogtreecommitdiffstats
path: root/bluetooth/1.0/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'bluetooth/1.0/Android.bp')
-rw-r--r--bluetooth/1.0/Android.bp177
1 files changed, 11 insertions, 166 deletions
diff --git a/bluetooth/1.0/Android.bp b/bluetooth/1.0/Android.bp
index e5b3b4be02..49df8a324a 100644
--- a/bluetooth/1.0/Android.bp
+++ b/bluetooth/1.0/Android.bp
@@ -1,177 +1,22 @@
-// This file is autogenerated by hidl-gen. Do not edit manually.
+// This file is autogenerated by hidl-gen -Landroidbp.
-filegroup {
- name: "android.hardware.bluetooth@1.0_hal",
- srcs: [
- "types.hal",
- "IBluetoothHci.hal",
- "IBluetoothHciCallbacks.hal",
- ],
-}
-
-genrule {
- name: "android.hardware.bluetooth@1.0_genc++",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
- srcs: [
- ":android.hardware.bluetooth@1.0_hal",
- ],
- out: [
- "android/hardware/bluetooth/1.0/types.cpp",
- "android/hardware/bluetooth/1.0/BluetoothHciAll.cpp",
- "android/hardware/bluetooth/1.0/BluetoothHciCallbacksAll.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.bluetooth@1.0_genc++_headers",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
- srcs: [
- ":android.hardware.bluetooth@1.0_hal",
- ],
- out: [
- "android/hardware/bluetooth/1.0/types.h",
- "android/hardware/bluetooth/1.0/hwtypes.h",
- "android/hardware/bluetooth/1.0/IBluetoothHci.h",
- "android/hardware/bluetooth/1.0/IHwBluetoothHci.h",
- "android/hardware/bluetooth/1.0/BnHwBluetoothHci.h",
- "android/hardware/bluetooth/1.0/BpHwBluetoothHci.h",
- "android/hardware/bluetooth/1.0/BsBluetoothHci.h",
- "android/hardware/bluetooth/1.0/IBluetoothHciCallbacks.h",
- "android/hardware/bluetooth/1.0/IHwBluetoothHciCallbacks.h",
- "android/hardware/bluetooth/1.0/BnHwBluetoothHciCallbacks.h",
- "android/hardware/bluetooth/1.0/BpHwBluetoothHciCallbacks.h",
- "android/hardware/bluetooth/1.0/BsBluetoothHciCallbacks.h",
- ],
-}
-
-cc_library {
+hidl_interface {
name: "android.hardware.bluetooth@1.0",
- defaults: ["hidl-module-defaults"],
- generated_sources: ["android.hardware.bluetooth@1.0_genc++"],
- generated_headers: ["android.hardware.bluetooth@1.0_genc++_headers"],
- export_generated_headers: ["android.hardware.bluetooth@1.0_genc++_headers"],
- vendor_available: true,
+ root: "android.hardware",
vndk: {
enabled: true,
},
- shared_libs: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "liblog",
- "libutils",
- "libcutils",
- ],
- export_shared_lib_headers: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "libutils",
- ],
-}
-
-genrule {
- name: "android.hardware.bluetooth-V1.0-java_gen_java",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
srcs: [
- ":android.hardware.bluetooth@1.0_hal",
- ],
- out: [
- "android/hardware/bluetooth/V1_0/Status.java",
- "android/hardware/bluetooth/V1_0/IBluetoothHci.java",
- "android/hardware/bluetooth/V1_0/IBluetoothHciCallbacks.java",
- ],
-}
-
-java_library {
- name: "android.hardware.bluetooth-V1.0-java",
- no_framework_libs: true,
- defaults: ["hidl-java-module-defaults"],
- srcs: [":android.hardware.bluetooth-V1.0-java_gen_java"],
- libs: [
- "hwbinder",
- "android.hidl.base-V1.0-java",
- ]
-}
-
-// This package does not export any types. Not creating java constants export.
-
-
-genrule {
- name: "android.hardware.bluetooth@1.0-adapter-helper_genc++",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
- srcs: [
- ":android.hardware.bluetooth@1.0_hal",
- ],
- out: [
- "android/hardware/bluetooth/1.0/ABluetoothHci.cpp",
- "android/hardware/bluetooth/1.0/ABluetoothHciCallbacks.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.bluetooth@1.0-adapter-helper_genc++_headers",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
- srcs: [
- ":android.hardware.bluetooth@1.0_hal",
+ "types.hal",
+ "IBluetoothHci.hal",
+ "IBluetoothHciCallbacks.hal",
],
- out: [
- "android/hardware/bluetooth/1.0/ABluetoothHci.h",
- "android/hardware/bluetooth/1.0/ABluetoothHciCallbacks.h",
+ interfaces: [
+ "android.hidl.base@1.0",
],
-}
-
-cc_library {
- name: "android.hardware.bluetooth@1.0-adapter-helper",
- defaults: ["hidl-module-defaults"],
- generated_sources: ["android.hardware.bluetooth@1.0-adapter-helper_genc++"],
- generated_headers: ["android.hardware.bluetooth@1.0-adapter-helper_genc++_headers"],
- export_generated_headers: ["android.hardware.bluetooth@1.0-adapter-helper_genc++_headers"],
- vendor_available: true,
- shared_libs: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "liblog",
- "libutils",
- "libcutils",
- "libhidladapter",
- "android.hardware.bluetooth@1.0",
- "android.hidl.base@1.0-adapter-helper",
+ types: [
+ "Status",
],
- export_shared_lib_headers: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "libutils",
- "libhidladapter",
- "android.hardware.bluetooth@1.0",
- "android.hidl.base@1.0-adapter-helper",
- ],
-}
-
-genrule {
- name: "android.hardware.bluetooth@1.0-adapter_genc++",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
- out: ["main.cpp"]
+ gen_java: true,
}
-cc_test {
- name: "android.hardware.bluetooth@1.0-adapter",
- defaults: ["hidl-module-defaults"],
- shared_libs: [
- "libhidladapter",
- "libhidlbase",
- "libhidltransport",
- "libutils",
- "android.hardware.bluetooth@1.0",
- "android.hardware.bluetooth@1.0-adapter-helper",
- ],
- generated_sources: ["android.hardware.bluetooth@1.0-adapter_genc++"],
-}