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