blob: f9e4181035f5e688ccec0b2154476453ccbb0b57 [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 \
Todd Fiala3313f882013-10-22 16:11:47 -070025 libclangRewriteFrontend \
26 libclangRewriteCore \
Stephen Hinesf71d14a2013-02-27 13:34:21 -080027 libclangSerialization
28
29LOCAL_SHARED_LIBRARIES := libLLVM
30
Stephen Hinesf553c8d2013-02-27 17:04:46 -080031ifeq ($(HOST_OS),windows)
32 LOCAL_LDLIBS := -limagehlp -lpsapi
33else
34 LOCAL_LDLIBS := -ldl -lpthread
35endif
Stephen Hinesf71d14a2013-02-27 13:34:21 -080036
37include $(CLANG_HOST_BUILD_MK)
38include $(BUILD_HOST_SHARED_LIBRARY)
Tim Murray9e8bf2c2013-03-06 10:12:22 -080039
Stephen Hinesce5d5dc2013-09-06 16:53:40 -070040endif # don't build in unbundled branches
41endif # don't build unless forced to