From fbb8db2e2a885073812ca3975f68a90f9a837391 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 12 Sep 2014 09:42:15 -0700 Subject: [PATCH] Remove makefile cruft. Don't manually include stlport, and don't use private bionic headers. Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590 --- libcutils/tests/Android.mk | 2 ++ liblog/tests/Android.mk | 5 +---- libutils/tests/Android.mk | 6 ------ 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/libcutils/tests/Android.mk b/libcutils/tests/Android.mk index 8e6531074..2b3a9ee51 100644 --- a/libcutils/tests/Android.mk +++ b/libcutils/tests/Android.mk @@ -19,6 +19,7 @@ test_src_files := \ PropertiesTest.cpp \ include $(CLEAR_VARS) +LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_MODULE := libcutils_test LOCAL_SRC_FILES := $(test_src_files) LOCAL_SHARED_LIBRARIES := \ @@ -32,6 +33,7 @@ LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 include $(BUILD_NATIVE_TEST) include $(CLEAR_VARS) +LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_MODULE := libcutils_test_static LOCAL_FORCE_STATIC_EXECUTABLE := true LOCAL_SRC_FILES := $(test_src_files) diff --git a/liblog/tests/Android.mk b/liblog/tests/Android.mk index 6c7213824..772880840 100644 --- a/liblog/tests/Android.mk +++ b/liblog/tests/Android.mk @@ -43,11 +43,8 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_CFLAGS += $(benchmark_c_flags) LOCAL_SHARED_LIBRARIES += liblog libm LOCAL_SRC_FILES := $(benchmark_src_files) -ifndef LOCAL_SDK_VERSION -LOCAL_C_INCLUDES += bionic bionic/libstdc++/include external/stlport/stlport -LOCAL_SHARED_LIBRARIES += libstlport -endif LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) +include external/stlport/libstlport.mk include $(BUILD_EXECUTABLE) # ----------------------------------------------------------------------------- diff --git a/libutils/tests/Android.mk b/libutils/tests/Android.mk index caedaffc0..ab03d87ec 100644 --- a/libutils/tests/Android.mk +++ b/libutils/tests/Android.mk @@ -1,6 +1,5 @@ # Build the unit tests. LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) # Build the unit tests. test_src_files := \ @@ -18,11 +17,6 @@ shared_libraries := \ liblog \ libcutils \ libutils \ - libstlport - -static_libraries := \ - libgtest \ - libgtest_main $(foreach file,$(test_src_files), \ $(eval include $(CLEAR_VARS)) \