1LOCAL_PATH:= $(call my-dir)
2
3clang_codegen_TBLGEN_TABLES := \
4  AttrList.inc \
5  Attrs.inc \
6  CommentNodes.inc \
7  DeclNodes.inc \
8  DiagnosticCommonKinds.inc \
9  DiagnosticFrontendKinds.inc \
10  StmtNodes.inc \
11  arm_neon.inc
12
13clang_codegen_SRC_FILES := \
14  BackendUtil.cpp \
15  CGBlocks.cpp \
16  CGBuiltin.cpp \
17  CGCUDANV.cpp \
18  CGCUDARuntime.cpp \
19  CGCXX.cpp \
20  CGCXXABI.cpp \
21  CGCall.cpp \
22  CGClass.cpp \
23  CGCleanup.cpp \
24  CGDebugInfo.cpp \
25  CGDecl.cpp \
26  CGDeclCXX.cpp \
27  CGException.cpp \
28  CGExpr.cpp \
29  CGExprAgg.cpp \
30  CGExprCXX.cpp \
31  CGExprComplex.cpp \
32  CGExprConstant.cpp \
33  CGExprScalar.cpp \
34  CGObjC.cpp \
35  CGObjCGNU.cpp \
36  CGObjCMac.cpp \
37  CGObjCRuntime.cpp \
38  CGOpenCLRuntime.cpp \
39  CGRTTI.cpp \
40  CGRecordLayoutBuilder.cpp \
41  CGStmt.cpp \
42  CGVTT.cpp \
43  CGVTables.cpp \
44  CodeGenAction.cpp \
45  CodeGenFunction.cpp \
46  CodeGenModule.cpp \
47  CodeGenTBAA.cpp \
48  CodeGenTypes.cpp \
49  ItaniumCXXABI.cpp \
50  MicrosoftCXXABI.cpp \
51  ModuleBuilder.cpp \
52  TargetInfo.cpp
53
54# For the host only
55# =====================================================
56include $(CLEAR_VARS)
57include $(CLEAR_TBLGEN_VARS)
58
59LOCAL_MODULE:= libclangCodeGen
60LOCAL_MODULE_TAGS := optional
61
62LOCAL_SRC_FILES := $(clang_codegen_SRC_FILES)
63TBLGEN_TABLES := $(clang_codegen_TBLGEN_TABLES)
64
65include $(CLANG_HOST_BUILD_MK)
66include $(CLANG_VERSION_INC_MK)
67include $(CLANG_TBLGEN_RULES_MK)
68include $(LLVM_GEN_INTRINSICS_MK)
69include $(BUILD_HOST_STATIC_LIBRARY)
70