blob: ff6ecdc85372383023856e5f3a0d8caace02c1cb [file] [log] [blame]
Shih-wei Liao560ad312012-03-22 11:50:56 -07001LOCAL_PATH:= $(call my-dir)
2
Tong Shene5599602014-09-19 12:02:00 -07003include $(CLEAR_TBLGEN_VARS)
4
Shih-wei Liao560ad312012-03-22 11:50:56 -07005clang_edit_SRC_FILES := \
6 Commit.cpp \
7 EditedSource.cpp \
8 RewriteObjCFoundationAPI.cpp
9
Shih-wei Liao560ad312012-03-22 11:50:56 -070010TBLGEN_TABLES := \
11 Attrs.inc \
12 AttrList.inc \
Stephen Hinesbd3aca02013-03-05 23:41:44 -080013 CommentCommandList.inc \
Shih-wei Liaoee959352012-08-03 01:19:05 -070014 CommentNodes.inc \
Shih-wei Liao560ad312012-03-22 11:50:56 -070015 DeclNodes.inc \
16 DiagnosticCommonKinds.inc \
17 StmtNodes.inc
18
Tong Shene5599602014-09-19 12:02:00 -070019# For the host
20# =====================================================
21include $(CLEAR_VARS)
22
Shih-wei Liao560ad312012-03-22 11:50:56 -070023LOCAL_SRC_FILES := $(clang_edit_SRC_FILES)
Shih-wei Liao560ad312012-03-22 11:50:56 -070024LOCAL_MODULE:= libclangEdit
Shih-wei Liao560ad312012-03-22 11:50:56 -070025LOCAL_MODULE_TAGS := optional
26
27include $(CLANG_HOST_BUILD_MK)
28include $(CLANG_VERSION_INC_MK)
29include $(CLANG_TBLGEN_RULES_MK)
30include $(BUILD_HOST_STATIC_LIBRARY)
Tong Shene5599602014-09-19 12:02:00 -070031
32# For the target
33# =====================================================
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES := $(clang_edit_SRC_FILES)
37LOCAL_MODULE:= libclangEdit
38LOCAL_MODULE_TAGS := optional
39
40include $(CLANG_DEVICE_BUILD_MK)
41include $(CLANG_VERSION_INC_MK)
42include $(CLANG_TBLGEN_RULES_MK)
43include $(BUILD_STATIC_LIBRARY)