OSDN Git Service

c14476a828af55c453525e9714c488ef8c3ce8f5
[android-x86/external-llvm.git] / lib / Fuzzer / Android.mk
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       FuzzerDriver.cpp \
22       FuzzerExtFunctionsDlsym.cpp \
23       FuzzerExtFunctionsDlsymWin.cpp \
24       FuzzerExtFunctionsWeak.cpp \
25       FuzzerExtraCounters.cpp \
26       FuzzerIO.cpp \
27       FuzzerIOPosix.cpp \
28       FuzzerIOWindows.cpp \
29       FuzzerLoop.cpp \
30       FuzzerMerge.cpp \
31       FuzzerMutate.cpp \
32       FuzzerSHA1.cpp \
33       FuzzerShmemPosix.cpp \
34       FuzzerShmemWindows.cpp \
35       FuzzerTracePC.cpp \
36       FuzzerTraceState.cpp \
37       FuzzerUtil.cpp \
38       FuzzerUtilDarwin.cpp \
39       FuzzerUtilLinux.cpp \
40       FuzzerUtilPosix.cpp \
41       FuzzerUtilWindows.cpp
42
43 include $(CLEAR_VARS)
44 LOCAL_CLANG := true
45 LOCAL_MODULE := libLLVM80FuzzerNoMain
46 LOCAL_C_INCLUDES := external/compiler-rt/include
47 LOCAL_SRC_FILES := $(libfuzzer_srcs)
48 LOCAL_SANITIZE := never
49 LOCAL_MULTILIB := both
50 include $(BUILD_STATIC_LIBRARY)
51
52 include $(CLEAR_VARS)
53 LOCAL_CLANG := true
54 LOCAL_MODULE := libLLVM80Fuzzer
55 LOCAL_SRC_FILES := FuzzerMain.cpp
56 LOCAL_WHOLE_STATIC_LIBRARIES := libLLVM80FuzzerNoMain
57 LOCAL_SANITIZE := never
58 LOCAL_MULTILIB := both
59 include $(BUILD_STATIC_LIBRARY)
60
61 include $(CLEAR_VARS)
62 LOCAL_CLANG := true
63 LOCAL_MODULE := libLLVM80FuzzerNoMain
64 LOCAL_C_INCLUDES := external/compiler-rt/include
65 LOCAL_SRC_FILES := $(libfuzzer_srcs)
66 LOCAL_SANITIZE := never
67 LOCAL_MULTILIB := both
68 include $(BUILD_HOST_STATIC_LIBRARY)
69
70 include $(CLEAR_VARS)
71 LOCAL_CLANG := true
72 LOCAL_MODULE := libLLVM80Fuzzer
73 LOCAL_SRC_FILES := FuzzerMain.cpp
74 LOCAL_WHOLE_STATIC_LIBRARIES := libLLVM80FuzzerNoMain
75 LOCAL_SANITIZE := never
76 LOCAL_MULTILIB := both
77 include $(BUILD_HOST_STATIC_LIBRARY)