xref: /aosp_15_r20/system/chre/chpp/test/fuzz/Android.bp (revision 84e339476a462649f82315436d70fd732297a399)
1*84e33947SAndroid Build Coastguard Worker/*
2*84e33947SAndroid Build Coastguard Worker * Copyright (C) 2021 The Android Open Source Project
3*84e33947SAndroid Build Coastguard Worker *
4*84e33947SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*84e33947SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*84e33947SAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*84e33947SAndroid Build Coastguard Worker *
8*84e33947SAndroid Build Coastguard Worker *      http://www.apache.org/licenses/LICENSE-2.0
9*84e33947SAndroid Build Coastguard Worker *
10*84e33947SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*84e33947SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*84e33947SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*84e33947SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*84e33947SAndroid Build Coastguard Worker * limitations under the License.
15*84e33947SAndroid Build Coastguard Worker */
16*84e33947SAndroid Build Coastguard Worker
17*84e33947SAndroid Build Coastguard Workerpackage {
18*84e33947SAndroid Build Coastguard Worker    default_team: "trendy_team_context_hub",
19*84e33947SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
20*84e33947SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
21*84e33947SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "system_chre_license"
22*84e33947SAndroid Build Coastguard Worker    // to get the below license kinds:
23*84e33947SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
24*84e33947SAndroid Build Coastguard Worker    default_applicable_licenses: ["system_chre_license"],
25*84e33947SAndroid Build Coastguard Worker}
26*84e33947SAndroid Build Coastguard Worker
27*84e33947SAndroid Build Coastguard Workercc_fuzz {
28*84e33947SAndroid Build Coastguard Worker    name: "chpp_wifi_scan_param_fuzzer",
29*84e33947SAndroid Build Coastguard Worker    srcs: [
30*84e33947SAndroid Build Coastguard Worker        "chpp_wifi_scan_param_fuzzer.cpp",
31*84e33947SAndroid Build Coastguard Worker    ],
32*84e33947SAndroid Build Coastguard Worker    static_libs: [
33*84e33947SAndroid Build Coastguard Worker        "chre_chpp_linux",
34*84e33947SAndroid Build Coastguard Worker        "chre_pal_linux",
35*84e33947SAndroid Build Coastguard Worker    ],
36*84e33947SAndroid Build Coastguard Worker    fuzz_config: {
37*84e33947SAndroid Build Coastguard Worker        cc: [
38*84e33947SAndroid Build Coastguard Worker            "[email protected]",
39*84e33947SAndroid Build Coastguard Worker            "[email protected]",
40*84e33947SAndroid Build Coastguard Worker        ],
41*84e33947SAndroid Build Coastguard Worker        componentid: 156070,
42*84e33947SAndroid Build Coastguard Worker        fuzz_on_haiku_host: true,
43*84e33947SAndroid Build Coastguard Worker        fuzz_on_haiku_device: false,
44*84e33947SAndroid Build Coastguard Worker    },
45*84e33947SAndroid Build Coastguard Worker
46*84e33947SAndroid Build Coastguard Worker    // If true, build and run on x86 in addition to on-device.
47*84e33947SAndroid Build Coastguard Worker    host_supported: true,
48*84e33947SAndroid Build Coastguard Worker    device_supported: false,
49*84e33947SAndroid Build Coastguard Worker}
50