blob: 8e408a23f264c6eb5a854f242caf334b78308629 [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 Hines0e2c34f2015-03-23 12:09:02 -070016define transform-td-to-out
17$(if $(LOCAL_IS_HOST_MODULE), \
18 $(call transform-host-td-to-out,$(1)), \
19 $(call transform-device-td-to-out,$(1)))
20endef
21
Stephen Hines176edba2014-12-01 14:53:08 -080022generated_sources := $(call local-generated-sources-dir)
Shih-wei Liaoea285162010-06-04 12:34:56 -070023
Stephen Hinescd376b62013-01-09 00:19:46 -080024ifneq ($(findstring AttrDump.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080025LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrDump.inc
26$(generated_sources)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
27$(generated_sources)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070028 $(call transform-clang-td-to-out,clang-attr-dump)
Stephen Hinescd376b62013-01-09 00:19:46 -080029endif
30
Shih-wei Liao3049ec92010-09-10 14:45:09 -070031ifneq ($(findstring AttrImpl.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080032LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrImpl.inc
33$(generated_sources)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
34$(generated_sources)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070035 $(call transform-clang-td-to-out,clang-attr-impl)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070036endif
37
Stephen Hines651f13c2014-04-23 16:59:28 -070038ifneq ($(findstring AttrHasAttributeImpl.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080039LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc
40$(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
41$(generated_sources)/include/clang/Basic/AttrHasAttributeImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070042 $(call transform-clang-td-to-out,clang-attr-has-attribute-impl)
Stephen Hines651f13c2014-04-23 16:59:28 -070043endif
44
Shih-wei Liao3049ec92010-09-10 14:45:09 -070045ifneq ($(findstring AttrList.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080046LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/AttrList.inc
47$(generated_sources)/include/clang/Basic/AttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
48$(generated_sources)/include/clang/Basic/AttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070049 $(call transform-clang-td-to-out,clang-attr-list)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070050endif
51
Stephen Hinesbd3aca02013-03-05 23:41:44 -080052ifneq ($(findstring AttrSpellingListIndex.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080053LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc
54$(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
55$(generated_sources)/include/clang/Sema/AttrSpellingListIndex.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070056 $(call transform-clang-td-to-out,clang-attr-spelling-index)
Stephen Hinesbd3aca02013-03-05 23:41:44 -080057endif
58
Logan150e0ef2011-01-19 10:29:26 +080059ifneq ($(findstring AttrPCHRead.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080060LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Serialization/AttrPCHRead.inc
61$(generated_sources)/include/clang/Serialization/AttrPCHRead.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
62$(generated_sources)/include/clang/Serialization/AttrPCHRead.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070063 $(call transform-clang-td-to-out,clang-attr-pch-read)
Logan150e0ef2011-01-19 10:29:26 +080064endif
65
66ifneq ($(findstring AttrPCHWrite.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080067LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc
68$(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
69$(generated_sources)/include/clang/Serialization/AttrPCHWrite.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070070 $(call transform-clang-td-to-out,clang-attr-pch-write)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080071endif
72
Shih-wei Liao3049ec92010-09-10 14:45:09 -070073ifneq ($(findstring Attrs.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080074LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/Attrs.inc
75$(generated_sources)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
76$(generated_sources)/include/clang/AST/Attrs.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070077 $(call transform-clang-td-to-out,clang-attr-classes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070078endif
79
Stephen Hines651f13c2014-04-23 16:59:28 -070080ifneq ($(findstring AttrParserStringSwitches.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080081LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc
82$(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
83$(generated_sources)/include/clang/Parse/AttrParserStringSwitches.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070084 $(call transform-clang-td-to-out,clang-attr-parser-string-switches)
Stephen Hines651f13c2014-04-23 16:59:28 -070085endif
86
87ifneq ($(findstring AttrVisitor.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080088LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrVisitor.inc
89$(generated_sources)/include/clang/AST/AttrVisitor.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
90$(generated_sources)/include/clang/AST/AttrVisitor.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070091 $(call transform-clang-td-to-out,clang-attr-ast-visitor)
Stephen Hines651f13c2014-04-23 16:59:28 -070092endif
93
Shih-wei Liao560ad312012-03-22 11:50:56 -070094ifneq ($(findstring AttrParsedAttrKinds.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -080095LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc
96$(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
97$(generated_sources)/include/clang/Sema/AttrParsedAttrKinds.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -070098 $(call transform-clang-td-to-out,clang-attr-parsed-attr-kinds)
Shih-wei Liao560ad312012-03-22 11:50:56 -070099endif
100
Stephen Hines229d3452014-02-08 04:04:49 -0800101ifneq ($(findstring AttrParsedAttrImpl.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800102LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc
103$(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
104$(generated_sources)/include/clang/Sema/AttrParsedAttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700105 $(call transform-clang-td-to-out,clang-attr-parsed-attr-impl)
Stephen Hines229d3452014-02-08 04:04:49 -0800106endif
107
Shih-wei Liao560ad312012-03-22 11:50:56 -0700108ifneq ($(findstring AttrParsedAttrList.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800109LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc
110$(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
111$(generated_sources)/include/clang/Sema/AttrParsedAttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700112 $(call transform-clang-td-to-out,clang-attr-parsed-attr-list)
Shih-wei Liao560ad312012-03-22 11:50:56 -0700113endif
114
Stephen Hines36103552012-03-05 15:04:58 -0800115ifneq ($(findstring AttrTemplateInstantiate.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800116LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc
117$(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
118$(generated_sources)/include/clang/Sema/AttrTemplateInstantiate.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700119 $(call transform-clang-td-to-out,clang-attr-template-instantiate)
Stephen Hines36103552012-03-05 15:04:58 -0800120endif
121
Logan Chienc805eb92011-03-08 02:13:34 +0800122ifneq ($(findstring Checkers.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800123LOCAL_GENERATED_SOURCES += $(generated_sources)/Checkers.inc
124$(generated_sources)/Checkers.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
125$(generated_sources)/Checkers.inc: \
Logan Chienc805eb92011-03-08 02:13:34 +0800126 $(CLANG_ROOT_PATH)/lib/StaticAnalyzer/Checkers/Checkers.td \
127 $(CLANG_ROOT_PATH)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800128 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700129 $(call transform-clang-td-to-out,clang-sa-checkers)
Logan Chienc805eb92011-03-08 02:13:34 +0800130endif
131
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700132ifneq ($(findstring CommentCommandInfo.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800133LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentCommandInfo.inc
134$(generated_sources)/include/clang/AST/CommentCommandInfo.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
135$(generated_sources)/include/clang/AST/CommentCommandInfo.inc: \
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700136 $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800137 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700138 $(call transform-clang-td-to-out,clang-comment-command-info)
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700139endif
140
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800141ifneq ($(findstring CommentCommandList.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800142LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentCommandList.inc
143$(generated_sources)/include/clang/AST/CommentCommandList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
144$(generated_sources)/include/clang/AST/CommentCommandList.inc: \
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800145 $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800146 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700147 $(call transform-clang-td-to-out,clang-comment-command-list)
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800148endif
149
150ifneq ($(findstring CommentHTMLNamedCharacterReferences.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800151LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc
152$(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
153$(generated_sources)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: \
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800154 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLNamedCharacterReferences.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800155 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700156 $(call transform-clang-td-to-out,clang-comment-html-named-character-references)
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800157endif
158
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700159ifneq ($(findstring CommentHTMLTagsProperties.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800160LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc
161$(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
162$(generated_sources)/include/clang/AST/CommentHTMLTagsProperties.inc: \
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700163 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800164 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700165 $(call transform-clang-td-to-out,clang-comment-html-tags-properties)
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700166endif
167
Stephen Hines210d8aa2012-09-13 19:33:19 -0700168ifneq ($(findstring CommentHTMLTags.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800169LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentHTMLTags.inc
170$(generated_sources)/include/clang/AST/CommentHTMLTags.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
171$(generated_sources)/include/clang/AST/CommentHTMLTags.inc: \
Stephen Hines210d8aa2012-09-13 19:33:19 -0700172 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800173 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700174 $(call transform-clang-td-to-out,clang-comment-html-tags)
Stephen Hines210d8aa2012-09-13 19:33:19 -0700175endif
176
Shih-wei Liaoee959352012-08-03 01:19:05 -0700177ifneq ($(findstring CommentNodes.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800178LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/CommentNodes.inc
179$(generated_sources)/include/clang/AST/CommentNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
180$(generated_sources)/include/clang/AST/CommentNodes.inc: \
Shih-wei Liaoee959352012-08-03 01:19:05 -0700181 $(CLANG_ROOT_PATH)/include/clang/Basic/CommentNodes.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800182 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700183 $(call transform-clang-td-to-out,clang-comment-nodes)
Shih-wei Liaoee959352012-08-03 01:19:05 -0700184endif
185
Shih-wei Liaoea285162010-06-04 12:34:56 -0700186ifneq ($(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800187LOCAL_GENERATED_SOURCES += $(addprefix $(generated_sources)/include/clang/Basic/,$(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)))
188$(generated_sources)/include/clang/Basic/Diagnostic%Kinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
189$(generated_sources)/include/clang/Basic/Diagnostic%Kinds.inc: \
Stephen Hines2302b812012-07-26 17:37:59 -0700190 $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td \
191 $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic%Kinds.td \
Stephen Hines176edba2014-12-01 14:53:08 -0800192 $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700193 $(call transform-clang-td-to-out,clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc,%,$(@F)))
Shih-wei Liaoea285162010-06-04 12:34:56 -0700194endif
195
196ifneq ($(findstring DiagnosticGroups.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800197LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/DiagnosticGroups.inc
198$(generated_sources)/include/clang/Basic/DiagnosticGroups.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
199$(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 -0700200 $(call transform-clang-td-to-out,clang-diag-groups)
Shih-wei Liaoea285162010-06-04 12:34:56 -0700201endif
202
Nowar Gu0c115a12011-05-14 13:42:21 +0800203ifneq ($(findstring DiagnosticIndexName.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800204LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc
205$(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
206$(generated_sources)/include/clang/Basic/DiagnosticIndexName.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700207 $(call transform-clang-td-to-out,clang-diag-groups)
Nowar Gu0c115a12011-05-14 13:42:21 +0800208endif
209
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700210ifneq ($(findstring DeclNodes.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800211LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/DeclNodes.inc
212$(generated_sources)/include/clang/AST/DeclNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
213$(generated_sources)/include/clang/AST/DeclNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/DeclNodes.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700214 $(call transform-clang-td-to-out,clang-decl-nodes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700215endif
216
217ifneq ($(findstring StmtNodes.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800218LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/StmtNodes.inc
219$(generated_sources)/include/clang/AST/StmtNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
220$(generated_sources)/include/clang/AST/StmtNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/StmtNodes.td $(CLANG_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700221 $(call transform-clang-td-to-out,clang-stmt-nodes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700222endif
223
224ifneq ($(findstring arm_neon.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800225LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/arm_neon.inc
226$(generated_sources)/include/clang/Basic/arm_neon.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
227$(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 -0700228 $(call transform-clang-td-to-out,arm-neon-sema)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700229endif
230
Shih-wei Liaoea285162010-06-04 12:34:56 -0700231ifneq ($(findstring Options.inc,$(TBLGEN_TABLES)),)
Stephen Hines176edba2014-12-01 14:53:08 -0800232LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Driver/Options.inc
233$(generated_sources)/include/clang/Driver/Options.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
234$(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 \
235 $(CLANG_TBLGEN) $(LLVM_TBLGEN)
Tong Shene5599602014-09-19 12:02:00 -0700236 $(call transform-td-to-out,opt-parser-defs)
Shih-wei Liaoea285162010-06-04 12:34:56 -0700237endif
238
Stephen Hines0e2c34f2015-03-23 12:09:02 -0700239ifneq ($(findstring arm_neon.h,$(TBLGEN_TABLES)),)
240LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/Basic/arm_neon.h
241$(generated_sources)/include/clang/Basic/arm_neon.h: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
242$(generated_sources)/include/clang/Basic/arm_neon.h: $(CLANG_ROOT_PATH)/include/clang/Basic/arm_neon.td $(CLANG_TBLGEN)
243 $(call transform-clang-td-to-out,arm-neon)
244endif
245
Stephen Hines176edba2014-12-01 14:53:08 -0800246LOCAL_C_INCLUDES += $(generated_sources)/include
Loganac774a72011-01-19 12:06:46 +0800247
Shih-wei Liao200213f2010-06-07 22:05:52 -0700248endif