1# 2# Copyright (C) 2015 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 17LOCAL_PATH := $(call my-dir) 18 19libfuzzer_srcs := \ 20 FuzzerCrossOver.cpp \ 21 FuzzerInterface.cpp \ 22 FuzzerTraceState.cpp \ 23 FuzzerDriver.cpp \ 24 FuzzerIO.cpp \ 25 FuzzerLoop.cpp \ 26 FuzzerMutate.cpp \ 27 FuzzerSanitizerOptions.cpp \ 28 FuzzerSHA1.cpp \ 29 FuzzerUtil.cpp \ 30 31include $(CLEAR_VARS) 32LOCAL_CLANG := true 33LOCAL_MODULE := libLLVMFuzzerNoMain 34LOCAL_C_INCLUDES := external/compiler-rt/include 35LOCAL_SRC_FILES := $(libfuzzer_srcs) 36LOCAL_SANITIZE := never 37LOCAL_MULTILIB := both 38include $(BUILD_STATIC_LIBRARY) 39 40include $(CLEAR_VARS) 41LOCAL_CLANG := true 42LOCAL_MODULE := libLLVMFuzzer 43LOCAL_SRC_FILES := FuzzerMain.cpp 44LOCAL_WHOLE_STATIC_LIBRARIES := libLLVMFuzzerNoMain 45LOCAL_SANITIZE := never 46LOCAL_MULTILIB := both 47include $(BUILD_STATIC_LIBRARY) 48 49include $(CLEAR_VARS) 50LOCAL_CLANG := true 51LOCAL_MODULE := libLLVMFuzzerNoMain 52LOCAL_C_INCLUDES := external/compiler-rt/include 53LOCAL_SRC_FILES := $(libfuzzer_srcs) 54LOCAL_SANITIZE := never 55LOCAL_MULTILIB := both 56include $(BUILD_HOST_STATIC_LIBRARY) 57 58include $(CLEAR_VARS) 59LOCAL_CLANG := true 60LOCAL_MODULE := libLLVMFuzzer 61LOCAL_SRC_FILES := FuzzerMain.cpp 62LOCAL_WHOLE_STATIC_LIBRARIES := libLLVMFuzzerNoMain 63LOCAL_SANITIZE := never 64LOCAL_MULTILIB := both 65include $(BUILD_HOST_STATIC_LIBRARY) 66