blob: d4ec63c30bbfe90d9be7ca858ef0d9d572c81486 [file] [log] [blame]
Stephen Hinesce5d5dc2013-09-06 16:53:40 -07001# Don't build the library unless forced to.
2ifeq (true,$(FORCE_BUILD_LLVM_COMPONENTS))
Tim Murray9e8bf2c2013-03-06 10:12:22 -08003# Don't build the library in unbundled branches.
4ifeq (,$(TARGET_BUILD_APPS))
5
Stephen Hinesf71d14a2013-02-27 13:34:21 -08006LOCAL_PATH:= $(call my-dir)
7
8LOCAL_IS_HOST_MODULE := true
9
10LOCAL_MODULE:= libclang
11
12LOCAL_MODULE_TAGS := optional
13
14LOCAL_WHOLE_STATIC_LIBRARIES := \
15 libclangDriver \
16 libclangParse \
17 libclangSema \
18 libclangAnalysis \
19 libclangCodeGen \
20 libclangAST \
21 libclangEdit \
22 libclangLex \
23 libclangFrontend \
24 libclangBasic \
25 libclangSerialization
26
27LOCAL_SHARED_LIBRARIES := libLLVM
28
Stephen Hinesf553c8d2013-02-27 17:04:46 -080029ifeq ($(HOST_OS),windows)
30 LOCAL_LDLIBS := -limagehlp -lpsapi
31else
32 LOCAL_LDLIBS := -ldl -lpthread
33endif
Stephen Hinesf71d14a2013-02-27 13:34:21 -080034
35include $(CLANG_HOST_BUILD_MK)
36include $(BUILD_HOST_SHARED_LIBRARY)
Tim Murray9e8bf2c2013-03-06 10:12:22 -080037
Stephen Hinesce5d5dc2013-09-06 16:53:40 -070038endif # don't build in unbundled branches
39endif # don't build unless forced to