• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Bluetooth types
2cc_library_static {
3    name: "libbluetooth-common",
4    defaults: ["fluoride_defaults"],
5    cflags: [
6        /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
7        "-fvisibility=default",
8    ],
9    host_supported: true,
10    header_libs: [ "libbluetooth_headers" ],
11    srcs: [
12        "bluetooth/a2dp_codec_config.cc",
13        "bluetooth/adapter_state.cc",
14        "bluetooth/advertise_data.cc",
15        "bluetooth/advertise_settings.cc",
16        "bluetooth/avrcp_int_value.cc",
17        "bluetooth/avrcp_media_attr.cc",
18        "bluetooth/avrcp_register_notification_response.cc",
19        "bluetooth/characteristic.cc",
20        "bluetooth/descriptor.cc",
21        "bluetooth/remote_device_props.cc",
22        "bluetooth/scan_filter.cc",
23        "bluetooth/scan_result.cc",
24        "bluetooth/scan_settings.cc",
25        "bluetooth/service.cc",
26        "bluetooth/util/atomic_string.cc",
27    ],
28    export_include_dirs: ["./"],
29    include_dirs: ["system/bt"],
30    shared_libs: [
31        "libbase",
32    ],
33}
34
35// Bluetooth Binder shared library
36cc_library_static {
37    name: "libbluetooth-binder-common",
38    defaults: ["fluoride_defaults"],
39    cflags: [
40        /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
41        "-fvisibility=default",
42    ],
43    header_libs: [ "libbluetooth_headers" ],
44    srcs: [
45        "android/bluetooth/IBluetooth.aidl",
46        "android/bluetooth/IBluetoothA2dpSink.aidl",
47        "android/bluetooth/IBluetoothA2dpSinkCallback.aidl",
48        "android/bluetooth/IBluetoothA2dpSource.aidl",
49        "android/bluetooth/IBluetoothA2dpSourceCallback.aidl",
50        "android/bluetooth/IBluetoothAvrcpControl.aidl",
51        "android/bluetooth/IBluetoothAvrcpControlCallback.aidl",
52        "android/bluetooth/IBluetoothAvrcpTarget.aidl",
53        "android/bluetooth/IBluetoothAvrcpTargetCallback.aidl",
54        "android/bluetooth/IBluetoothCallback.aidl",
55        "android/bluetooth/IBluetoothGattClient.aidl",
56        "android/bluetooth/IBluetoothGattClientCallback.aidl",
57        "android/bluetooth/IBluetoothGattServer.aidl",
58        "android/bluetooth/IBluetoothGattServerCallback.aidl",
59        "android/bluetooth/IBluetoothLeAdvertiser.aidl",
60        "android/bluetooth/IBluetoothLeAdvertiserCallback.aidl",
61        "android/bluetooth/IBluetoothLeScanner.aidl",
62        "android/bluetooth/IBluetoothLeScannerCallback.aidl",
63        "android/bluetooth/IBluetoothLowEnergy.aidl",
64        "android/bluetooth/IBluetoothLowEnergyCallback.aidl",
65        "android/bluetooth/advertise_data.cc",
66        "android/bluetooth/advertise_settings.cc",
67        "android/bluetooth/bluetooth_a2dp_codec_config.cc",
68        "android/bluetooth/bluetooth_avrcp_int_value.cc",
69        "android/bluetooth/bluetooth_avrcp_media_attr.cc",
70        "android/bluetooth/bluetooth_avrcp_register_notification_response.cc",
71        "android/bluetooth/bluetooth_avrcp_string_value.cc",
72        "android/bluetooth/bluetooth_gatt_characteristic.cc",
73        "android/bluetooth/bluetooth_gatt_descriptor.cc",
74        "android/bluetooth/bluetooth_gatt_included_service.cc",
75        "android/bluetooth/bluetooth_gatt_service.cc",
76        "android/bluetooth/bluetooth_remote_device_props.cc",
77        "android/bluetooth/scan_filter.cc",
78        "android/bluetooth/scan_result.cc",
79        "android/bluetooth/scan_settings.cc",
80        "android/bluetooth/uuid.cc",
81    ],
82    aidl: {
83        export_aidl_headers: true,
84        include_dirs: [
85            "frameworks/native/aidl/binder",
86            "system/bt/service/common",
87        ],
88    },
89    export_include_dirs: ["./"],
90    whole_static_libs: ["libbluetooth-common"],
91    shared_libs: [
92        "libbase",
93        "libbinder",
94    ],
95    static_libs: [
96        "libbluetooth-types",
97    ]
98}
99