blob: dff4f7f961aa2326125e91186ba4eb08529108df [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 \
Josh Gaof8592a32016-07-26 18:58:27 -070027 Preprocessor.cpp \
Josh Gao8feba832016-08-02 15:50:05 -070028 SymbolDatabase.cpp \
29 Utils.cpp
30
31LOCAL_SHARED_LIBRARIES := libclang libLLVM
32
33include $(CLANG_HOST_BUILD_MK)
34include $(CLANG_TBLGEN_RULES_MK)
35
36# Set these after including the clang makefiles, to avoid getting CFLAGS from them.
37LOCAL_CFLAGS := -Wall -Wextra -Werror -Wno-unused-parameter
38LOCAL_CFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
39LOCAL_CPPFLAGS := -std=c++14 -fno-rtti
40
41LOCAL_MODULE_HOST_OS := linux
42
43include $(BUILD_HOST_EXECUTABLE)