xref: /aosp_15_r20/tools/security/fuzzing/llm/xz_fuzzer/Android.bp (revision d9ecfb0f4d734c9ce41cde8ac4d585b094fd4222)
1*d9ecfb0fSAndroid Build Coastguard Worker/*
2*d9ecfb0fSAndroid Build Coastguard Worker * Copyright (C) 2024 The Android Open Source Project
3*d9ecfb0fSAndroid Build Coastguard Worker *
4*d9ecfb0fSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*d9ecfb0fSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*d9ecfb0fSAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*d9ecfb0fSAndroid Build Coastguard Worker *
8*d9ecfb0fSAndroid Build Coastguard Worker *      http://www.apache.org/licenses/LICENSE-2.0
9*d9ecfb0fSAndroid Build Coastguard Worker *
10*d9ecfb0fSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*d9ecfb0fSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*d9ecfb0fSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*d9ecfb0fSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*d9ecfb0fSAndroid Build Coastguard Worker * limitations under the License.
15*d9ecfb0fSAndroid Build Coastguard Worker */
16*d9ecfb0fSAndroid Build Coastguard Worker
17*d9ecfb0fSAndroid Build Coastguard Workercc_fuzz {
18*d9ecfb0fSAndroid Build Coastguard Worker    name: "xz_decoder_fuzzer",
19*d9ecfb0fSAndroid Build Coastguard Worker    srcs: [
20*d9ecfb0fSAndroid Build Coastguard Worker        "xz_decoder_fuzzer.cpp",
21*d9ecfb0fSAndroid Build Coastguard Worker    ],
22*d9ecfb0fSAndroid Build Coastguard Worker
23*d9ecfb0fSAndroid Build Coastguard Worker    static_libs: [
24*d9ecfb0fSAndroid Build Coastguard Worker        "libxz",
25*d9ecfb0fSAndroid Build Coastguard Worker    ],
26*d9ecfb0fSAndroid Build Coastguard Worker
27*d9ecfb0fSAndroid Build Coastguard Worker    fuzz_config: {
28*d9ecfb0fSAndroid Build Coastguard Worker        cc: [
29*d9ecfb0fSAndroid Build Coastguard Worker            "[email protected]",
30*d9ecfb0fSAndroid Build Coastguard Worker        ],
31*d9ecfb0fSAndroid Build Coastguard Worker        componentid: 330367,
32*d9ecfb0fSAndroid Build Coastguard Worker    },
33*d9ecfb0fSAndroid Build Coastguard Worker
34*d9ecfb0fSAndroid Build Coastguard Worker    include_dirs: [
35*d9ecfb0fSAndroid Build Coastguard Worker        "external/xz-embedded/linux/include/linux/",
36*d9ecfb0fSAndroid Build Coastguard Worker        "external/xz-embedded/linux/lib/xz/",
37*d9ecfb0fSAndroid Build Coastguard Worker    ],
38*d9ecfb0fSAndroid Build Coastguard Worker
39*d9ecfb0fSAndroid Build Coastguard Worker    corpus: ["xz_corpus/*"],
40*d9ecfb0fSAndroid Build Coastguard Worker    dictionary: "xz_fuzzer.dict",
41*d9ecfb0fSAndroid Build Coastguard Worker}
42