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