Home | History | Annotate | Download | only in clang
      1 # Don't build the library in unbundled branches.
      2 ifeq (,$(TARGET_BUILD_APPS))
      3 
      4 LOCAL_PATH:= $(call my-dir)
      5 
      6 LOCAL_IS_HOST_MODULE := true
      7 
      8 LOCAL_MODULE:= libclang
      9 
     10 LOCAL_MODULE_TAGS := optional
     11 
     12 LOCAL_WHOLE_STATIC_LIBRARIES := \
     13 	libclangDriver \
     14 	libclangParse \
     15 	libclangSema \
     16 	libclangAnalysis \
     17 	libclangCodeGen \
     18 	libclangAST \
     19 	libclangEdit \
     20 	libclangLex \
     21 	libclangFrontend \
     22 	libclangBasic \
     23 	libclangSerialization
     24 
     25 LOCAL_SHARED_LIBRARIES := libLLVM
     26 
     27 ifeq ($(HOST_OS),windows)
     28   LOCAL_LDLIBS := -limagehlp -lpsapi
     29 else
     30   LOCAL_LDLIBS := -ldl -lpthread
     31 endif
     32 
     33 include $(CLANG_HOST_BUILD_MK)
     34 include $(BUILD_HOST_SHARED_LIBRARY)
     35 
     36 endif # don't build in unbundled branches