1 # Don't build the library unless forced to. 2 ifeq (true,$(ANDROID_BUILD_LLDB)) 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:= liblldb 11 12 LOCAL_MODULE_TAGS := optional 13 14 LOCAL_WHOLE_STATIC_LIBRARIES := \ 15 liblldbInitAndLog \ 16 liblldbAPI \ 17 liblldbBreakpoint \ 18 liblldbCommands \ 19 liblldbCore \ 20 liblldbDataFormatters \ 21 liblldbExpression \ 22 liblldbHostCommon \ 23 liblldbHostLinux \ 24 liblldbInterpreter \ 25 liblldbPluginABIMacOSX_arm \ 26 liblldbPluginABIMacOSX_i386 \ 27 liblldbPluginABISysV_x86_64 \ 28 liblldbPluginDisassemblerLLVM \ 29 liblldbPluginDynamicLoaderMacOSX \ 30 liblldbPluginDynamicLoaderPOSIX \ 31 liblldbPluginDynamicLoaderStatic \ 32 liblldbPluginEmulateInstructionARM \ 33 liblldbPluginLanguageRuntimeCPlusPlusItaniumABI \ 34 liblldbPluginLanguageRuntimeObjCAppleObjCRuntime \ 35 liblldbPluginObjectContainerBSDArchive \ 36 liblldbPluginObjectFileELF \ 37 liblldbPluginObjectFilePECOFF \ 38 liblldbPluginOperatingSystemPython \ 39 liblldbPluginPlatformFreeBSD \ 40 liblldbPluginPlatformGDBServer \ 41 liblldbPluginPlatformLinux \ 42 liblldbPluginPlatformMacOSX \ 43 liblldbPluginProcessElfCore \ 44 liblldbPluginProcessGDBRemote \ 45 liblldbPluginProcessLinux \ 46 liblldbPluginProcessPOSIX \ 47 liblldbPluginSymbolFileDWARF \ 48 liblldbPluginSymbolFileSymtab \ 49 liblldbPluginSymbolVendorELF \ 50 liblldbPluginUnwindAssemblyInstEmulation \ 51 liblldbPluginUnwindAssemblyx86 \ 52 liblldbPluginUtility \ 53 liblldbSymbol \ 54 liblldbTarget \ 55 liblldbUtility 56 57 LOCAL_SHARED_LIBRARIES := \ 58 libLLVM \ 59 libclang 60 61 ifeq ($(HOST_OS),windows) 62 LOCAL_LDLIBS := -limagehlp -lpsapi 63 else 64 LOCAL_LDLIBS := \ 65 -ldl \ 66 -lm \ 67 -lpthread \ 68 -lrt \ 69 -lutil \ 70 -lz 71 endif 72 73 PYTHON_BASE_PATH := prebuilts/python/linux-x86/2.7.5 74 LOCAL_LDLIBS += $(PYTHON_BASE_PATH)/lib/libpython2.7.a 75 76 include $(LLDB_BUILD_MK) 77 include $(BUILD_HOST_SHARED_LIBRARY) 78 79 endif # don't build in unbundled branches 80 endif # don't build unless forced to 81