Stephen Hines | ce5d5dc | 2013-09-06 16:53:40 -0700 | [diff] [blame] | 1 | # Don't build the library unless forced to. |
| 2 | ifeq (true,$(FORCE_BUILD_LLVM_COMPONENTS)) |
Tim Murray | 9e8bf2c | 2013-03-06 10:12:22 -0800 | [diff] [blame] | 3 | # Don't build the library in unbundled branches. |
| 4 | ifeq (,$(TARGET_BUILD_APPS)) |
| 5 | |
Stephen Hines | f71d14a | 2013-02-27 13:34:21 -0800 | [diff] [blame] | 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | |
| 8 | LOCAL_IS_HOST_MODULE := true |
| 9 | |
| 10 | LOCAL_MODULE:= libclang |
| 11 | |
| 12 | LOCAL_MODULE_TAGS := optional |
| 13 | |
| 14 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 15 | libclangDriver \ |
| 16 | libclangParse \ |
| 17 | libclangSema \ |
| 18 | libclangAnalysis \ |
| 19 | libclangCodeGen \ |
| 20 | libclangAST \ |
| 21 | libclangEdit \ |
| 22 | libclangLex \ |
| 23 | libclangFrontend \ |
| 24 | libclangBasic \ |
Todd Fiala | 3313f88 | 2013-10-22 16:11:47 -0700 | [diff] [blame^] | 25 | libclangRewriteFrontend \ |
| 26 | libclangRewriteCore \ |
Stephen Hines | f71d14a | 2013-02-27 13:34:21 -0800 | [diff] [blame] | 27 | libclangSerialization |
| 28 | |
| 29 | LOCAL_SHARED_LIBRARIES := libLLVM |
| 30 | |
Stephen Hines | f553c8d | 2013-02-27 17:04:46 -0800 | [diff] [blame] | 31 | ifeq ($(HOST_OS),windows) |
| 32 | LOCAL_LDLIBS := -limagehlp -lpsapi |
| 33 | else |
| 34 | LOCAL_LDLIBS := -ldl -lpthread |
| 35 | endif |
Stephen Hines | f71d14a | 2013-02-27 13:34:21 -0800 | [diff] [blame] | 36 | |
| 37 | include $(CLANG_HOST_BUILD_MK) |
| 38 | include $(BUILD_HOST_SHARED_LIBRARY) |
Tim Murray | 9e8bf2c | 2013-03-06 10:12:22 -0800 | [diff] [blame] | 39 | |
Stephen Hines | ce5d5dc | 2013-09-06 16:53:40 -0700 | [diff] [blame] | 40 | endif # don't build in unbundled branches |
| 41 | endif # don't build unless forced to |