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,\ ...@@ -173,7 +173,6 @@ $(eval $(call gb_Library_add_asmobjects,sb,\
endif endif
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sb)) :| \ $(eval $(call gb_Library_use_restarget,sb,sb))
$(call gb_AllLangResTarget_get_target,sb)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -191,7 +191,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcontroller,\ ...@@ -191,7 +191,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcontroller,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,chartcontroller)) :| \ $(eval $(call gb_Library_use_restarget,chartcontroller,chartcontroller))
$(call gb_AllLangResTarget_get_target,chartcontroller)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -152,7 +152,6 @@ $(eval $(call gb_Library_use_externals,editeng,\ ...@@ -152,7 +152,6 @@ $(eval $(call gb_Library_use_externals,editeng,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,editeng)) :| \ $(eval $(call gb_Library_use_restarget,editeng,editeng))
$(call gb_AllLangResTarget_get_target,editeng)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -48,7 +48,6 @@ $(eval $(call gb_Library_add_exception_objects,for,\ ...@@ -48,7 +48,6 @@ $(eval $(call gb_Library_add_exception_objects,for,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,for)) :| \ $(eval $(call gb_Library_use_restarget,for,for))
$(call gb_AllLangResTarget_get_target,for)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -81,7 +81,6 @@ $(eval $(call gb_Library_add_exception_objects,fwe,\ ...@@ -81,7 +81,6 @@ $(eval $(call gb_Library_add_exception_objects,fwe,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,fwe)) :| \ $(eval $(call gb_Library_use_restarget,fwe,fwe))
$(call gb_AllLangResTarget_get_target,fwe)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -633,7 +633,6 @@ $(eval $(call gb_SdiTarget_set_include,sc/sdi/scslots,\ ...@@ -633,7 +633,6 @@ $(eval $(call gb_SdiTarget_set_include,sc/sdi/scslots,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sc)) :| \ $(eval $(call gb_Library_use_restarget,sc,sc))
$(call gb_AllLangResTarget_get_target,sc)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -47,7 +47,6 @@ $(eval $(call gb_Library_add_exception_objects,analysis,\ ...@@ -47,7 +47,6 @@ $(eval $(call gb_Library_add_exception_objects,analysis,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,analysis)) :| \ $(eval $(call gb_Library_use_restarget,analysis,analysis))
$(call gb_AllLangResTarget_get_target,analysis)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -43,7 +43,6 @@ $(eval $(call gb_Library_add_exception_objects,date,\ ...@@ -43,7 +43,6 @@ $(eval $(call gb_Library_add_exception_objects,date,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,date)) :| \ $(eval $(call gb_Library_use_restarget,date,date))
$(call gb_AllLangResTarget_get_target,date)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -44,7 +44,6 @@ $(eval $(call gb_Library_add_exception_objects,pricing,\ ...@@ -44,7 +44,6 @@ $(eval $(call gb_Library_add_exception_objects,pricing,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,pricing)) :| \ $(eval $(call gb_Library_use_restarget,pricing,pricing))
$(call gb_AllLangResTarget_get_target,pricing)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -346,7 +346,6 @@ $(eval $(call gb_Library_use_system_win32_libs,sfx,\ ...@@ -346,7 +346,6 @@ $(eval $(call gb_Library_use_system_win32_libs,sfx,\
endif endif
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sfx)) :| \ $(eval $(call gb_Library_use_restarget,sfx,sfx))
$(call gb_AllLangResTarget_get_target,sfx)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -252,6 +252,7 @@ $(eval $(foreach method,\ ...@@ -252,6 +252,7 @@ $(eval $(foreach method,\
use_package \ use_package \
use_packages \ use_packages \
use_unpacked \ use_unpacked \
use_restarget \
add_package_headers \ add_package_headers \
add_sdi_headers \ add_sdi_headers \
set_precompiled_header \ set_precompiled_header \
......
...@@ -1317,6 +1317,16 @@ $(call gb_LinkTarget_get_headers_target,$(1)) :| $(call gb_ExternalProject_get_t ...@@ -1317,6 +1317,16 @@ $(call gb_LinkTarget_get_headers_target,$(1)) :| $(call gb_ExternalProject_get_t
endef 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. # this forwards to functions that must be defined in RepositoryExternal.mk.
# $(eval $(call gb_LinkTarget_use_external,library,external)) # $(eval $(call gb_LinkTarget_use_external,library,external))
define gb_LinkTarget_use_external define gb_LinkTarget_use_external
......
...@@ -99,7 +99,6 @@ $(eval $(call gb_SdiTarget_set_include,starmath/sdi/smslots,\ ...@@ -99,7 +99,6 @@ $(eval $(call gb_SdiTarget_set_include,starmath/sdi/smslots,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sm)) :| \ $(eval $(call gb_Library_use_restarget,sm,sm))
$(call gb_AllLangResTarget_get_target,sm)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -252,7 +252,6 @@ $(eval $(call gb_Library_use_system_win32_libs,svt,\ ...@@ -252,7 +252,6 @@ $(eval $(call gb_Library_use_system_win32_libs,svt,\
endif endif
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,svt)) :| \ $(eval $(call gb_Library_use_restarget,svt,svt))
$(call gb_AllLangResTarget_get_target,svt)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -449,7 +449,6 @@ $(eval $(call gb_SdiTarget_set_include,svx/sdi/svxslots,\ ...@@ -449,7 +449,6 @@ $(eval $(call gb_SdiTarget_set_include,svx/sdi/svxslots,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,svxcore)) :| \ $(eval $(call gb_Library_use_restarget,svxcore,svx))
$(call gb_AllLangResTarget_get_target,svx)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -756,7 +756,6 @@ $(eval $(call gb_SdiTarget_set_include,sw/sdi/swslots,\ ...@@ -756,7 +756,6 @@ $(eval $(call gb_SdiTarget_set_include,sw/sdi/swslots,\
)) ))
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,sw)) :| \ $(eval $(call gb_Library_use_restarget,sw,sw))
$(call gb_AllLangResTarget_get_target,sw)
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -673,7 +673,6 @@ endif ...@@ -673,7 +673,6 @@ endif
endif endif
# Runtime dependency for unit-tests # Runtime dependency for unit-tests
$(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,vcl)) :| \ $(eval $(call gb_Library_use_restarget,vcl,vcl))
$(call gb_AllLangResTarget_get_target,vcl)
# vim: set noet sw=4 ts=4: # 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