Kaydet (Commit) 8230c26e authored tarafından Michael Stahl's avatar Michael Stahl

gbuild: add gb_Library_use_restarget

Change-Id: Ic0a2fd3c1adeb55ec27f6a2eb4709be598120fba
üst 5fc689c9
......@@ -173,7 +173,6 @@ $(eval $(call gb_Library_add_asmobjects,sb,\
endif
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sb)) :| \
$(call gb_AllLangResTarget_get_target,sb)
$(eval $(call gb_Library_use_restarget,sb,sb))
# vim: set noet sw=4 ts=4:
......@@ -191,7 +191,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcontroller,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,chartcontroller)) :| \
$(call gb_AllLangResTarget_get_target,chartcontroller)
$(eval $(call gb_Library_use_restarget,chartcontroller,chartcontroller))
# vim: set noet sw=4 ts=4:
......@@ -152,7 +152,6 @@ $(eval $(call gb_Library_use_externals,editeng,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,editeng)) :| \
$(call gb_AllLangResTarget_get_target,editeng)
$(eval $(call gb_Library_use_restarget,editeng,editeng))
# vim: set noet sw=4 ts=4:
......@@ -48,7 +48,6 @@ $(eval $(call gb_Library_add_exception_objects,for,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,for)) :| \
$(call gb_AllLangResTarget_get_target,for)
$(eval $(call gb_Library_use_restarget,for,for))
# vim: set noet sw=4 ts=4:
......@@ -81,7 +81,6 @@ $(eval $(call gb_Library_add_exception_objects,fwe,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,fwe)) :| \
$(call gb_AllLangResTarget_get_target,fwe)
$(eval $(call gb_Library_use_restarget,fwe,fwe))
# vim: set noet sw=4 ts=4:
......@@ -633,7 +633,6 @@ $(eval $(call gb_SdiTarget_set_include,sc/sdi/scslots,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sc)) :| \
$(call gb_AllLangResTarget_get_target,sc)
$(eval $(call gb_Library_use_restarget,sc,sc))
# vim: set noet sw=4 ts=4:
......@@ -47,7 +47,6 @@ $(eval $(call gb_Library_add_exception_objects,analysis,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,analysis)) :| \
$(call gb_AllLangResTarget_get_target,analysis)
$(eval $(call gb_Library_use_restarget,analysis,analysis))
# vim: set noet sw=4 ts=4:
......@@ -43,7 +43,6 @@ $(eval $(call gb_Library_add_exception_objects,date,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,date)) :| \
$(call gb_AllLangResTarget_get_target,date)
$(eval $(call gb_Library_use_restarget,date,date))
# vim: set noet sw=4 ts=4:
......@@ -44,7 +44,6 @@ $(eval $(call gb_Library_add_exception_objects,pricing,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,pricing)) :| \
$(call gb_AllLangResTarget_get_target,pricing)
$(eval $(call gb_Library_use_restarget,pricing,pricing))
# vim: set noet sw=4 ts=4:
......@@ -346,7 +346,6 @@ $(eval $(call gb_Library_use_system_win32_libs,sfx,\
endif
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sfx)) :| \
$(call gb_AllLangResTarget_get_target,sfx)
$(eval $(call gb_Library_use_restarget,sfx,sfx))
# vim: set noet sw=4 ts=4:
......@@ -252,6 +252,7 @@ $(eval $(foreach method,\
use_package \
use_packages \
use_unpacked \
use_restarget \
add_package_headers \
add_sdi_headers \
set_precompiled_header \
......
......@@ -1317,6 +1317,16 @@ $(call gb_LinkTarget_get_headers_target,$(1)) :| $(call gb_ExternalProject_get_t
endef
# Delay linking until a res target has been built. This is needed so that
# unit tests using libraries do not fail if the res target is not yet built.
#
# gb_LinkTarget_use_restarget linktarget restarget(s)
define gb_LinkTarget_use_restarget
$(call gb_LinkTarget_get_target,$(1)) :| \
$(foreach res,$(2),$(call gb_AllLangResTarget_get_target,$(res)))
endef
# this forwards to functions that must be defined in RepositoryExternal.mk.
# $(eval $(call gb_LinkTarget_use_external,library,external))
define gb_LinkTarget_use_external
......
......@@ -99,7 +99,6 @@ $(eval $(call gb_SdiTarget_set_include,starmath/sdi/smslots,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sm)) :| \
$(call gb_AllLangResTarget_get_target,sm)
$(eval $(call gb_Library_use_restarget,sm,sm))
# vim: set noet sw=4 ts=4:
......@@ -252,7 +252,6 @@ $(eval $(call gb_Library_use_system_win32_libs,svt,\
endif
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,svt)) :| \
$(call gb_AllLangResTarget_get_target,svt)
$(eval $(call gb_Library_use_restarget,svt,svt))
# vim: set noet sw=4 ts=4:
......@@ -449,7 +449,6 @@ $(eval $(call gb_SdiTarget_set_include,svx/sdi/svxslots,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,svxcore)) :| \
$(call gb_AllLangResTarget_get_target,svx)
$(eval $(call gb_Library_use_restarget,svxcore,svx))
# vim: set noet sw=4 ts=4:
......@@ -756,7 +756,6 @@ $(eval $(call gb_SdiTarget_set_include,sw/sdi/swslots,\
))
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sw)) :| \
$(call gb_AllLangResTarget_get_target,sw)
$(eval $(call gb_Library_use_restarget,sw,sw))
# vim: set noet sw=4 ts=4:
......@@ -673,7 +673,6 @@ endif
endif
# Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,vcl)) :| \
$(call gb_AllLangResTarget_get_target,vcl)
$(eval $(call gb_Library_use_restarget,vcl,vcl))
# vim: set noet sw=4 ts=4:
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