Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 1 | ###################################4######################## |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 2 | ## TableGen: Compile .td files to .inc. |
| 3 | ########################################################### |
| 4 | ifeq ($(LOCAL_MODULE_CLASS),) |
| 5 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 6 | endif |
| 7 | |
| 8 | ifneq ($(strip $(TBLGEN_TABLES)),) |
| 9 | |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 10 | define transform-clang-td-to-out |
| 11 | $(if $(LOCAL_IS_HOST_MODULE), \ |
| 12 | $(call transform-host-clang-td-to-out,$(1)), \ |
| 13 | $(call transform-device-clang-td-to-out,$(1))) |
| 14 | endef |
| 15 | |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 16 | define transform-td-to-out |
| 17 | $(if $(LOCAL_IS_HOST_MODULE), \ |
| 18 | $(call transform-host-td-to-out,$(1)), \ |
| 19 | $(call transform-device-td-to-out,$(1))) |
| 20 | endef |
| 21 | |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 22 | generated_sources := $(call local-generated-sources-dir) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 23 | |
Stephen Hines | cd376b6 | 2013-01-09 00:19:46 -0800 | [diff] [blame] | 24 | ifneq ($(findstring AttrDump.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 25 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrDump.inc |
| 26 | $(generated_sources)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 27 | $(generated_sources)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 28 | $(call transform-clang-td-to-out,clang-attr-dump) |
Stephen Hines | cd376b6 | 2013-01-09 00:19:46 -0800 | [diff] [blame] | 29 | endif |
| 30 | |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 31 | ifneq ($(findstring AttrImpl.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 32 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrImpl.inc |
| 33 | $(generated_sources)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 34 | $(generated_sources)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 35 | $(call transform-clang-td-to-out,clang-attr-impl) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 36 | endif |
| 37 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 38 | ifneq ($(findstring AttrHasAttributeImpl.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 39 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc |
| 40 | $(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 41 | $(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 42 | $(call transform-clang-td-to-out,clang-attr-has-attribute-impl) |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 43 | endif |
| 44 | |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 45 | ifneq ($(findstring AttrList.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 46 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/AttrList.inc |
| 47 | $(generated_sources)/include/clang/Basic/AttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 48 | $(generated_sources)/include/clang/Basic/AttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 49 | $(call transform-clang-td-to-out,clang-attr-list) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 50 | endif |
| 51 | |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 52 | ifneq ($(findstring AttrSpellingListIndex.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 53 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc |
| 54 | $(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 55 | $(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 56 | $(call transform-clang-td-to-out,clang-attr-spelling-index) |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 57 | endif |
| 58 | |
Logan | 150e0ef | 2011-01-19 10:29:26 +0800 | [diff] [blame] | 59 | ifneq ($(findstring AttrPCHRead.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 60 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Serialization/AttrPCHRead.inc |
| 61 | $(generated_sources)/include/clang/Serialization/AttrPCHRead.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 62 | $(generated_sources)/include/clang/Serialization/AttrPCHRead.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 63 | $(call transform-clang-td-to-out,clang-attr-pch-read) |
Logan | 150e0ef | 2011-01-19 10:29:26 +0800 | [diff] [blame] | 64 | endif |
| 65 | |
| 66 | ifneq ($(findstring AttrPCHWrite.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 67 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc |
| 68 | $(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 69 | $(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 70 | $(call transform-clang-td-to-out,clang-attr-pch-write) |
Logan Chien | fe6bd6d | 2011-10-21 15:03:07 +0800 | [diff] [blame] | 71 | endif |
| 72 | |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 73 | ifneq ($(findstring Attrs.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 74 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/Attrs.inc |
| 75 | $(generated_sources)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 76 | $(generated_sources)/include/clang/AST/Attrs.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 77 | $(call transform-clang-td-to-out,clang-attr-classes) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 78 | endif |
| 79 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 80 | ifneq ($(findstring AttrParserStringSwitches.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 81 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc |
| 82 | $(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 83 | $(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 84 | $(call transform-clang-td-to-out,clang-attr-parser-string-switches) |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 85 | endif |
| 86 | |
| 87 | ifneq ($(findstring AttrVisitor.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 88 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrVisitor.inc |
| 89 | $(generated_sources)/include/clang/AST/AttrVisitor.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 90 | $(generated_sources)/include/clang/AST/AttrVisitor.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 91 | $(call transform-clang-td-to-out,clang-attr-ast-visitor) |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 92 | endif |
| 93 | |
Shih-wei Liao | 560ad31 | 2012-03-22 11:50:56 -0700 | [diff] [blame] | 94 | ifneq ($(findstring AttrParsedAttrKinds.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 95 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc |
| 96 | $(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 97 | $(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 98 | $(call transform-clang-td-to-out,clang-attr-parsed-attr-kinds) |
Shih-wei Liao | 560ad31 | 2012-03-22 11:50:56 -0700 | [diff] [blame] | 99 | endif |
| 100 | |
Stephen Hines | 229d345 | 2014-02-08 04:04:49 -0800 | [diff] [blame] | 101 | ifneq ($(findstring AttrParsedAttrImpl.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 102 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc |
| 103 | $(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 104 | $(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 105 | $(call transform-clang-td-to-out,clang-attr-parsed-attr-impl) |
Stephen Hines | 229d345 | 2014-02-08 04:04:49 -0800 | [diff] [blame] | 106 | endif |
| 107 | |
Shih-wei Liao | 560ad31 | 2012-03-22 11:50:56 -0700 | [diff] [blame] | 108 | ifneq ($(findstring AttrParsedAttrList.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 109 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc |
| 110 | $(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 111 | $(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 112 | $(call transform-clang-td-to-out,clang-attr-parsed-attr-list) |
Shih-wei Liao | 560ad31 | 2012-03-22 11:50:56 -0700 | [diff] [blame] | 113 | endif |
| 114 | |
Stephen Hines | 3610355 | 2012-03-05 15:04:58 -0800 | [diff] [blame] | 115 | ifneq ($(findstring AttrTemplateInstantiate.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 116 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc |
| 117 | $(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 118 | $(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 119 | $(call transform-clang-td-to-out,clang-attr-template-instantiate) |
Stephen Hines | 3610355 | 2012-03-05 15:04:58 -0800 | [diff] [blame] | 120 | endif |
| 121 | |
Logan Chien | c805eb9 | 2011-03-08 02:13:34 +0800 | [diff] [blame] | 122 | ifneq ($(findstring Checkers.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 123 | LOCAL_GENERATED_SOURCES += $(generated_sources)/Checkers.inc |
| 124 | $(generated_sources)/Checkers.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 125 | $(generated_sources)/Checkers.inc: \ |
Logan Chien | c805eb9 | 2011-03-08 02:13:34 +0800 | [diff] [blame] | 126 | $(CLANG_ROOT_PATH)/lib/StaticAnalyzer/Checkers/Checkers.td \ |
| 127 | $(CLANG_ROOT_PATH)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 128 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 129 | $(call transform-clang-td-to-out,clang-sa-checkers) |
Logan Chien | c805eb9 | 2011-03-08 02:13:34 +0800 | [diff] [blame] | 130 | endif |
| 131 | |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 132 | ifneq ($(findstring CommentCommandInfo.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 133 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentCommandInfo.inc |
| 134 | $(generated_sources)/include/clang/AST/CommentCommandInfo.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 135 | $(generated_sources)/include/clang/AST/CommentCommandInfo.inc: \ |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 136 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 137 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 138 | $(call transform-clang-td-to-out,clang-comment-command-info) |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 139 | endif |
| 140 | |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 141 | ifneq ($(findstring CommentCommandList.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 142 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentCommandList.inc |
| 143 | $(generated_sources)/include/clang/AST/CommentCommandList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 144 | $(generated_sources)/include/clang/AST/CommentCommandList.inc: \ |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 145 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 146 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 147 | $(call transform-clang-td-to-out,clang-comment-command-list) |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 148 | endif |
| 149 | |
| 150 | ifneq ($(findstring CommentHTMLNamedCharacterReferences.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 151 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc |
| 152 | $(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 153 | $(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: \ |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 154 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLNamedCharacterReferences.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 155 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 156 | $(call transform-clang-td-to-out,clang-comment-html-named-character-references) |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 157 | endif |
| 158 | |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 159 | ifneq ($(findstring CommentHTMLTagsProperties.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 160 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc |
| 161 | $(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 162 | $(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc: \ |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 163 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 164 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 165 | $(call transform-clang-td-to-out,clang-comment-html-tags-properties) |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 166 | endif |
| 167 | |
Stephen Hines | 210d8aa | 2012-09-13 19:33:19 -0700 | [diff] [blame] | 168 | ifneq ($(findstring CommentHTMLTags.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 169 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLTags.inc |
| 170 | $(generated_sources)/include/clang/AST/CommentHTMLTags.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 171 | $(generated_sources)/include/clang/AST/CommentHTMLTags.inc: \ |
Stephen Hines | 210d8aa | 2012-09-13 19:33:19 -0700 | [diff] [blame] | 172 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 173 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 174 | $(call transform-clang-td-to-out,clang-comment-html-tags) |
Stephen Hines | 210d8aa | 2012-09-13 19:33:19 -0700 | [diff] [blame] | 175 | endif |
| 176 | |
Shih-wei Liao | ee95935 | 2012-08-03 01:19:05 -0700 | [diff] [blame] | 177 | ifneq ($(findstring CommentNodes.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 178 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentNodes.inc |
| 179 | $(generated_sources)/include/clang/AST/CommentNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 180 | $(generated_sources)/include/clang/AST/CommentNodes.inc: \ |
Shih-wei Liao | ee95935 | 2012-08-03 01:19:05 -0700 | [diff] [blame] | 181 | $(CLANG_ROOT_PATH)/include/clang/Basic/CommentNodes.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 182 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 183 | $(call transform-clang-td-to-out,clang-comment-nodes) |
Shih-wei Liao | ee95935 | 2012-08-03 01:19:05 -0700 | [diff] [blame] | 184 | endif |
| 185 | |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 186 | ifneq ($(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 187 | LOCAL_GENERATED_SOURCES += $(addprefix $(generated_sources)/include/clang/Basic/,$(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES))) |
| 188 | $(generated_sources)/include/clang/Basic/Diagnostic%Kinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 189 | $(generated_sources)/include/clang/Basic/Diagnostic%Kinds.inc: \ |
Stephen Hines | 2302b81 | 2012-07-26 17:37:59 -0700 | [diff] [blame] | 190 | $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td \ |
| 191 | $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic%Kinds.td \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 192 | $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 193 | $(call transform-clang-td-to-out,clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc,%,$(@F))) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 194 | endif |
| 195 | |
| 196 | ifneq ($(findstring DiagnosticGroups.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 197 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/DiagnosticGroups.inc |
| 198 | $(generated_sources)/include/clang/Basic/DiagnosticGroups.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 199 | $(generated_sources)/include/clang/Basic/DiagnosticGroups.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td $(CLANG_ROOT_PATH)/include/clang/Basic/DiagnosticGroups.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 200 | $(call transform-clang-td-to-out,clang-diag-groups) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 201 | endif |
| 202 | |
Nowar Gu | 0c115a1 | 2011-05-14 13:42:21 +0800 | [diff] [blame] | 203 | ifneq ($(findstring DiagnosticIndexName.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 204 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc |
| 205 | $(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 206 | $(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 207 | $(call transform-clang-td-to-out,clang-diag-groups) |
Nowar Gu | 0c115a1 | 2011-05-14 13:42:21 +0800 | [diff] [blame] | 208 | endif |
| 209 | |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 210 | ifneq ($(findstring DeclNodes.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 211 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/DeclNodes.inc |
| 212 | $(generated_sources)/include/clang/AST/DeclNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 213 | $(generated_sources)/include/clang/AST/DeclNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/DeclNodes.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 214 | $(call transform-clang-td-to-out,clang-decl-nodes) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 215 | endif |
| 216 | |
| 217 | ifneq ($(findstring StmtNodes.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 218 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/StmtNodes.inc |
| 219 | $(generated_sources)/include/clang/AST/StmtNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 220 | $(generated_sources)/include/clang/AST/StmtNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/StmtNodes.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 221 | $(call transform-clang-td-to-out,clang-stmt-nodes) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 222 | endif |
| 223 | |
| 224 | ifneq ($(findstring arm_neon.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 225 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/arm_neon.inc |
| 226 | $(generated_sources)/include/clang/Basic/arm_neon.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 227 | $(generated_sources)/include/clang/Basic/arm_neon.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/arm_neon.td $(CLANG_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 228 | $(call transform-clang-td-to-out,arm-neon-sema) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 229 | endif |
| 230 | |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 231 | ifneq ($(findstring Options.inc,$(TBLGEN_TABLES)),) |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 232 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Driver/Options.inc |
| 233 | $(generated_sources)/include/clang/Driver/Options.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 234 | $(generated_sources)/include/clang/Driver/Options.inc: $(CLANG_ROOT_PATH)/include/clang/Driver/Options.td $(LLVM_ROOT_PATH)/include/llvm/Option/OptParser.td $(CLANG_ROOT_PATH)/include/clang/Driver/CC1Options.td \ |
| 235 | $(CLANG_TBLGEN) $(LLVM_TBLGEN) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 236 | $(call transform-td-to-out,opt-parser-defs) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 237 | endif |
| 238 | |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 239 | ifneq ($(findstring arm_neon.h,$(TBLGEN_TABLES)),) |
| 240 | LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/arm_neon.h |
| 241 | $(generated_sources)/include/clang/Basic/arm_neon.h: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 242 | $(generated_sources)/include/clang/Basic/arm_neon.h: $(CLANG_ROOT_PATH)/include/clang/Basic/arm_neon.td $(CLANG_TBLGEN) |
| 243 | $(call transform-clang-td-to-out,arm-neon) |
| 244 | endif |
| 245 | |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 246 | LOCAL_C_INCLUDES += $(generated_sources)/include |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 247 | |
Shih-wei Liao | 200213f | 2010-06-07 22:05:52 -0700 | [diff] [blame] | 248 | endif |