Kaydet (Commit) 2a87b3b5 authored tarafından David Tardon's avatar David Tardon

gbuild: allow a unit test to depend on a jar file

Change-Id: I68edf70e41023d3056859d49005c684b7c4e24d6
üst 01d8524a
......@@ -71,6 +71,10 @@ $(eval $(call gb_CppunitTest_use_components,dbaccess_hsqldb_test,\
xmloff/util/xo \
))
$(eval $(call gb_CppunitTest_use_jars,dbaccess_hsqldb_test,\
sdbc_hsqldb \
))
$(eval $(call gb_CppunitTest_use_configuration,dbaccess_hsqldb_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,dbaccess_hsqldb_test))
......
......@@ -261,6 +261,26 @@ $(call gb_CppunitTest_get_target,$(1)) : $(call gb_Executable_get_target,$(2))
endef
define gb_CppunitTest__use_java_ure
$(call gb_CppunitTest_get_target,$(1)) : \
$(foreach jar,java_uno juh jurt unoil unoloader,$(call gb_Jar_get_target,$(jar))) \
$(call gb_Library_get_target,affine_uno_uno) \
$(call gb_Package_get_target,jvmfwk_javavendors) \
$(call gb_Package_get_target,jvmfwk_jreproperties)
endef
define gb_CppunitTest_use_jar
$(call gb_CppunitTest__use_java_ure,$(1))
$(call gb_CppunitTest_get_target,$(1)) : $(call gb_Jar_get_target,$(2))
endef
define gb_CppunitTest_use_jars
$(foreach jar,$(2),$(call gb_CppunitTest_use_jar,$(1),$(jar)))
endef
define gb_CppunitTest__forward_to_Linktarget
gb_CppunitTest_$(1) = $$(call gb_LinkTarget_$(1),$$(call gb_CppunitTest_get_linktarget,$$(1)),$$(2),$$(3),CppunitTest_$$(1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment