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 \ |
| 25 | libclangSerialization |
| 26 | |
| 27 | LOCAL_SHARED_LIBRARIES := libLLVM |
| 28 | |
Stephen Hines | f553c8d | 2013-02-27 17:04:46 -0800 | [diff] [blame] | 29 | ifeq ($(HOST_OS),windows) |
| 30 | LOCAL_LDLIBS := -limagehlp -lpsapi |
| 31 | else |
| 32 | LOCAL_LDLIBS := -ldl -lpthread |
| 33 | endif |
Stephen Hines | f71d14a | 2013-02-27 13:34:21 -0800 | [diff] [blame] | 34 | |
| 35 | include $(CLANG_HOST_BUILD_MK) |
| 36 | include $(BUILD_HOST_SHARED_LIBRARY) |
Tim Murray | 9e8bf2c | 2013-03-06 10:12:22 -0800 | [diff] [blame] | 37 | |
Stephen Hines | ce5d5dc | 2013-09-06 16:53:40 -0700 | [diff] [blame^] | 38 | endif # don't build in unbundled branches |
| 39 | endif # don't build unless forced to |