xref: /aosp_15_r20/tools/security/fuzzing/orphans/hex/Android.bp (revision d9ecfb0f4d734c9ce41cde8ac4d585b094fd4222)
1*d9ecfb0fSAndroid Build Coastguard Worker// Copyright 2022, The Android Open Source Project
2*d9ecfb0fSAndroid Build Coastguard Worker//
3*d9ecfb0fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d9ecfb0fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d9ecfb0fSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d9ecfb0fSAndroid Build Coastguard Worker//
7*d9ecfb0fSAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d9ecfb0fSAndroid Build Coastguard Worker//
9*d9ecfb0fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d9ecfb0fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d9ecfb0fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d9ecfb0fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d9ecfb0fSAndroid Build Coastguard Worker// limitations under the License.
14*d9ecfb0fSAndroid Build Coastguard Worker
15*d9ecfb0fSAndroid Build Coastguard Workerpackage {
16*d9ecfb0fSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
17*d9ecfb0fSAndroid Build Coastguard Worker}
18*d9ecfb0fSAndroid Build Coastguard Worker
19*d9ecfb0fSAndroid Build Coastguard Workerrust_fuzz {
20*d9ecfb0fSAndroid Build Coastguard Worker    name: "hex_encoding_fuzzer",
21*d9ecfb0fSAndroid Build Coastguard Worker    srcs: ["hex_encoding_fuzzer.rs"],
22*d9ecfb0fSAndroid Build Coastguard Worker    rustlibs: [
23*d9ecfb0fSAndroid Build Coastguard Worker        "libhex",
24*d9ecfb0fSAndroid Build Coastguard Worker    ],
25*d9ecfb0fSAndroid Build Coastguard Worker    fuzz_config: {
26*d9ecfb0fSAndroid Build Coastguard Worker        cc: [
27*d9ecfb0fSAndroid Build Coastguard Worker            "[email protected]",
28*d9ecfb0fSAndroid Build Coastguard Worker        ],
29*d9ecfb0fSAndroid Build Coastguard Worker        fuzz_on_haiku_device: true,
30*d9ecfb0fSAndroid Build Coastguard Worker        fuzz_on_haiku_host: true,
31*d9ecfb0fSAndroid Build Coastguard Worker    },
32*d9ecfb0fSAndroid Build Coastguard Worker}
33*d9ecfb0fSAndroid Build Coastguard Worker
34*d9ecfb0fSAndroid Build Coastguard Workerrust_fuzz {
35*d9ecfb0fSAndroid Build Coastguard Worker    name: "hex_decoding_fuzzer",
36*d9ecfb0fSAndroid Build Coastguard Worker    srcs: ["hex_decoding_fuzzer.rs"],
37*d9ecfb0fSAndroid Build Coastguard Worker    rustlibs: [
38*d9ecfb0fSAndroid Build Coastguard Worker        "libhex",
39*d9ecfb0fSAndroid Build Coastguard Worker    ],
40*d9ecfb0fSAndroid Build Coastguard Worker    fuzz_config: {
41*d9ecfb0fSAndroid Build Coastguard Worker        cc: [
42*d9ecfb0fSAndroid Build Coastguard Worker            "[email protected]",
43*d9ecfb0fSAndroid Build Coastguard Worker        ],
44*d9ecfb0fSAndroid Build Coastguard Worker        fuzz_on_haiku_device: true,
45*d9ecfb0fSAndroid Build Coastguard Worker        fuzz_on_haiku_host: false,
46*d9ecfb0fSAndroid Build Coastguard Worker    },
47*d9ecfb0fSAndroid Build Coastguard Worker}