blob: 35cf45b96c37b1c9f38ae5e0921c41f274cafcc7 [file] [log] [blame]
Josh Gao8feba832016-08-02 15:50:05 -07001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4include $(CLEAR_TBLGEN_VARS)
5
6LLVM_ROOT_PATH := external/llvm
7CLANG_ROOT_PATH := external/clang
8include $(CLANG_ROOT_PATH)/clang.mk
9
10LOCAL_MODULE := versioner
11LOCAL_MODULE_TAGS := optional
12LOCAL_MODULE_CLASS := EXECUTABLES
13
14TBLGEN_TABLES := \
15 AttrList.inc \
16 AttrVisitor.inc \
17 Attrs.inc \
18 CommentCommandList.inc \
19 DeclNodes.inc \
20 DiagnosticCommonKinds.inc \
21 StmtNodes.inc \
22
23LOCAL_SRC_FILES := \
24 versioner.cpp \
25 Arch.cpp \
26 DeclarationDatabase.cpp \
27 SymbolDatabase.cpp \
28 Utils.cpp
29
30LOCAL_SHARED_LIBRARIES := libclang libLLVM
31
32include $(CLANG_HOST_BUILD_MK)
33include $(CLANG_TBLGEN_RULES_MK)
34
35# Set these after including the clang makefiles, to avoid getting CFLAGS from them.
36LOCAL_CFLAGS := -Wall -Wextra -Werror -Wno-unused-parameter
37LOCAL_CFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
38LOCAL_CPPFLAGS := -std=c++14 -fno-rtti
39
40LOCAL_MODULE_HOST_OS := linux
41
42include $(BUILD_HOST_EXECUTABLE)