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 17 LOCAL_PATH := $(call my-dir) 18 19 libfuzzer_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 31 include $(CLEAR_VARS) 32 LOCAL_CLANG := true 33 LOCAL_MODULE := libLLVMFuzzerNoMain 34 LOCAL_C_INCLUDES := external/compiler-rt/include 35 LOCAL_SRC_FILES := $(libfuzzer_srcs) 36 LOCAL_SANITIZE := never 37 LOCAL_MULTILIB := both 38 include $(BUILD_STATIC_LIBRARY) 39 40 include $(CLEAR_VARS) 41 LOCAL_CLANG := true 42 LOCAL_MODULE := libLLVMFuzzer 43 LOCAL_SRC_FILES := FuzzerMain.cpp 44 LOCAL_WHOLE_STATIC_LIBRARIES := libLLVMFuzzerNoMain 45 LOCAL_SANITIZE := never 46 LOCAL_MULTILIB := both 47 include $(BUILD_STATIC_LIBRARY) 48 49 include $(CLEAR_VARS) 50 LOCAL_CLANG := true 51 LOCAL_MODULE := libLLVMFuzzerNoMain 52 LOCAL_C_INCLUDES := external/compiler-rt/include 53 LOCAL_SRC_FILES := $(libfuzzer_srcs) 54 LOCAL_SANITIZE := never 55 LOCAL_MULTILIB := both 56 include $(BUILD_HOST_STATIC_LIBRARY) 57 58 include $(CLEAR_VARS) 59 LOCAL_CLANG := true 60 LOCAL_MODULE := libLLVMFuzzer 61 LOCAL_SRC_FILES := FuzzerMain.cpp 62 LOCAL_WHOLE_STATIC_LIBRARIES := libLLVMFuzzerNoMain 63 LOCAL_SANITIZE := never 64 LOCAL_MULTILIB := both 65 include $(BUILD_HOST_STATIC_LIBRARY) 66