• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "system_bt_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["system_bt_license"],
24}
25
26cc_defaults {
27    name: "btcore_fuzz_defaults",
28    cflags: [
29        // http://b/264549607
30        "-Wno-deprecated-builtins",
31        // http://b/267867903
32        "-Wno-deprecated-declarations",
33    ],
34    shared_libs: [
35        "android.hardware.bluetooth@1.0",
36        "android.hardware.bluetooth@1.1",
37        "libcrypto",
38        "libstatslog_bt",
39    ],
40    static_libs: [
41        "libbase",
42        "libbluetooth-protos",
43        "libbluetooth-types",
44        "libbluetooth_rust_interop",
45        "libbt-common",
46        "libbt_shim_bridge",
47        "libbt_shim_ffi",
48        "libbtcore",
49        "libchrome",
50        "libevent",
51        "liblog",
52        "libmodpb64",
53        "libosi",
54        "libprotobuf-cpp-lite",
55        "libvndksupport",
56    ],
57    include_dirs: [
58        "packages/modules/Bluetooth/system",
59        "packages/modules/Bluetooth/system/gd/rust/shim",
60    ],
61    header_libs: [
62        "libbluetooth_headers",
63    ],
64    fuzz_config: {
65        cc: ["android-bluetooth-security@google.com"],
66        componentid: 27441,
67    },
68}
69
70cc_fuzz {
71    name: "btcore_device_class_fuzzer",
72    defaults: [
73        "btcore_fuzz_defaults",
74    ],
75    srcs: [
76        "btcore_device_class_fuzzer.cpp",
77    ],
78}
79
80cc_fuzz {
81    name: "btcore_property_fuzzer",
82    defaults: [
83        "btcore_fuzz_defaults",
84    ],
85    srcs: [
86        "btcore_property_fuzzer.cpp",
87    ],
88
89}
90
91cc_fuzz {
92    name: "btcore_module_fuzzer",
93    enabled: false,
94    defaults: [
95        "btcore_fuzz_defaults",
96    ],
97    srcs: [
98        "btcore_module_fuzzer.cpp",
99    ],
100}
101