• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library_shared {
2    name: "libbluetooth-binder",
3    product_variables: {
4        pdk: {
5            enabled: false,
6        },
7    },
8    srcs: [
9        "android/bluetooth/bluetooth_device.cc",
10        "android/bluetooth/IBluetoothSocketManager.aidl",
11        "android/os/parcel_uuid.cc",
12/* TODO: Uncomment this files as they get converted one-by-one into native implementation
13        "android/bluetooth/IBluetooth.aidl",
14        "android/bluetooth/IBluetoothA2dp.aidl",
15        "android/bluetooth/IBluetoothA2dpSink.aidl",
16        "android/bluetooth/IBluetoothAvrcpController.aidl",
17        "android/bluetooth/IBluetoothAvrcpTarget.aidl",
18        "android/bluetooth/IBluetoothCallback.aidl",
19        "android/bluetooth/IBluetoothProfileServiceConnection.aidl",
20        "android/bluetooth/IBluetoothHeadset.aidl",
21        "android/bluetooth/IBluetoothHeadsetPhone.aidl",
22        "android/bluetooth/IBluetoothHearingAid.aidl",
23        "android/bluetooth/IBluetoothHidHost.aidl",
24        "android/bluetooth/IBluetoothPan.aidl",
25        "android/bluetooth/IBluetoothManager.aidl",
26        "android/bluetooth/IBluetoothManagerCallback.aidl",
27        "android/bluetooth/IBluetoothMap.aidl",
28        "android/bluetooth/IBluetoothMapClient.aidl",
29        "android/bluetooth/IBluetoothPbap.aidl",
30        "android/bluetooth/IBluetoothPbapClient.aidl",
31        "android/bluetooth/IBluetoothSap.aidl",
32        "android/bluetooth/IBluetoothStateChangeCallback.aidl",
33        "android/bluetooth/IBluetoothHeadsetClient.aidl",
34        "android/bluetooth/IBluetoothHidDevice.aidl",
35        "android/bluetooth/IBluetoothHidDeviceCallback.aidl",
36        "android/bluetooth/IBluetoothGatt.aidl",
37        "android/bluetooth/IBluetoothGattCallback.aidl",
38        "android/bluetooth/IBluetoothMetadataListener.aidl",
39        "android/bluetooth/IBluetoothGattServerCallback.aidl",
40        "android/bluetooth/le/IAdvertisingSetCallback.aidl",
41        "android/bluetooth/le/IPeriodicAdvertisingCallback.aidl",
42        "android/bluetooth/le/IScannerCallback.aidl"
43*/
44     ],
45    export_include_dirs: [ "./"],
46    aidl: {
47        export_aidl_headers: true,
48        include_dirs: [
49            "frameworks/native/aidl/binder",
50
51             /* required for android.os.ParcelUuid, and android.os.ParcelFileDescriptor */
52            "frameworks/base/core/java",
53            "system/bt/binder",
54        ],
55    },
56    include_dirs: [
57        "libnativehelper/include/nativehelper",
58        "system/bt/types",
59    ],
60    shared_libs: [
61        "libandroid_runtime",
62        "libbinder",
63        "libchrome",
64        "libnativehelper",
65        "libcutils",
66        "libutils",
67        "liblog",
68    ],
69
70    static_libs: [
71        "libbluetooth-types",
72    ],
73    cflags: [
74        "-Wall",
75        "-Werror",
76        "-Wextra",
77        "-Wno-unused-parameter",
78    ],
79    sanitize: {
80        scs: true,
81    },
82}
83
84// AIDL interface between libbluetooth-binder and framework.jar
85filegroup {
86    name: "libbluetooth-binder-aidl",
87    srcs: [
88        "android/bluetooth/IBluetooth.aidl",
89        "android/bluetooth/IBluetoothA2dp.aidl",
90        "android/bluetooth/IBluetoothA2dpSink.aidl",
91        "android/bluetooth/IBluetoothAvrcpController.aidl",
92        "android/bluetooth/IBluetoothAvrcpTarget.aidl",
93        "android/bluetooth/IBluetoothCallback.aidl",
94        "android/bluetooth/IBluetoothProfileServiceConnection.aidl",
95        "android/bluetooth/IBluetoothHeadset.aidl",
96        "android/bluetooth/IBluetoothHeadsetPhone.aidl",
97        "android/bluetooth/IBluetoothHearingAid.aidl",
98        "android/bluetooth/IBluetoothHidHost.aidl",
99        "android/bluetooth/IBluetoothPan.aidl",
100        "android/bluetooth/IBluetoothManager.aidl",
101        "android/bluetooth/IBluetoothManagerCallback.aidl",
102        "android/bluetooth/IBluetoothMap.aidl",
103        "android/bluetooth/IBluetoothMapClient.aidl",
104        "android/bluetooth/IBluetoothPbap.aidl",
105        "android/bluetooth/IBluetoothPbapClient.aidl",
106        "android/bluetooth/IBluetoothSap.aidl",
107        "android/bluetooth/IBluetoothSocketManager.aidl",
108        "android/bluetooth/IBluetoothStateChangeCallback.aidl",
109        "android/bluetooth/IBluetoothHeadsetClient.aidl",
110        "android/bluetooth/IBluetoothHidDevice.aidl",
111        "android/bluetooth/IBluetoothHidDeviceCallback.aidl",
112        "android/bluetooth/IBluetoothGatt.aidl",
113        "android/bluetooth/IBluetoothGattCallback.aidl",
114        "android/bluetooth/IBluetoothMetadataListener.aidl",
115        "android/bluetooth/IBluetoothGattServerCallback.aidl",
116        "android/bluetooth/le/IAdvertisingSetCallback.aidl",
117        "android/bluetooth/le/IPeriodicAdvertisingCallback.aidl",
118        "android/bluetooth/le/IScannerCallback.aidl",
119    ],
120}
121