blob: 9982056e20a662be9a6c71f30c1bed4c05359b2a [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
Stephen Hines176edba2014-12-01 14:53:08 -080016generated_sources := $(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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080019LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrDump.inc
20$(generated_sources)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
21$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080026LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrImpl.inc
27$(generated_sources)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
28$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080033LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc
34$(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
35$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080040LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/AttrList.inc
41$(generated_sources)/include/clang/Basic/AttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
42$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080047LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc
48$(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
49$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080054LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Serialization/AttrPCHRead.inc
55$(generated_sources)/include/clang/Serialization/AttrPCHRead.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
56$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080061LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc
62$(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
63$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080068LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/Attrs.inc
69$(generated_sources)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
70$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080075LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc
76$(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
77$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080082LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrVisitor.inc
83$(generated_sources)/include/clang/AST/AttrVisitor.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
84$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080089LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc
90$(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
91$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -080096LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc
97$(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
98$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800103LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc
104$(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
105$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800110LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc
111$(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
112$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800117LOCAL_GENERATED_SOURCES += $(generated_sources)/Checkers.inc
118$(generated_sources)/Checkers.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
119$(generated_sources)/Checkers.inc: \
Logan Chienc805eb92011-03-08 02:13:34 +0800120 $(CLANG_ROOT_PATH)/lib/StaticAnalyzer/Checkers/Checkers.td \
121 $(CLANG_ROOT_PATH)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td \
Stephen Hines176edba2014-12-01 14:53:08 -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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800127LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentCommandInfo.inc
128$(generated_sources)/include/clang/AST/CommentCommandInfo.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
129$(generated_sources)/include/clang/AST/CommentCommandInfo.inc: \
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700130 $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \
Stephen Hines176edba2014-12-01 14:53:08 -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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800136LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentCommandList.inc
137$(generated_sources)/include/clang/AST/CommentCommandList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
138$(generated_sources)/include/clang/AST/CommentCommandList.inc: \
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800139 $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800140 $(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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800145LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc
146$(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
147$(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: \
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800148 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLNamedCharacterReferences.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800149 $(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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800154LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc
155$(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
156$(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc: \
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700157 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \
Stephen Hines176edba2014-12-01 14:53:08 -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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800163LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLTags.inc
164$(generated_sources)/include/clang/AST/CommentHTMLTags.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
165$(generated_sources)/include/clang/AST/CommentHTMLTags.inc: \
Stephen Hines210d8aa2012-09-13 19:33:19 -0700166 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \
Stephen Hines176edba2014-12-01 14:53:08 -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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800172LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentNodes.inc
173$(generated_sources)/include/clang/AST/CommentNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
174$(generated_sources)/include/clang/AST/CommentNodes.inc: \
Shih-wei Liaoee959352012-08-03 01:19:05 -0700175 $(CLANG_ROOT_PATH)/include/clang/Basic/CommentNodes.td \
Stephen Hines176edba2014-12-01 14:53:08 -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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800181LOCAL_GENERATED_SOURCES += $(addprefix $(generated_sources)/include/clang/Basic/,$(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)))
182$(generated_sources)/include/clang/Basic/Diagnostic%Kinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
183$(generated_sources)/include/clang/Basic/Diagnostic%Kinds.inc: \
Stephen Hines2302b812012-07-26 17:37:59 -0700184 $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td \
185 $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic%Kinds.td \
Stephen Hines176edba2014-12-01 14:53:08 -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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800191LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/DiagnosticGroups.inc
192$(generated_sources)/include/clang/Basic/DiagnosticGroups.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
193$(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 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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800198LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc
199$(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
200$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800205LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/DeclNodes.inc
206$(generated_sources)/include/clang/AST/DeclNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
207$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800212LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/StmtNodes.inc
213$(generated_sources)/include/clang/AST/StmtNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
214$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800219LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/arm_neon.inc
220$(generated_sources)/include/clang/Basic/arm_neon.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
221$(generated_sources)/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)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800226LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Driver/Options.inc
227$(generated_sources)/include/clang/Driver/Options.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
228$(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 \
229 $(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
Stephen Hines176edba2014-12-01 14:53:08 -0800233LOCAL_C_INCLUDES += $(generated_sources)/include
Loganac774a72011-01-19 12:06:46 +0800234
Shih-wei Liao200213f2010-06-07 22:05:52 -0700235endif