setup_native: Add vcruntime and libucrt on MSVC 14.0
Change-Id: If55979b55b4bc8dee785f0940461a01995060682 Reviewed-on: https://gerrit.libreoffice.org/17362 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
This commit is contained in:
committed by
Michael Stahl
parent
fd27553f38
commit
9a8a4442fd
@@ -29,6 +29,8 @@ $(eval $(call gb_Library_add_exception_objects,instooofiltmsi,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,instooofiltmsi,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
kernel32 \
|
||||
))
|
||||
|
||||
|
@@ -33,6 +33,8 @@ $(eval $(call gb_Library_use_static_libraries,qslnkmsi,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,qslnkmsi,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
msi \
|
||||
kernel32 \
|
||||
user32 \
|
||||
|
@@ -31,6 +31,8 @@ $(eval $(call gb_Library_add_exception_objects,reg4allmsdoc,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,reg4allmsdoc,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
msi \
|
||||
kernel32 \
|
||||
user32 \
|
||||
|
@@ -29,6 +29,8 @@ $(eval $(call gb_Library_add_exception_objects,regactivex,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,regactivex,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
kernel32 \
|
||||
msi \
|
||||
))
|
||||
|
@@ -33,6 +33,8 @@ $(eval $(call gb_Library_use_static_libraries,sdqsmsi,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,sdqsmsi,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
msi \
|
||||
kernel32 \
|
||||
user32 \
|
||||
|
@@ -34,6 +34,8 @@ $(eval $(call gb_Library_add_exception_objects,sellangmsi,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,sellangmsi,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
msi \
|
||||
kernel32 \
|
||||
user32 \
|
||||
|
@@ -41,6 +41,8 @@ $(eval $(call gb_Library_use_static_libraries,shlxtmsi,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,shlxtmsi,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
msi \
|
||||
kernel32 \
|
||||
advapi32 \
|
||||
|
@@ -33,6 +33,8 @@ $(eval $(call gb_Library_use_static_libraries,sn_tools,\
|
||||
$(eval $(call gb_Library_use_system_win32_libs,sn_tools,\
|
||||
libcmt \
|
||||
libcpmt \
|
||||
$(if $(filter-out 120,$(VCVER)),libucrt) \
|
||||
$(if $(filter-out 120,$(VCVER)),libvcruntime) \
|
||||
kernel32 \
|
||||
msi \
|
||||
advapi32 \
|
||||
|
@@ -195,7 +195,7 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
endef
|
||||
|
||||
define gb_MSVCRT_subst
|
||||
$(if $(MSVC_USE_DEBUG_RUNTIME),$(subst msvcrt,msvcrtd,$(subst msvcprt,msvcprtd,$(subst libcmt,libcmtd,$(subst libcpmt,libcpmtd,$(subst msvcmrt,msvcmrtd,$(1)))))),$(1))
|
||||
$(if $(MSVC_USE_DEBUG_RUNTIME),$(subst msvcrt,msvcrtd,$(subst msvcprt,msvcprtd,$(subst libcmt,libcmtd,$(subst libvcruntime,libvcruntimed,$(subst libucrt,libucrtd,$(subst libcpmt,libcpmtd,$(subst msvcmrt,msvcmrtd,$(1)))))))),$(1))
|
||||
endef
|
||||
|
||||
define gb_LinkTarget_use_system_win32_libs
|
||||
@@ -204,7 +204,7 @@ $(if $(call gb_LinkTarget__is_merged,$(1)),\
|
||||
$(call gb_LinkTarget_add_libs,$(call gb_Library_get_linktarget,merged),$(foreach lib,$(2),$(call gb_MSVCRT_subst,$(lib)).lib)))
|
||||
endef
|
||||
|
||||
# Flags common for PE executables (EXEs and DLLs)
|
||||
# Flags common for PE executables (EXEs and DLLs)
|
||||
gb_Windows_PE_TARGETTYPEFLAGS := \
|
||||
-release \
|
||||
-opt:noref \
|
||||
|
Reference in New Issue
Block a user