gbuild: add gb_CppunitTest_use_executable

and use it in sdext/CppunitTest_pdfimport.mk, which could fail
previously in a parallel build.

Change-Id: I3f251c945f5841c277a71a19fd411ecd77dec3b5
This commit is contained in:
Michael Stahl
2012-06-26 12:01:09 +02:00
parent e818f8fa1f
commit 0d4cd11c74
2 changed files with 6 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sdext_pdfimport,\
sdext/source/pdfimport/test/tests \
))
$(eval $(call gb_CppunitTest_use_executable,sdext_pdfimport,xpdfimport))
$(eval $(call gb_CppunitTest_use_ure,sdext_pdfimport))
$(eval $(call gb_CppunitTest_use_components,sdext_pdfimport,\

View File

@@ -307,6 +307,10 @@ $(foreach extra,$(2),$(call gb_CppunitTest__use_configuration,$(1),xcsxcu,$(extr
endef
define gb_CppunitTest_use_executable
$(call gb_CppunitTest_get_target,$(1)) : $(call gb_Executable_get_target,$(2))
endef
define gb_CppunitTest__forward_to_Linktarget
gb_CppunitTest_$(1) = $$(call gb_LinkTarget_$(1),$$(call gb_CppunitTest__get_linktargetname,$$(1)),$$(2),$$(3),CppunitTest_$$(1))