1# Don't build the library unless forced to. 2ifeq (true,$(FORCE_BUILD_LLVM_COMPONENTS)) 3# Don't build the library in unbundled branches. 4ifeq (,$(TARGET_BUILD_APPS)) 5 6LOCAL_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 libclangRewriteFrontend \ 26 libclangRewriteCore \ 27 libclangSerialization 28 29 30ifeq ($(HOST_OS),windows) 31 LOCAL_SHARED_LIBRARIES := libLLVM 32 LOCAL_LDLIBS := -limagehlp -lpsapi 33else 34 LOCAL_SHARED_LIBRARIES := libLLVM libc++ 35 LOCAL_LDLIBS := -ldl -lpthread 36endif 37 38include $(CLANG_HOST_BUILD_MK) 39include $(BUILD_HOST_SHARED_LIBRARY) 40 41endif # don't build in unbundled branches 42endif # don't build unless forced to 43