1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_TBLGEN_VARS)
4
5TBLGEN_TABLES := \
6  AttrList.inc \
7  AttrParsedAttrList.inc \
8  AttrPCHRead.inc \
9  AttrPCHWrite.inc \
10  Attrs.inc \
11  CommentCommandList.inc \
12  CommentNodes.inc \
13  DeclNodes.inc \
14  DiagnosticCommonKinds.inc \
15  DiagnosticFrontendKinds.inc \
16  DiagnosticSemaKinds.inc \
17  DiagnosticSerializationKinds.inc \
18  StmtNodes.inc
19
20clang_serialization_SRC_FILES :=\
21  ASTCommon.cpp \
22  ASTReader.cpp \
23  ASTReaderDecl.cpp \
24  ASTReaderStmt.cpp \
25  ASTWriter.cpp \
26  ASTWriterDecl.cpp \
27  ASTWriterStmt.cpp \
28  GeneratePCH.cpp \
29  GlobalModuleIndex.cpp \
30  Module.cpp \
31  ModuleFileExtension.cpp \
32  ModuleManager.cpp
33
34# For the host
35# =====================================================
36include $(CLEAR_VARS)
37
38LOCAL_SRC_FILES := $(clang_serialization_SRC_FILES)
39LOCAL_MODULE:= libclangSerialization
40LOCAL_MODULE_TAGS := optional
41
42include $(CLANG_HOST_BUILD_MK)
43include $(CLANG_TBLGEN_RULES_MK)
44include $(CLANG_VERSION_INC_MK)
45include $(BUILD_HOST_STATIC_LIBRARY)
46
47# For the target
48# =====================================================
49include $(CLEAR_VARS)
50
51LOCAL_SRC_FILES := $(clang_serialization_SRC_FILES)
52LOCAL_MODULE:= libclangSerialization
53LOCAL_MODULE_TAGS := optional
54
55include $(CLANG_DEVICE_BUILD_MK)
56include $(CLANG_TBLGEN_RULES_MK)
57include $(CLANG_VERSION_INC_MK)
58include $(BUILD_STATIC_LIBRARY)
59