1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_TBLGEN_VARS) 4 5 TBLGEN_TABLES := \ 6 AttrList.inc \ 7 Attrs.inc \ 8 AttrParsedAttrList.inc \ 9 CommentCommandList.inc \ 10 CommentNodes.inc \ 11 DeclNodes.inc \ 12 DiagnosticCommonKinds.inc \ 13 DiagnosticFrontendKinds.inc \ 14 StmtNodes.inc 15 16 clang_rewrite_frontend_SRC_FILES := \ 17 FixItRewriter.cpp \ 18 FrontendActions.cpp \ 19 HTMLPrint.cpp \ 20 InclusionRewriter.cpp \ 21 RewriteMacros.cpp \ 22 RewriteModernObjC.cpp \ 23 RewriteObjC.cpp \ 24 RewriteTest.cpp 25 26 # For the host 27 # ===================================================== 28 include $(CLEAR_VARS) 29 30 LOCAL_SRC_FILES := $(clang_rewrite_frontend_SRC_FILES) 31 LOCAL_MODULE:= libclangRewriteFrontend 32 LOCAL_MODULE_TAGS := optional 33 34 include $(CLANG_HOST_BUILD_MK) 35 include $(CLANG_TBLGEN_RULES_MK) 36 include $(BUILD_HOST_STATIC_LIBRARY) 37 38 # For the target 39 # ===================================================== 40 include $(CLEAR_VARS) 41 42 LOCAL_SRC_FILES := $(clang_rewrite_frontend_SRC_FILES) 43 LOCAL_MODULE:= libclangRewriteFrontend 44 LOCAL_MODULE_TAGS := optional 45 46 include $(CLANG_DEVICE_BUILD_MK) 47 include $(CLANG_TBLGEN_RULES_MK) 48 include $(BUILD_STATIC_LIBRARY) 49