Tao Bao | db719ce | 2015-02-19 14:45:44 -0800 | [diff] [blame^] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_TBLGEN_VARS) |
| 4 | |
| 5 | TBLGEN_TABLES := \ |
| 6 | AttrList.inc \ |
| 7 | Attrs.inc \ |
| 8 | CommentCommandList.inc \ |
| 9 | DeclNodes.inc \ |
| 10 | DiagnosticCommonKinds.inc \ |
| 11 | DiagnosticDriverKinds.inc \ |
| 12 | DiagnosticFrontendKinds.inc \ |
| 13 | StmtNodes.inc \ |
| 14 | |
| 15 | clang_tooling_SRC_FILES := \ |
| 16 | ArgumentsAdjusters.cpp \ |
| 17 | CommonOptionsParser.cpp \ |
| 18 | CompilationDatabase.cpp \ |
| 19 | Core/Replacement.cpp \ |
| 20 | FileMatchTrie.cpp \ |
| 21 | JSONCompilationDatabase.cpp \ |
| 22 | Refactoring.cpp \ |
| 23 | RefactoringCallbacks.cpp \ |
| 24 | Tooling.cpp \ |
| 25 | |
| 26 | # For the host |
| 27 | # ===================================================== |
| 28 | include $(CLEAR_VARS) |
| 29 | |
| 30 | LOCAL_SRC_FILES := $(clang_tooling_SRC_FILES) |
| 31 | LOCAL_MODULE:= libclangTooling |
| 32 | LOCAL_MODULE_TAGS := optional |
| 33 | |
| 34 | include $(CLANG_HOST_BUILD_MK) |
| 35 | include $(CLANG_VERSION_INC_MK) |
| 36 | include $(CLANG_TBLGEN_RULES_MK) |
| 37 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 38 | |
| 39 | # For the target |
| 40 | # ===================================================== |
| 41 | include $(CLEAR_VARS) |
| 42 | |
| 43 | LOCAL_SRC_FILES := $(clang_tooling_SRC_FILES) |
| 44 | LOCAL_MODULE:= libclangTooling |
| 45 | LOCAL_MODULE_TAGS := optional |
| 46 | |
| 47 | include $(CLANG_DEVICE_BUILD_MK) |
| 48 | include $(CLANG_VERSION_INC_MK) |
| 49 | include $(CLANG_TBLGEN_RULES_MK) |
| 50 | include $(BUILD_STATIC_LIBRARY) |