build/make: auto generate Test config file for Google Benchmark Test
BUG: 74844131 Test: cd bionic/; mm (auto generating the test config in out/) atest bionic-benchmarks (full testing in atest) Change-Id: I0497eed876640893d0b82d4cde384d3608cf4875
This commit is contained in:
@@ -24,8 +24,13 @@
|
||||
|
||||
autogen_test_config_file := $(dir $(LOCAL_BUILT_MODULE))$(LOCAL_MODULE).config
|
||||
ifeq (true,$(is_native))
|
||||
ifeq ($(LOCAL_NATIVE_BENCHMARK),true)
|
||||
autogen_test_config_template := $(NATIVE_BENCHMARK_TEST_CONFIG_TEMPLATE)
|
||||
else
|
||||
autogen_test_config_template := $(NATIVE_TEST_CONFIG_TEMPLATE)
|
||||
endif
|
||||
# Auto generating test config file for native test
|
||||
$(autogen_test_config_file) : $(NATIVE_TEST_CONFIG_TEMPLATE)
|
||||
$(autogen_test_config_file) : $(autogen_test_config_template)
|
||||
@echo "Auto generating test config $(notdir $@)"
|
||||
$(hide) sed 's&{MODULE}&$(PRIVATE_MODULE)&g' $^ > $@
|
||||
my_auto_generate_config := true
|
||||
|
Reference in New Issue
Block a user