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