summaryrefslogtreecommitdiff
path: root/system/stack/test/fuzzers/Android.bp
blob: 35e25aad6a8357b5a80a1eca720e58a8a0f1055a (plain)
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_bt_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_bt_license"],
}

cc_defaults {
    name: "bluetooth_fuzz_stack_defaults",
    defaults: [
        "fluoride_defaults",
        "latest_android_hardware_audio_common_ndk_static",
        "latest_android_hardware_bluetooth_audio_ndk_static",
        "latest_android_media_audio_common_types_ndk_static",
    ],
    cflags: [
        // Fuzzers are hopeless..
        "-Wno-missing-prototypes",
    ],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/bta/include",
        "packages/modules/Bluetooth/system/bta/sys",
        "packages/modules/Bluetooth/system/gd",
        "packages/modules/Bluetooth/system/include",
        "packages/modules/Bluetooth/system/stack/include",
        "packages/modules/Bluetooth/system/stack/test",
    ],
    static_libs: [
        "android.hardware.audio.common@5.0",
        "android.hardware.bluetooth.audio@2.0",
        "android.hardware.bluetooth.audio@2.1",
        "android.hardware.bluetooth@1.0",
        "android.hardware.bluetooth@1.1",
        "android.hardware.common-V2-ndk",
        "android.hardware.common.fmq-V1-ndk",
        "android.system.suspend-V1-ndk",
        "android.system.suspend.control-V1-ndk",
        "bluetooth_flags_c_lib",
        "libFraunhoferAAC",
        "libbluetooth-types",
        "libbluetooth_core_rs",
        "libbluetooth_crypto_toolbox",
        "libbluetooth_gd",
        "libbluetooth_log",
        "libbt-audio-hal-interface",
        "libbt-bta",
        "libbt-btu-main-thread",
        "libbt-common",
        "libbt-hci",
        "libbt-jni-thread",
        "libbt-sbc-decoder",
        "libbt-sbc-encoder",
        "libbt-stack",
        "libbtcore",
        "libbtdevice",
        "libbte",
        "libbtif",
        "libchrome",
        "libcom.android.sysprop.bluetooth.wrapped",
        "libexpresslog",
        "libflags_rust_cpp_bridge",
        "libg722codec",
        "liblc3",
        "libopus",
        "libosi",
        "libstatslog_bt",
        "libstatslog_express",
        "libtextclassifier_hash_static",
        "libudrv-uipc",
    ],
    shared_libs: [
        "libPlatformProperties",
        "libaaudio",
        "libaconfig_storage_read_api_cc",
        "libbase",
        "libbinder",
        "libbinder_ndk",
        "libcrypto",
        "libcutils",
        "libevent",
        "libfmq",
        "libhidlbase",
        "liblog",
        "libprotobuf-cpp-lite",
        "libstatssocket",
        "libutils",
        "server_configurable_flags",
    ],
    target: {
        android: {
            static_libs: [
                "libperfetto_client_experimental",
            ],
        },
    },
}

cc_fuzz {
    name: "bluetooth_fuzz_stack_a2dp",
    defaults: ["bluetooth_fuzz_stack_defaults"],
    srcs: ["a2dp/fuzz_a2dp.cc"],
}

cc_fuzz {
    name: "bluetooth_fuzz_stack_a2dp_codec",
    defaults: ["bluetooth_fuzz_stack_defaults"],
    srcs: ["a2dp/codec/fuzz_a2dp_codec.cc"],
}

cc_fuzz {
    name: "bluetooth_fuzz_stack_a2dp_codec_info",
    defaults: ["bluetooth_fuzz_stack_defaults"],
    srcs: ["a2dp/codec/fuzz_a2dp_codec_info.cc"],
}

cc_fuzz {
    name: "bluetooth_fuzz_stack_a2dp_codec_config",
    defaults: ["bluetooth_fuzz_stack_defaults"],
    srcs: ["a2dp/codec/fuzz_a2dp_codec_config.cc"],
}

cc_fuzz {
    name: "bluetooth_fuzz_stack_avrc",
    defaults: ["bluetooth_fuzz_stack_defaults"],
    srcs: ["avrc/fuzz_avrc.cc"],
}

cc_fuzz {
    name: "bluetooth_fuzz_stack_sdp",
    defaults: ["bluetooth_fuzz_stack_defaults"],
    srcs: ["sdp/fuzz_sdp.cc"],
}