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