From 0f8ee6eb4b203f4b034b8979e387780bb4d031ad Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 9 Jun 2015 19:27:20 -0700 Subject: [PATCH] test/android/Android.mk: fix build w/ENABLE_SHARED=0 add a dependency on *_rtcd.h to ensure they're generated before attempting to build the test files Change-Id: Ibbbd1f6ea77912bfd297129e7c83b9a80923ea12 --- build/make/Android.mk | 4 ++++ test/android/Android.mk | 2 ++ 2 files changed, 6 insertions(+) diff --git a/build/make/Android.mk b/build/make/Android.mk index 0add523f9..e971c9d1c 100644 --- a/build/make/Android.mk +++ b/build/make/Android.mk @@ -163,6 +163,7 @@ ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes) endif # Add a dependency to force generation of the RTCD files. +define rtcd_dep_template ifeq ($(CONFIG_VP8), yes) $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vp8_rtcd.h endif @@ -175,6 +176,9 @@ $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_dsp_rtcd.h ifeq ($(TARGET_ARCH_ABI),x86) $(foreach file, $(LOCAL_SRC_FILES), $(LOCAL_PATH)/$(file)): vpx_config.asm endif +endef + +$(eval $(call rtcd_dep_template)) .PHONY: clean clean: diff --git a/test/android/Android.mk b/test/android/Android.mk index af8563455..48872a2b6 100644 --- a/test/android/Android.mk +++ b/test/android/Android.mk @@ -51,4 +51,6 @@ include $(LOCAL_PATH)/test/test.mk LOCAL_C_INCLUDES := $(BINDINGS_DIR) FILTERED_SRC := $(sort $(filter %.cc %.c, $(LIBVPX_TEST_SRCS-yes))) LOCAL_SRC_FILES := $(addprefix ./test/, $(FILTERED_SRC)) +# some test files depend on *_rtcd.h, ensure they're generated first. +$(eval $(call rtcd_dep_template)) include $(BUILD_EXECUTABLE)