blob: 9762bd15783ef892835e2eae6efc792f5dfa089e [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001###################################4########################
Shih-wei Liaoea285162010-06-04 12:34:56 -07002## TableGen: Compile .td files to .inc.
3###########################################################
4ifeq ($(LOCAL_MODULE_CLASS),)
5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6endif
7
8ifneq ($(strip $(TBLGEN_TABLES)),)
9
Tong Shene5599602014-09-19 12:02:00 -070010define 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)))
14endef
15
Ying Wang89189ce2014-05-20 15:49:52 -070016intermediates := $(call local-generated-sources-dir)
Shih-wei Liaoea285162010-06-04 12:34:56 -070017
Stephen Hinescd376b62013-01-09 00:19:46 -080018ifneq ($(findstring AttrDump.inc,$(TBLGEN_TABLES)),)
19LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrDump.inc
20$(intermediates)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080021$(intermediates)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070022 $(call transform-clang-td-to-out,clang-attr-dump)
Stephen Hinescd376b62013-01-09 00:19:46 -080023endif
24
Shih-wei Liao3049ec92010-09-10 14:45:09 -070025ifneq ($(findstring AttrImpl.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080026LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrImpl.inc
Logan Chien93e534a2011-12-16 17:39:13 +080027$(intermediates)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080028$(intermediates)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070029 $(call transform-clang-td-to-out,clang-attr-impl)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070030endif
31
Stephen Hines651f13c2014-04-23 16:59:28 -070032ifneq ($(findstring AttrHasAttributeImpl.inc,$(TBLGEN_TABLES)),)
33LOCAL_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 Shene5599602014-09-19 12:02:00 -070036 $(call transform-clang-td-to-out,clang-attr-has-attribute-impl)
Stephen Hines651f13c2014-04-23 16:59:28 -070037endif
38
Shih-wei Liao3049ec92010-09-10 14:45:09 -070039ifneq ($(findstring AttrList.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080040LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/AttrList.inc
Logan Chien93e534a2011-12-16 17:39:13 +080041$(intermediates)/include/clang/Basic/AttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080042$(intermediates)/include/clang/Basic/AttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070043 $(call transform-clang-td-to-out,clang-attr-list)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070044endif
45
Stephen Hinesbd3aca02013-03-05 23:41:44 -080046ifneq ($(findstring AttrSpellingListIndex.inc,$(TBLGEN_TABLES)),)
47LOCAL_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 Shene5599602014-09-19 12:02:00 -070050 $(call transform-clang-td-to-out,clang-attr-spelling-index)
Stephen Hinesbd3aca02013-03-05 23:41:44 -080051endif
52
Logan150e0ef2011-01-19 10:29:26 +080053ifneq ($(findstring AttrPCHRead.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080054LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Serialization/AttrPCHRead.inc
Logan Chien93e534a2011-12-16 17:39:13 +080055$(intermediates)/include/clang/Serialization/AttrPCHRead.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080056$(intermediates)/include/clang/Serialization/AttrPCHRead.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070057 $(call transform-clang-td-to-out,clang-attr-pch-read)
Logan150e0ef2011-01-19 10:29:26 +080058endif
59
60ifneq ($(findstring AttrPCHWrite.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080061LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Serialization/AttrPCHWrite.inc
Logan Chien93e534a2011-12-16 17:39:13 +080062$(intermediates)/include/clang/Serialization/AttrPCHWrite.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080063$(intermediates)/include/clang/Serialization/AttrPCHWrite.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070064 $(call transform-clang-td-to-out,clang-attr-pch-write)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080065endif
66
Shih-wei Liao3049ec92010-09-10 14:45:09 -070067ifneq ($(findstring Attrs.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080068LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/Attrs.inc
Logan Chien93e534a2011-12-16 17:39:13 +080069$(intermediates)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080070$(intermediates)/include/clang/AST/Attrs.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070071 $(call transform-clang-td-to-out,clang-attr-classes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070072endif
73
Stephen Hines651f13c2014-04-23 16:59:28 -070074ifneq ($(findstring AttrParserStringSwitches.inc,$(TBLGEN_TABLES)),)
75LOCAL_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 Shene5599602014-09-19 12:02:00 -070078 $(call transform-clang-td-to-out,clang-attr-parser-string-switches)
Stephen Hines651f13c2014-04-23 16:59:28 -070079endif
80
81ifneq ($(findstring AttrVisitor.inc,$(TBLGEN_TABLES)),)
82LOCAL_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 Shene5599602014-09-19 12:02:00 -070085 $(call transform-clang-td-to-out,clang-attr-ast-visitor)
Stephen Hines651f13c2014-04-23 16:59:28 -070086endif
87
Shih-wei Liao560ad312012-03-22 11:50:56 -070088ifneq ($(findstring AttrParsedAttrKinds.inc,$(TBLGEN_TABLES)),)
89LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrParsedAttrKinds.inc
90$(intermediates)/include/clang/Sema/AttrParsedAttrKinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080091$(intermediates)/include/clang/Sema/AttrParsedAttrKinds.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070092 $(call transform-clang-td-to-out,clang-attr-parsed-attr-kinds)
Shih-wei Liao560ad312012-03-22 11:50:56 -070093endif
94
Stephen Hines229d3452014-02-08 04:04:49 -080095ifneq ($(findstring AttrParsedAttrImpl.inc,$(TBLGEN_TABLES)),)
96LOCAL_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 Shene5599602014-09-19 12:02:00 -070099 $(call transform-clang-td-to-out,clang-attr-parsed-attr-impl)
Stephen Hines229d3452014-02-08 04:04:49 -0800100endif
101
Shih-wei Liao560ad312012-03-22 11:50:56 -0700102ifneq ($(findstring AttrParsedAttrList.inc,$(TBLGEN_TABLES)),)
103LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrParsedAttrList.inc
104$(intermediates)/include/clang/Sema/AttrParsedAttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800105$(intermediates)/include/clang/Sema/AttrParsedAttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700106 $(call transform-clang-td-to-out,clang-attr-parsed-attr-list)
Shih-wei Liao560ad312012-03-22 11:50:56 -0700107endif
108
Stephen Hines36103552012-03-05 15:04:58 -0800109ifneq ($(findstring AttrTemplateInstantiate.inc,$(TBLGEN_TABLES)),)
110LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc
111$(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800112$(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700113 $(call transform-clang-td-to-out,clang-attr-template-instantiate)
Stephen Hines36103552012-03-05 15:04:58 -0800114endif
115
Logan Chienc805eb92011-03-08 02:13:34 +0800116ifneq ($(findstring Checkers.inc,$(TBLGEN_TABLES)),)
117LOCAL_GENERATED_SOURCES += $(intermediates)/Checkers.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800118$(intermediates)/Checkers.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Logan Chienc805eb92011-03-08 02:13:34 +0800119$(intermediates)/Checkers.inc: \
120 $(CLANG_ROOT_PATH)/lib/StaticAnalyzer/Checkers/Checkers.td \
121 $(CLANG_ROOT_PATH)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td \
Ying Wang1927ae92013-02-20 14:00:13 -0800122 | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700123 $(call transform-clang-td-to-out,clang-sa-checkers)
Logan Chienc805eb92011-03-08 02:13:34 +0800124endif
125
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700126ifneq ($(findstring CommentCommandInfo.inc,$(TBLGEN_TABLES)),)
127LOCAL_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 Wang1927ae92013-02-20 14:00:13 -0800131 | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700132 $(call transform-clang-td-to-out,clang-comment-command-info)
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700133endif
134
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800135ifneq ($(findstring CommentCommandList.inc,$(TBLGEN_TABLES)),)
136LOCAL_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 Shene5599602014-09-19 12:02:00 -0700141 $(call transform-clang-td-to-out,clang-comment-command-list)
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800142endif
143
144ifneq ($(findstring CommentHTMLNamedCharacterReferences.inc,$(TBLGEN_TABLES)),)
145LOCAL_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 Shene5599602014-09-19 12:02:00 -0700150 $(call transform-clang-td-to-out,clang-comment-html-named-character-references)
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800151endif
152
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700153ifneq ($(findstring CommentHTMLTagsProperties.inc,$(TBLGEN_TABLES)),)
154LOCAL_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 Wang1927ae92013-02-20 14:00:13 -0800158 | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700159 $(call transform-clang-td-to-out,clang-comment-html-tags-properties)
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700160endif
161
Stephen Hines210d8aa2012-09-13 19:33:19 -0700162ifneq ($(findstring CommentHTMLTags.inc,$(TBLGEN_TABLES)),)
163LOCAL_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 Wang1927ae92013-02-20 14:00:13 -0800167 | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700168 $(call transform-clang-td-to-out,clang-comment-html-tags)
Stephen Hines210d8aa2012-09-13 19:33:19 -0700169endif
170
Shih-wei Liaoee959352012-08-03 01:19:05 -0700171ifneq ($(findstring CommentNodes.inc,$(TBLGEN_TABLES)),)
172LOCAL_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 Wang1927ae92013-02-20 14:00:13 -0800176 | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700177 $(call transform-clang-td-to-out,clang-comment-nodes)
Shih-wei Liaoee959352012-08-03 01:19:05 -0700178endif
179
Shih-wei Liaoea285162010-06-04 12:34:56 -0700180ifneq ($(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800181LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/include/clang/Basic/,$(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)))
Logan Chien93e534a2011-12-16 17:39:13 +0800182$(intermediates)/include/clang/Basic/Diagnostic%Kinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Stephen Hines2302b812012-07-26 17:37:59 -0700183$(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 Wang1927ae92013-02-20 14:00:13 -0800186 | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700187 $(call transform-clang-td-to-out,clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc,%,$(@F)))
Shih-wei Liaoea285162010-06-04 12:34:56 -0700188endif
189
190ifneq ($(findstring DiagnosticGroups.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800191LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/DiagnosticGroups.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800192$(intermediates)/include/clang/Basic/DiagnosticGroups.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800193$(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 Shene5599602014-09-19 12:02:00 -0700194 $(call transform-clang-td-to-out,clang-diag-groups)
Shih-wei Liaoea285162010-06-04 12:34:56 -0700195endif
196
Nowar Gu0c115a12011-05-14 13:42:21 +0800197ifneq ($(findstring DiagnosticIndexName.inc,$(TBLGEN_TABLES)),)
198LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/DiagnosticIndexName.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800199$(intermediates)/include/clang/Basic/DiagnosticIndexName.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800200$(intermediates)/include/clang/Basic/DiagnosticIndexName.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700201 $(call transform-clang-td-to-out,clang-diag-groups)
Nowar Gu0c115a12011-05-14 13:42:21 +0800202endif
203
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700204ifneq ($(findstring DeclNodes.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800205LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/DeclNodes.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800206$(intermediates)/include/clang/AST/DeclNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800207$(intermediates)/include/clang/AST/DeclNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/DeclNodes.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700208 $(call transform-clang-td-to-out,clang-decl-nodes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700209endif
210
211ifneq ($(findstring StmtNodes.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800212LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/StmtNodes.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800213$(intermediates)/include/clang/AST/StmtNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800214$(intermediates)/include/clang/AST/StmtNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/StmtNodes.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700215 $(call transform-clang-td-to-out,clang-stmt-nodes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700216endif
217
218ifneq ($(findstring arm_neon.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800219LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/arm_neon.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800220$(intermediates)/include/clang/Basic/arm_neon.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800221$(intermediates)/include/clang/Basic/arm_neon.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/arm_neon.td | $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700222 $(call transform-clang-td-to-out,arm-neon-sema)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700223endif
224
Shih-wei Liaoea285162010-06-04 12:34:56 -0700225ifneq ($(findstring Options.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800226LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Driver/Options.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800227$(intermediates)/include/clang/Driver/Options.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Stephen Hinesa9025112013-08-08 02:26:27 -0700228$(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 Hines0a1b1cc2014-06-04 14:02:03 -0700229 | $(CLANG_TBLGEN) $(LLVM_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700230 $(call transform-td-to-out,opt-parser-defs)
Shih-wei Liaoea285162010-06-04 12:34:56 -0700231endif
232
Loganac774a72011-01-19 12:06:46 +0800233LOCAL_C_INCLUDES += $(intermediates)/include
234
Shih-wei Liao200213f2010-06-07 22:05:52 -0700235endif