Add static versions for libbacktrace and libnativebridge. Bug fixes.
Change-Id: Ic68ac15b2676e4f475330c8e7bb34e0d48783686
This commit is contained in:
parent
8c0478309e
commit
28042b5627
3 changed files with 27 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ LOCAL_MODULE := $(module)
|
|||
LOCAL_MODULE_TAGS := $(module_tag)
|
||||
LOCAL_MULTILIB := $($(module)_multilib)
|
||||
ifeq ($(LOCAL_MULTILIB),both)
|
||||
ifneq ($(build_target),$(filter $(build_target),SHARED_LIBRARY STATIC_LIBRRARY))
|
||||
ifneq ($(build_target),$(filter $(build_target),SHARED_LIBRARY STATIC_LIBRARY))
|
||||
LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
|
||||
LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -68,6 +68,14 @@ include $(LOCAL_PATH)/Android.build.mk
|
|||
build_type := host
|
||||
libbacktrace_multilib := both
|
||||
include $(LOCAL_PATH)/Android.build.mk
|
||||
libbacktrace_static_libraries := \
|
||||
libbase \
|
||||
liblog \
|
||||
libunwind \
|
||||
|
||||
build_target := STATIC_LIBRARY
|
||||
include $(LOCAL_PATH)/Android.build.mk
|
||||
libbacktrace_static_libraries :=
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# The libbacktrace_test library needed by backtrace_test.
|
||||
|
|
|
|||
|
|
@ -37,4 +37,22 @@ LOCAL_MULTILIB := both
|
|||
|
||||
include $(BUILD_HOST_SHARED_LIBRARY)
|
||||
|
||||
# Static library for host
|
||||
# ========================================================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE:= libnativebridge
|
||||
|
||||
LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES)
|
||||
LOCAL_STATIC_LIBRARIES := liblog
|
||||
LOCAL_CLANG := true
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
LOCAL_CFLAGS += -Werror -Wall
|
||||
LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected
|
||||
LOCAL_LDFLAGS := -ldl
|
||||
LOCAL_MULTILIB := both
|
||||
|
||||
include $(BUILD_HOST_STATIC_LIBRARY)
|
||||
|
||||
|
||||
include $(LOCAL_PATH)/tests/Android.mk
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue