summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-04-08 10:41:13 +0200
committerDavid Tardon <dtardon@redhat.com>2012-04-08 14:53:07 +0200
commite4406fdc4b92427427b156c75ee048b5adf28410 (patch)
tree7e95aaddf9e41acd614ef0e86fcd39ac0c1d8dd1 /solenv
parentf2f09efd3cac622b3f4abf42695ccab0eed37247 (diff)
more cleanup
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/CppunitTest.mk11
1 files changed, 4 insertions, 7 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 25d40263d710..9135d336edae 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -60,13 +60,11 @@ gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filen
# TODO: move this to platform under suitable name
gb_CppunitTarget__make_url = file://$(if $(filter WNT,$(OS_FOR_BUILD)),/)$(strip $(1))
-gb_CppunitTest__get_uno_type_target = $(OUTDIR)/bin/$(1).rdb
define gb_CppunitTest__make_args
$(ARGS) \
--headless \
$(if $(strip $(UNO_TYPES)),\
- "-env:UNO_TYPES=$(foreach rdb,$(UNO_TYPES),\
- $(call gb_CppunitTarget__make_url,$(call gb_CppunitTest__get_uno_type_target,$(rdb))))") \
+ "-env:UNO_TYPES=$(foreach item,$(UNO_TYPES),$(call gb_CppunitTarget__make_url,$(item)))") \
$(if $(strip $(UNO_SERVICES)),\
"-env:UNO_SERVICES=$(foreach item,$(UNO_SERVICES),$(call gb_CppunitTarget__make_url,$(item)))") \
$(if $(URE),\
@@ -92,7 +90,7 @@ $(call gb_CppunitTest_get_target,%) :| $(gb_CppunitTest_CPPTESTTARGET)
STAR_RESOURCEPATH=$(dir $(call gb_ResTarget_get_outdir_target,example)) \
$(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) $(gb_CppunitTest_CPPTESTTARGET) \
$(call gb_LinkTarget_get_target,CppunitTest/$(call gb_CppunitTest_get_libfilename,$*)) \
- $(call gb_CppunitTest__make_args,$(ARGS),$(UNO_SERVICES),$(UNO_TYPES)) \
+ $(call gb_CppunitTest__make_args) \
$(if $(gb_CppunitTest__interactive),,> $@.log 2>&1 || (cat $@.log && $(UNIT_FAILED_MSG) && false))))
define gb_CppunitTest_CppunitTest
@@ -138,7 +136,6 @@ $(call gb_CppunitTest_get_target,$(1)) : ARGS := $(2)
endef
-# TODO: Once we build the services.rdb with gbuild we should use its *_get_target method
define gb_CppunitTest_uses_ure
$(call gb_CppunitTest_use_type_rdb,$(1),udkapi)
$(call gb_CppunitTest_use_service_rdb,$(1),ure/services)
@@ -152,8 +149,8 @@ $$(call gb_Output_error,\
endef
define gb_CppunitTest_use_type_rdb
-$(call gb_CppunitTest_get_target,$(1)) : $(call gb_CppunitTest__get_uno_type_target,$(2))
-$(call gb_CppunitTest_get_target,$(1)) : UNO_TYPES += $(2)
+$(call gb_CppunitTest_get_target,$(1)) : $(call gb_UnoApi_get_target,$(2))
+$(call gb_CppunitTest_get_target,$(1)) : UNO_TYPES += $(call gb_UnoApi_get_target,$(2))
endef