Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 1 | ########################################################### |
| 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 | |
| 10 | intermediates := $(call local-intermediates-dir) |
| 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 | |
| 26 | ifneq ($(findstring AttrList.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 27 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/AttrList.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 28 | $(intermediates)/include/clang/Basic/AttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 29 | $(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] | 30 | $(call transform-host-clang-td-to-out,clang-attr-list) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 31 | endif |
| 32 | |
Logan | 9c64df2 | 2011-02-15 06:27:21 +0800 | [diff] [blame] | 33 | ifneq ($(findstring AttrSpellings.inc,$(TBLGEN_TABLES)),) |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 34 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Lex/AttrSpellings.inc |
| 35 | $(intermediates)/include/clang/Lex/AttrSpellings.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 36 | $(intermediates)/include/clang/Lex/AttrSpellings.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-spelling-list) |
Logan | 9c64df2 | 2011-02-15 06:27:21 +0800 | [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 | |
Stephen Hines | 229d345 | 2014-02-08 04:04:49 -0800 | [diff] [blame] | 61 | ifneq ($(findstring AttrIdentifierArg.inc,$(TBLGEN_TABLES)),) |
| 62 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Parse/AttrIdentifierArg.inc |
| 63 | $(intermediates)/include/clang/Parse/AttrIdentifierArg.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 64 | $(intermediates)/include/clang/Parse/AttrIdentifierArg.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN) |
| 65 | $(call transform-host-clang-td-to-out,clang-attr-identifier-arg-list) |
Stephen Hines | 3a936ca | 2013-06-12 16:53:04 -0700 | [diff] [blame] | 66 | endif |
| 67 | |
Logan Chien | fe6bd6d | 2011-10-21 15:03:07 +0800 | [diff] [blame] | 68 | ifneq ($(findstring AttrLateParsed.inc,$(TBLGEN_TABLES)),) |
| 69 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Parse/AttrLateParsed.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 70 | $(intermediates)/include/clang/Parse/AttrLateParsed.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 71 | $(intermediates)/include/clang/Parse/AttrLateParsed.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN) |
Logan Chien | fe6bd6d | 2011-10-21 15:03:07 +0800 | [diff] [blame] | 72 | $(call transform-host-clang-td-to-out,clang-attr-late-parsed-list) |
Logan | 150e0ef | 2011-01-19 10:29:26 +0800 | [diff] [blame] | 73 | endif |
| 74 | |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 75 | ifneq ($(findstring Attrs.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 76 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/Attrs.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 77 | $(intermediates)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 78 | $(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] | 79 | $(call transform-host-clang-td-to-out,clang-attr-classes) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 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 | 229d345 | 2014-02-08 04:04:49 -0800 | [diff] [blame] | 103 | ifneq ($(findstring AttrTypeArg.inc,$(TBLGEN_TABLES)),) |
| 104 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Parse/AttrTypeArg.inc |
| 105 | $(intermediates)/include/clang/Parse/AttrTypeArg.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 106 | $(intermediates)/include/clang/Parse/AttrTypeArg.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN) |
| 107 | $(call transform-host-clang-td-to-out,clang-attr-type-arg-list) |
| 108 | endif |
| 109 | |
Stephen Hines | 3610355 | 2012-03-05 15:04:58 -0800 | [diff] [blame] | 110 | ifneq ($(findstring AttrTemplateInstantiate.inc,$(TBLGEN_TABLES)),) |
| 111 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc |
| 112 | $(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 113 | $(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] | 114 | $(call transform-host-clang-td-to-out,clang-attr-template-instantiate) |
| 115 | endif |
| 116 | |
Logan Chien | c805eb9 | 2011-03-08 02:13:34 +0800 | [diff] [blame] | 117 | ifneq ($(findstring Checkers.inc,$(TBLGEN_TABLES)),) |
| 118 | LOCAL_GENERATED_SOURCES += $(intermediates)/Checkers.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 119 | $(intermediates)/Checkers.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Logan Chien | c805eb9 | 2011-03-08 02:13:34 +0800 | [diff] [blame] | 120 | $(intermediates)/Checkers.inc: \ |
| 121 | $(CLANG_ROOT_PATH)/lib/StaticAnalyzer/Checkers/Checkers.td \ |
| 122 | $(CLANG_ROOT_PATH)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td \ |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 123 | | $(CLANG_TBLGEN) |
Logan Chien | fe6bd6d | 2011-10-21 15:03:07 +0800 | [diff] [blame] | 124 | $(call transform-host-clang-td-to-out,clang-sa-checkers) |
Logan Chien | c805eb9 | 2011-03-08 02:13:34 +0800 | [diff] [blame] | 125 | endif |
| 126 | |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 127 | ifneq ($(findstring CommentCommandInfo.inc,$(TBLGEN_TABLES)),) |
| 128 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentCommandInfo.inc |
| 129 | $(intermediates)/include/clang/AST/CommentCommandInfo.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 130 | $(intermediates)/include/clang/AST/CommentCommandInfo.inc: \ |
| 131 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \ |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 132 | | $(CLANG_TBLGEN) |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 133 | $(call transform-host-clang-td-to-out,clang-comment-command-info) |
| 134 | endif |
| 135 | |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 136 | ifneq ($(findstring CommentCommandList.inc,$(TBLGEN_TABLES)),) |
| 137 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentCommandList.inc |
| 138 | $(intermediates)/include/clang/AST/CommentCommandList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 139 | $(intermediates)/include/clang/AST/CommentCommandList.inc: \ |
| 140 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \ |
| 141 | | $(CLANG_TBLGEN) |
| 142 | $(call transform-host-clang-td-to-out,clang-comment-command-list) |
| 143 | endif |
| 144 | |
| 145 | ifneq ($(findstring CommentHTMLNamedCharacterReferences.inc,$(TBLGEN_TABLES)),) |
| 146 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc |
| 147 | $(intermediates)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 148 | $(intermediates)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: \ |
| 149 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLNamedCharacterReferences.td \ |
| 150 | | $(CLANG_TBLGEN) |
| 151 | $(call transform-host-clang-td-to-out,clang-comment-html-named-character-references) |
| 152 | endif |
| 153 | |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 154 | ifneq ($(findstring CommentHTMLTagsProperties.inc,$(TBLGEN_TABLES)),) |
| 155 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentHTMLTagsProperties.inc |
| 156 | $(intermediates)/include/clang/AST/CommentHTMLTagsProperties.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 157 | $(intermediates)/include/clang/AST/CommentHTMLTagsProperties.inc: \ |
| 158 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \ |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 159 | | $(CLANG_TBLGEN) |
Stephen Hines | e5cc4c9 | 2012-09-10 20:14:21 -0700 | [diff] [blame] | 160 | $(call transform-host-clang-td-to-out,clang-comment-html-tags-properties) |
| 161 | endif |
| 162 | |
Stephen Hines | 210d8aa | 2012-09-13 19:33:19 -0700 | [diff] [blame] | 163 | ifneq ($(findstring CommentHTMLTags.inc,$(TBLGEN_TABLES)),) |
| 164 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentHTMLTags.inc |
| 165 | $(intermediates)/include/clang/AST/CommentHTMLTags.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 166 | $(intermediates)/include/clang/AST/CommentHTMLTags.inc: \ |
| 167 | $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \ |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 168 | | $(CLANG_TBLGEN) |
Stephen Hines | 210d8aa | 2012-09-13 19:33:19 -0700 | [diff] [blame] | 169 | $(call transform-host-clang-td-to-out,clang-comment-html-tags) |
| 170 | endif |
| 171 | |
Shih-wei Liao | ee95935 | 2012-08-03 01:19:05 -0700 | [diff] [blame] | 172 | ifneq ($(findstring CommentNodes.inc,$(TBLGEN_TABLES)),) |
| 173 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentNodes.inc |
| 174 | $(intermediates)/include/clang/AST/CommentNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
| 175 | $(intermediates)/include/clang/AST/CommentNodes.inc: \ |
| 176 | $(CLANG_ROOT_PATH)/include/clang/Basic/CommentNodes.td \ |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 177 | | $(CLANG_TBLGEN) |
Shih-wei Liao | ee95935 | 2012-08-03 01:19:05 -0700 | [diff] [blame] | 178 | $(call transform-host-clang-td-to-out,clang-comment-nodes) |
| 179 | endif |
| 180 | |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 181 | ifneq ($(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 182 | 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] | 183 | $(intermediates)/include/clang/Basic/Diagnostic%Kinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Stephen Hines | 2302b81 | 2012-07-26 17:37:59 -0700 | [diff] [blame] | 184 | $(intermediates)/include/clang/Basic/Diagnostic%Kinds.inc: \ |
| 185 | $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td \ |
| 186 | $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic%Kinds.td \ |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 187 | | $(CLANG_TBLGEN) |
Logan Chien | fe6bd6d | 2011-10-21 15:03:07 +0800 | [diff] [blame] | 188 | $(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] | 189 | endif |
| 190 | |
| 191 | ifneq ($(findstring DiagnosticGroups.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 192 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/DiagnosticGroups.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 193 | $(intermediates)/include/clang/Basic/DiagnosticGroups.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 194 | $(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] | 195 | $(call transform-host-clang-td-to-out,clang-diag-groups) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 196 | endif |
| 197 | |
Nowar Gu | 0c115a1 | 2011-05-14 13:42:21 +0800 | [diff] [blame] | 198 | ifneq ($(findstring DiagnosticIndexName.inc,$(TBLGEN_TABLES)),) |
| 199 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/DiagnosticIndexName.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 200 | $(intermediates)/include/clang/Basic/DiagnosticIndexName.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 201 | $(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] | 202 | $(call transform-host-clang-td-to-out,clang-diag-groups) |
Nowar Gu | 0c115a1 | 2011-05-14 13:42:21 +0800 | [diff] [blame] | 203 | endif |
| 204 | |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 205 | ifneq ($(findstring DeclNodes.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 206 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/DeclNodes.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 207 | $(intermediates)/include/clang/AST/DeclNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 208 | $(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] | 209 | $(call transform-host-clang-td-to-out,clang-decl-nodes) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 210 | endif |
| 211 | |
| 212 | ifneq ($(findstring StmtNodes.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 213 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/StmtNodes.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 214 | $(intermediates)/include/clang/AST/StmtNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 215 | $(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] | 216 | $(call transform-host-clang-td-to-out,clang-stmt-nodes) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 217 | endif |
| 218 | |
| 219 | ifneq ($(findstring arm_neon.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 220 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/arm_neon.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 221 | $(intermediates)/include/clang/Basic/arm_neon.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Ying Wang | 1927ae9 | 2013-02-20 14:00:13 -0800 | [diff] [blame] | 222 | $(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] | 223 | $(call transform-host-clang-td-to-out,arm-neon-sema) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 224 | endif |
| 225 | |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 226 | ifneq ($(findstring Options.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 227 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Driver/Options.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 228 | $(intermediates)/include/clang/Driver/Options.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Stephen Hines | a902511 | 2013-08-08 02:26:27 -0700 | [diff] [blame] | 229 | $(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 \ |
| 230 | | $(CLANG_TBLGEN) $(TBLGEN) |
| 231 | $(call transform-host-td-to-out,opt-parser-defs) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 232 | endif |
| 233 | |
Logan | 150e0ef | 2011-01-19 10:29:26 +0800 | [diff] [blame] | 234 | ifneq ($(findstring CC1AsOptions.inc,$(TBLGEN_TABLES)),) |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 235 | LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Driver/CC1AsOptions.inc |
Logan Chien | 93e534a | 2011-12-16 17:39:13 +0800 | [diff] [blame] | 236 | $(intermediates)/include/clang/Driver/CC1AsOptions.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) |
Stephen Hines | a902511 | 2013-08-08 02:26:27 -0700 | [diff] [blame] | 237 | $(intermediates)/include/clang/Driver/CC1AsOptions.inc: $(CLANG_ROOT_PATH)/include/clang/Driver/CC1AsOptions.td $(LLVM_ROOT_PATH)/include/llvm/Option/OptParser.td \ |
| 238 | | $(CLANG_TBLGEN) $(TBLGEN) |
| 239 | $(call transform-host-td-to-out,opt-parser-defs) |
Logan | 150e0ef | 2011-01-19 10:29:26 +0800 | [diff] [blame] | 240 | endif |
| 241 | |
Logan | ac774a7 | 2011-01-19 12:06:46 +0800 | [diff] [blame] | 242 | LOCAL_C_INCLUDES += $(intermediates)/include |
| 243 | |
Shih-wei Liao | 200213f | 2010-06-07 22:05:52 -0700 | [diff] [blame] | 244 | endif |