1# Don't build the library unless forced to. 2ifeq (true,$(ANDROID_BUILD_LLDB)) 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:= liblldb 11 12LOCAL_MODULE_TAGS := optional 13 14LOCAL_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 57LOCAL_SHARED_LIBRARIES := \ 58 libLLVM \ 59 libclang 60 61ifeq ($(HOST_OS),windows) 62 LOCAL_LDLIBS := -limagehlp -lpsapi 63else 64 LOCAL_LDLIBS := \ 65 -ldl \ 66 -lm \ 67 -lpthread \ 68 -lrt \ 69 -lutil \ 70 -lz 71endif 72 73PYTHON_BASE_PATH := prebuilts/python/linux-x86/2.7.5 74LOCAL_LDLIBS += $(PYTHON_BASE_PATH)/lib/libpython2.7.a 75 76include $(LLDB_BUILD_MK) 77include $(BUILD_HOST_SHARED_LIBRARY) 78 79endif # don't build in unbundled branches 80endif # don't build unless forced to 81