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  ObjectFilePCHContainerOperations.cpp \
65  SanitizerMetadata.cpp \
66  TargetInfo.cpp
67
68# For the host
69# =====================================================
70include $(CLEAR_VARS)
71
72LOCAL_MODULE:= libclangCodeGen
73LOCAL_MODULE_TAGS := optional
74
75LOCAL_SRC_FILES := $(clang_codegen_SRC_FILES)
76TBLGEN_TABLES := $(clang_codegen_TBLGEN_TABLES)
77
78include $(CLANG_HOST_BUILD_MK)
79include $(CLANG_VERSION_INC_MK)
80include $(CLANG_TBLGEN_RULES_MK)
81include $(LLVM_GEN_ATTRIBUTES_MK)
82include $(LLVM_GEN_INTRINSICS_MK)
83include $(BUILD_HOST_STATIC_LIBRARY)
84
85# For the target
86# =====================================================
87include $(CLEAR_VARS)
88
89LOCAL_MODULE:= libclangCodeGen
90LOCAL_MODULE_TAGS := optional
91
92LOCAL_SRC_FILES := $(clang_codegen_SRC_FILES)
93TBLGEN_TABLES := $(clang_codegen_TBLGEN_TABLES)
94
95include $(CLANG_DEVICE_BUILD_MK)
96include $(CLANG_VERSION_INC_MK)
97include $(CLANG_TBLGEN_RULES_MK)
98include $(LLVM_GEN_ATTRIBUTES_MK)
99include $(LLVM_GEN_INTRINSICS_MK)
100include $(BUILD_STATIC_LIBRARY)
101