1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_TBLGEN_VARS)
4
5clang_codegen_TBLGEN_TABLES := \
6  AttrList.inc \
7  AttrParsedAttrList.inc \
8  Attrs.inc \
9  AttrVisitor.inc \
10  CommentCommandList.inc \
11  CommentNodes.inc \
12  DeclNodes.inc \
13  DiagnosticCommonKinds.inc \
14  DiagnosticFrontendKinds.inc \
15  DiagnosticSemaKinds.inc \
16  StmtNodes.inc \
17  arm_neon.inc
18
19clang_codegen_SRC_FILES := \
20  BackendUtil.cpp \
21  CGAtomic.cpp \
22  CGBlocks.cpp \
23  CGBuiltin.cpp \
24  CGCall.cpp \
25  CGClass.cpp \
26  CGCleanup.cpp \
27  CGCUDANV.cpp \
28  CGCUDARuntime.cpp \
29  CGCXXABI.cpp \
30  CGCXX.cpp \
31  CGDebugInfo.cpp \
32  CGDecl.cpp \
33  CGDeclCXX.cpp \
34  CGException.cpp \
35  CGExprAgg.cpp \
36  CGExprComplex.cpp \
37  CGExprConstant.cpp \
38  CGExpr.cpp \
39  CGExprCXX.cpp \
40  CGExprScalar.cpp \
41  CGLoopInfo.cpp \
42  CGObjC.cpp \
43  CGObjCGNU.cpp \
44  CGObjCMac.cpp \
45  CGObjCRuntime.cpp \
46  CGOpenCLRuntime.cpp \
47  CGOpenMPRuntime.cpp \
48  CGRecordLayoutBuilder.cpp \
49  CGStmt.cpp \
50  CGStmtOpenMP.cpp \
51  CGVTables.cpp \
52  CGVTT.cpp \
53  CodeGenABITypes.cpp \
54  CodeGenAction.cpp \
55  CodeGenFunction.cpp \
56  CodeGenModule.cpp \
57  CodeGenPGO.cpp \
58  CodeGenTBAA.cpp \
59  CodeGenTypes.cpp \
60  CoverageMappingGen.cpp \
61  ItaniumCXXABI.cpp \
62  MicrosoftCXXABI.cpp \
63  ModuleBuilder.cpp \
64  SanitizerMetadata.cpp \
65  TargetInfo.cpp
66
67# For the host
68# =====================================================
69include $(CLEAR_VARS)
70
71LOCAL_MODULE:= libclangCodeGen
72LOCAL_MODULE_TAGS := optional
73
74LOCAL_SRC_FILES := $(clang_codegen_SRC_FILES)
75TBLGEN_TABLES := $(clang_codegen_TBLGEN_TABLES)
76
77include $(CLANG_HOST_BUILD_MK)
78include $(CLANG_VERSION_INC_MK)
79include $(CLANG_TBLGEN_RULES_MK)
80include $(LLVM_GEN_INTRINSICS_MK)
81include $(BUILD_HOST_STATIC_LIBRARY)
82
83# For the target
84# =====================================================
85include $(CLEAR_VARS)
86
87LOCAL_MODULE:= libclangCodeGen
88LOCAL_MODULE_TAGS := optional
89
90LOCAL_SRC_FILES := $(clang_codegen_SRC_FILES)
91TBLGEN_TABLES := $(clang_codegen_TBLGEN_TABLES)
92
93include $(CLANG_DEVICE_BUILD_MK)
94include $(CLANG_VERSION_INC_MK)
95include $(CLANG_TBLGEN_RULES_MK)
96include $(LLVM_GEN_INTRINSICS_MK)
97include $(BUILD_STATIC_LIBRARY)
98