Remove unnecessary dynamic dependency on libbase.

This code only uses android-base/macros.h.

Bug: 118374951
Test: mmma system/core/libnativebridge && for f in out/host/linux-x86/nativetest{,64}/*/*; do $f; done
Change-Id: Ifa5a5a3c9370bd128ddd301ea352746699715929
This commit is contained in:
Martin Stjernholm 2018-10-22 01:34:56 +01:00
parent 551efd11f7
commit 53aec482aa
2 changed files with 8 additions and 2 deletions

View file

@ -10,9 +10,11 @@ cc_library {
host_supported: true,
srcs: ["native_bridge.cc"],
header_libs: [
"libbase_headers",
],
shared_libs: [
"liblog",
"libbase",
],
export_include_dirs: ["include"],

View file

@ -29,10 +29,12 @@ test_src_files := \
shared_libraries := \
liblog \
libbase \
libnativebridge \
libnativebridge-dummy
header_libraries := \
libbase_headers
libnativebridge_tests_common_cflags := \
-Wall \
-Werror \
@ -40,6 +42,7 @@ libnativebridge_tests_common_cflags := \
$(foreach file,$(test_src_files), \
$(eval include $(CLEAR_VARS)) \
$(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
$(eval LOCAL_HEADER_LIBRARIES := $(header_libraries)) \
$(eval LOCAL_SRC_FILES := $(file)) \
$(eval LOCAL_CFLAGS := $(libnativebridge_tests_common_cflags)) \
$(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
@ -49,6 +52,7 @@ $(foreach file,$(test_src_files), \
$(foreach file,$(test_src_files), \
$(eval include $(CLEAR_VARS)) \
$(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
$(eval LOCAL_HEADER_LIBRARIES := $(header_libraries)) \
$(eval LOCAL_SRC_FILES := $(file)) \
$(eval LOCAL_CFLAGS := $(libnativebridge_tests_common_cflags)) \
$(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \