diff options
author | David Tardon <dtardon@redhat.com> | 2012-04-08 11:15:40 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-04-08 14:53:07 +0200 |
commit | fe209e78db5df329f38363a23109dcec67f4abcf (patch) | |
tree | 97ff8be18beff957f92e9d8ed2ac63f0de3ee22e /solenv | |
parent | e4406fdc4b92427427b156c75ee048b5adf28410 (diff) |
let use_api handle the use of type rdbs at runtime
Or is there any use case where we would need to use UNO API headers, but
not require the appropriate type database at runtime?
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/CppunitTest.mk | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk index 9135d336edae..4eda559b7038 100644 --- a/solenv/gbuild/CppunitTest.mk +++ b/solenv/gbuild/CppunitTest.mk @@ -137,7 +137,6 @@ $(call gb_CppunitTest_get_target,$(1)) : ARGS := $(2) endef define gb_CppunitTest_uses_ure -$(call gb_CppunitTest_use_type_rdb,$(1),udkapi) $(call gb_CppunitTest_use_service_rdb,$(1),ure/services) $(call gb_CppunitTest_get_target,$(1)) : URE := $(true) @@ -145,10 +144,15 @@ endef define gb_CppunitTest_add_type_rdb $$(call gb_Output_error,\ - gb_CppunitTest_add_type_rdb: use gb_CppunitTest_use_type_rdb instead.) + gb_CppunitTest_add_type_rdb: use gb_CppunitTest_use_api instead.) endef define gb_CppunitTest_use_type_rdb +$$(call gb_Output_error,\ + gb_CppunitTest_use_type_rdb: use gb_CppunitTest_use_api instead.) +endef + +define gb_CppunitTest__use_api $(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)) @@ -156,11 +160,17 @@ endef define gb_CppunitTest_add_type_rdbs $$(call gb_Output_error,\ - gb_CppunitTest_add_type_rdbs: use gb_CppunitTest_use_type_rdbs instead.) + gb_CppunitTest_add_type_rdbs: use gb_CppunitTest_use_api instead.) endef define gb_CppunitTest_use_type_rdbs -$(foreach rdb,$(2),$(call gb_CppunitTest_use_type_rdb,$(1),$(rdb))) +$$(call gb_Output_error,\ + gb_CppunitTest_use_type_rdbs: use gb_CppunitTest_use_api instead.) +endef + +define gb_CppunitTest_use_api +$(call gb_LinkTarget_use_api,$(call gb_CppunitTest__get_linktargetname,$(1)),$(2)) +$(foreach rdb,$(2),$(call gb_CppunitTest__use_api,$(1),$(rdb))) endef @@ -254,7 +264,6 @@ endef $(eval $(foreach method,\ add_api \ - use_api \ add_cobject \ add_cobjects \ add_cxxobject \ |