blob: 8e7a2cd28644ca4e92f277d30a0e735db84f0177 [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
Stephen Hinesf71d14a2013-02-27 13:34:21 -080029
Stephen Hinesf553c8d2013-02-27 17:04:46 -080030ifeq ($(HOST_OS),windows)
Logan Chien68350212014-06-11 02:29:45 +080031 LOCAL_SHARED_LIBRARIES := libLLVM
Stephen Hinesf553c8d2013-02-27 17:04:46 -080032 LOCAL_LDLIBS := -limagehlp -lpsapi
33else
Logan Chien68350212014-06-11 02:29:45 +080034 LOCAL_SHARED_LIBRARIES := libLLVM libc++
Stephen Hinesf553c8d2013-02-27 17:04:46 -080035 LOCAL_LDLIBS := -ldl -lpthread
36endif
Stephen Hinesf71d14a2013-02-27 13:34:21 -080037
38include $(CLANG_HOST_BUILD_MK)
39include $(BUILD_HOST_SHARED_LIBRARY)
Tim Murray9e8bf2c2013-03-06 10:12:22 -080040
Stephen Hinesce5d5dc2013-09-06 16:53:40 -070041endif # don't build in unbundled branches
42endif # don't build unless forced to