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