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/adapter_state.cc",
13        "bluetooth/advertise_data.cc",
14        "bluetooth/advertise_settings.cc",
15        "bluetooth/characteristic.cc",
16        "bluetooth/descriptor.cc",
17        "bluetooth/scan_filter.cc",
18        "bluetooth/scan_result.cc",
19        "bluetooth/scan_settings.cc",
20        "bluetooth/service.cc",
21        "bluetooth/util/atomic_string.cc",
22    ],
23    export_include_dirs: ["./"],
24    include_dirs: ["system/bt"],
25    shared_libs: [
26        "libbase",
27    ],
28}
29
30// Bluetooth Binder shared library
31cc_library_static {
32    name: "libbluetooth-binder-common",
33    defaults: ["fluoride_defaults"],
34    cflags: [
35        /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
36        "-fvisibility=default",
37    ],
38    header_libs: [ "libbluetooth_headers" ],
39    srcs: [
40        "android/bluetooth/IBluetooth.aidl",
41        "android/bluetooth/IBluetoothCallback.aidl",
42        "android/bluetooth/IBluetoothGattClient.aidl",
43        "android/bluetooth/IBluetoothGattClientCallback.aidl",
44        "android/bluetooth/IBluetoothGattServer.aidl",
45        "android/bluetooth/IBluetoothGattServerCallback.aidl",
46        "android/bluetooth/IBluetoothLeAdvertiser.aidl",
47        "android/bluetooth/IBluetoothLeAdvertiserCallback.aidl",
48        "android/bluetooth/IBluetoothLeScanner.aidl",
49        "android/bluetooth/IBluetoothLeScannerCallback.aidl",
50        "android/bluetooth/IBluetoothLowEnergy.aidl",
51        "android/bluetooth/IBluetoothLowEnergyCallback.aidl",
52        "android/bluetooth/advertise_data.cc",
53        "android/bluetooth/advertise_settings.cc",
54        "android/bluetooth/bluetooth_gatt_characteristic.cc",
55        "android/bluetooth/bluetooth_gatt_descriptor.cc",
56        "android/bluetooth/bluetooth_gatt_included_service.cc",
57        "android/bluetooth/bluetooth_gatt_service.cc",
58        "android/bluetooth/scan_filter.cc",
59        "android/bluetooth/scan_result.cc",
60        "android/bluetooth/scan_settings.cc",
61        "android/bluetooth/uuid.cc",
62    ],
63    aidl: {
64        export_aidl_headers: true,
65        include_dirs: [
66            "frameworks/native/aidl/binder",
67            "system/bt/service/common",
68        ],
69    },
70    export_include_dirs: ["./"],
71    whole_static_libs: ["libbluetooth-common"],
72    shared_libs: [
73        "libbase",
74        "libbinder",
75    ],
76    static_libs: [
77        "libbluetooth-types",
78    ]
79}
80