1*9880d681SAndroid Build Coastguard Worker// 2*9880d681SAndroid Build Coastguard Worker// Copyright (C) 2015 The Android Open Source Project 3*9880d681SAndroid Build Coastguard Worker// 4*9880d681SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*9880d681SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*9880d681SAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*9880d681SAndroid Build Coastguard Worker// 8*9880d681SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*9880d681SAndroid Build Coastguard Worker// 10*9880d681SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*9880d681SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*9880d681SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*9880d681SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*9880d681SAndroid Build Coastguard Worker// limitations under the License. 15*9880d681SAndroid Build Coastguard Worker// 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerpackage { 18*9880d681SAndroid Build Coastguard Worker // See: http://go/android-license-faq 19*9880d681SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 20*9880d681SAndroid Build Coastguard Worker // all of the 'license_kinds' from "external_llvm_license" 21*9880d681SAndroid Build Coastguard Worker // to get the below license kinds: 22*9880d681SAndroid Build Coastguard Worker // SPDX-license-identifier-NCSA 23*9880d681SAndroid Build Coastguard Worker // legacy_unencumbered 24*9880d681SAndroid Build Coastguard Worker default_applicable_licenses: ["external_llvm_license"], 25*9880d681SAndroid Build Coastguard Worker} 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Workercc_library_static { 28*9880d681SAndroid Build Coastguard Worker name: "libLLVMFuzzerNoMain", 29*9880d681SAndroid Build Coastguard Worker host_supported: true, 30*9880d681SAndroid Build Coastguard Worker include_dirs: ["external/compiler-rt/include"], 31*9880d681SAndroid Build Coastguard Worker cflags: [ 32*9880d681SAndroid Build Coastguard Worker "-W", 33*9880d681SAndroid Build Coastguard Worker "-Wall", 34*9880d681SAndroid Build Coastguard Worker "-Werror", 35*9880d681SAndroid Build Coastguard Worker "-Wno-unused-lambda-capture", 36*9880d681SAndroid Build Coastguard Worker "-Wno-unused-parameter", 37*9880d681SAndroid Build Coastguard Worker ], 38*9880d681SAndroid Build Coastguard Worker cpp_std: "gnu++11", 39*9880d681SAndroid Build Coastguard Worker srcs: ["*.cpp"], 40*9880d681SAndroid Build Coastguard Worker exclude_srcs: ["FuzzerMain.cpp"], 41*9880d681SAndroid Build Coastguard Worker sanitize: { 42*9880d681SAndroid Build Coastguard Worker address: false, 43*9880d681SAndroid Build Coastguard Worker fuzzer: false, 44*9880d681SAndroid Build Coastguard Worker }, 45*9880d681SAndroid Build Coastguard Worker} 46*9880d681SAndroid Build Coastguard Worker 47*9880d681SAndroid Build Coastguard Workercc_library_static { 48*9880d681SAndroid Build Coastguard Worker name: "libLLVMFuzzer", 49*9880d681SAndroid Build Coastguard Worker host_supported: true, 50*9880d681SAndroid Build Coastguard Worker cflags: [ 51*9880d681SAndroid Build Coastguard Worker "-W", 52*9880d681SAndroid Build Coastguard Worker "-Wall", 53*9880d681SAndroid Build Coastguard Worker "-Werror", 54*9880d681SAndroid Build Coastguard Worker "-Wno-unused-lambda-capture", 55*9880d681SAndroid Build Coastguard Worker "-Wno-unused-parameter", 56*9880d681SAndroid Build Coastguard Worker ], 57*9880d681SAndroid Build Coastguard Worker cpp_std: "gnu++11", 58*9880d681SAndroid Build Coastguard Worker srcs: ["FuzzerMain.cpp"], 59*9880d681SAndroid Build Coastguard Worker whole_static_libs: ["libLLVMFuzzerNoMain"], 60*9880d681SAndroid Build Coastguard Worker sanitize: { 61*9880d681SAndroid Build Coastguard Worker address: false, 62*9880d681SAndroid Build Coastguard Worker fuzzer: false, 63*9880d681SAndroid Build Coastguard Worker }, 64*9880d681SAndroid Build Coastguard Worker} 65