Changeset 105160 in vbox
- Timestamp:
- Jul 5, 2024 12:02:04 PM (5 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r105147 r105160 2200 2200 2201 2201 USES += dtrace 2202 USES.win += vboximportchecker 2202 USES.win += vboximportchecker vboxsetpeversion 2203 2203 2204 2204 … … 8648 8648 # in the binaries are set to 5.2. The Visual C++ 2019 linker defaults to 6.0. 8649 8649 # HACK ALERT! Double expansion of $$(NLTAB). 8650 TEMPLATE_VBoxGuestR3ExeBase_USES.win = $(TEMPLATE_VBoxR3StaticBase_USES.win) vboximportchecker 8650 TEMPLATE_VBoxGuestR3ExeBase_USES.win = $(TEMPLATE_VBoxR3StaticBase_USES.win) vboximportchecker vboxsetpeversion 8651 8651 TEMPLATE_VBoxGuestR3ExeBase_VBOX_IMPORT_CHECKER.win.x86 = nt31 8652 8652 TEMPLATE_VBoxGuestR3ExeBase_VBOX_IMPORT_CHECKER.win.amd64 = xp64 8653 TEMPLATE_VBoxGuestR3ExeBase_POST_CMDS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB)$(TEMPLATE_$(TEMPLATE_VBoxGuestR3ExeBase_EXTENDS)_POST_CMDS)) 8654 TEMPLATE_VBoxGuestR3ExeBase_LNK_DEPS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) 8655 TEMPLATE_VBoxGuestR3ExeBase_POST_CMDS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB)$(TEMPLATE_$(TEMPLATE_VBoxGuestR3ExeBase_EXTENDS)_POST_CMDS)) 8656 TEMPLATE_VBoxGuestR3ExeBase_LNK_DEPS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) 8653 TEMPLATE_VBoxGuestR3ExeBase_VBOX_SET_PE_VERSION.win.x86 = default 8654 TEMPLATE_VBoxGuestR3ExeBase_VBOX_SET_PE_VERSION.win.amd64 = default 8657 8655 ifdef VBOX_WITH_NOCRT_STATIC 8658 8656 TEMPLATE_VBoxGuestR3ExeBase_LDFLAGS.win.x86 = $(TEMPLATE_$(TEMPLATE_VBoxGuestR3ExeBase_EXTENDS)_LDFLAGS.win.x86) -NoOptIData … … 8808 8806 TEMPLATE_VBoxGuestR3DllMinW2K_EXTENDS = VBoxGuestR3Dll 8809 8807 TEMPLATE_VBoxGuestR3DllMinW2K_VBOX_IMPORT_CHECKER.win.x86 = w2k 8808 TEMPLATE_VBoxGuestR3DllMinW2K_VBOX_SET_PE_VERSION.win.x86 = w2k 8810 8809 ifeq ($(KBUILD_TARGET),win) 8811 8810 ifdef VBOX_WITH_NOCRT_STATIC … … 8814 8813 TEMPLATE_VBoxGuestR3DllMinW2K_LDFLAGS.win.x86 = $(filter-out -NoOptIData -Section:.bss$(COMMA)RW!K,$(TEMPLATE_VBoxGuestR3Dll_LDFLAGS.win.x86)) 8815 8814 endif 8816 TEMPLATE_VBoxGuestR3DllMinW2K_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --w2k,$(TEMPLATE_VBoxGuestR3Dll_POST_CMDS.win.x86))8817 8815 endif 8818 8816 … … 8824 8822 TEMPLATE_VBoxGuestR3DllMinVista_VBOX_IMPORT_CHECKER.win.x86 = vista 8825 8823 TEMPLATE_VBoxGuestR3DllMinVista_VBOX_IMPORT_CHECKER.win.amd64 = vista 8824 TEMPLATE_VBoxGuestR3DllMinVista_VBOX_SET_PE_VERSION.win.x86 = vista 8825 TEMPLATE_VBoxGuestR3DllMinVista_VBOX_SET_PE_VERSION.win.amd64 = vista 8826 8826 ifeq ($(KBUILD_TARGET),win) 8827 8827 ifdef VBOX_WITH_NOCRT_STATIC … … 8830 8830 TEMPLATE_VBoxGuestR3DllMinVista_LDFLAGS.win.x86 = $(filter-out -NoOptIData -Section:.bss$(COMMA)RW!K,$(TEMPLATE_VBoxGuestR3Dll_LDFLAGS.win.x86)) 8831 8831 endif 8832 TEMPLATE_VBoxGuestR3DllMinVista_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --vista,$(TEMPLATE_VBoxGuestR3Dll_POST_CMDS.win.x86))8833 TEMPLATE_VBoxGuestR3DllMinVista_POST_CMDS.win.amd64 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --vista,$(TEMPLATE_VBoxGuestR3Dll_POST_CMDS.win.amd64))8834 8832 endif 8835 8833 … … 8877 8875 TEMPLATE_NewerVccVBoxGuestR3DllMinVista = NewerVccVBoxGuestR3Dll with the newer Visual C++ version (2013 or later). 8878 8876 TEMPLATE_NewerVccVBoxGuestR3DllMinVista_EXTENDS := NewerVccVBoxGuestR3Dll 8877 TEMPLATE_NewerVccVBoxGuestR3DllMinVista_VBOX_SET_PE_VERSION.win.x86 := vista 8878 TEMPLATE_NewerVccVBoxGuestR3DllMinVista_VBOX_SET_PE_VERSION.win.amd64 := vista 8879 8879 ifeq ($(KBUILD_TARGET),win) 8880 8880 ifdef VBOX_WITH_NOCRT_STATIC … … 8883 8883 TEMPLATE_NewerVccVBoxGuestR3DllMinVista_LDFLAGS.win.x86 = $(filter-out -NoOptIData -Section:.bss$(COMMA)RW!K,$(TEMPLATE_NewerVccVBoxGuestR3Dll_LDFLAGS.win.x86)) 8884 8884 endif 8885 TEMPLATE_NewerVccVBoxGuestR3DllMinVista_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --vista,$(TEMPLATE_NewerVccVBoxGuestR3Dll_POST_CMDS.win.x86))8886 TEMPLATE_NewerVccVBoxGuestR3DllMinVista_POST_CMDS.win.amd64 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --vista,$(TEMPLATE_NewerVccVBoxGuestR3Dll_POST_CMDS.win.amd64))8887 8885 endif 8888 8886 -
trunk/src/VBox/Additions/3D/Config.kmk
r104004 r105160 157 157 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_VBOX_IMPORT_CHECKER.win.x86 := vista 158 158 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_VBOX_IMPORT_CHECKER.win.amd64 := vista 159 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_VBOX_SET_PE_VERSION.win.x86 := vista 160 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_VBOX_SET_PE_VERSION.win.amd64 := vista 159 161 ifeq ($(KBUILD_TARGET),win) 160 162 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_LDFLAGS.win.x86 = $(filter-out -Section:.bss$(COMMA)RW!K,$(TEMPLATE_VBoxMesa3DGuestR3Dll_LDFLAGS.win.x86)) 161 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --vista,$(TEMPLATE_VBoxMesa3DGuestR3Dll_POST_CMDS.win.x86))162 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_POST_CMDS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) --vista $(out)$$(NLTAB)$(TEMPLATE_VBoxMesa3DGuestR3Dll_POST_CMDS.win.amd64))163 TEMPLATE_VBoxMesa3DGuestR3DllMinVista_LNK_DEPS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) $(TEMPLATE_VBoxMesa3DGuestR3Dll_LNK_DEPS.win.amd64)164 163 endif 165 164 -
trunk/src/VBox/Additions/WINNT/VBoxGINA/Makefile.kmk
r98416 r105160 42 42 $(VBOX_LIB_VBGL_R3) 43 43 VBoxGINA_VBOX_IMPORT_CHECKER.win.x86 = nt4 # GINA was introduced with nt351, but we don't have exports for that yet. 44 VBoxGINA_VBOX_SET_PE_VERSION.win.x86 = nt351 44 45 45 46 # Include testcase(s). -
trunk/src/VBox/Additions/WINNT/VBoxGINA/testcase/Makefile.kmk
r98103 r105160 1 # $Id 1 # $Id$ 2 2 ## @file 3 3 # Sub-Makefile for GINA test cases. … … 33 33 tstVBoxGINA_SOURCES = \ 34 34 tstVBoxGINA.cpp 35 tstVBoxGINA_VBOX_SET_PE_VERSION.win.x86 = nt351 35 36 36 37 include $(FILE_KBUILD_SUB_FOOTER) -
trunk/src/VBox/ValidationKit/Config.kmk
r98435 r105160 115 115 endif 116 116 TEMPLATE_VBoxValidationKitR3_LDFLAGS.win.x86 += -NoOptIData 117 TEMPLATE_VBoxValidationKitR3_POST_CMDS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB))$(TEMPLATE_VBoxValidationKitR3Base_POST_CMDS.win.x86)$$(NLTAB) 118 TEMPLATE_VBoxValidationKitR3_POST_CMDS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB))$(TEMPLATE_VBoxValidationKitR3Base_POST_CMDS.win.amd64)$$(NLTAB) 119 TEMPLATE_VBoxValidationKitR3_LNK_DEPS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) $(TEMPLATE_VBoxValidationKitR3Base_LNK_DEPS.win.x86) 120 TEMPLATE_VBoxValidationKitR3_LNK_DEPS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) $(TEMPLATE_VBoxValidationKitR3Base_LNK_DEPS.win.amd64) 121 122 #TODO: TEMPLATE_VBoxValidationKitR3_EXTENDS = VBoxGuestR3Exe 117 118 TEMPLATE_VBoxValidationKitR3_USES.win += vboxsetpeversion 119 TEMPLATE_VBoxValidationKitR3_VBOX_SET_PE_VERSION.win.x86 = nt31 120 TEMPLATE_VBoxValidationKitR3_VBOX_SET_PE_VERSION.win.amd64 = xp64 123 121 124 122 TEMPLATE_VBoxValidationKitR3_USES.win += vboximportchecker 125 123 TEMPLATE_VBoxValidationKitR3_VBOX_IMPORT_CHECKER.win.x86 = nt31 126 124 TEMPLATE_VBoxValidationKitR3_VBOX_IMPORT_CHECKER.win.amd64 = xp64 125 #TODO: TEMPLATE_VBoxValidationKitR3_EXTENDS = VBoxGuestR3Exe 127 126 128 127 -
trunk/src/bldprogs/VBoxPeSetVersion.cpp
r105153 r105160 497 497 else 498 498 { 499 if (strcmp(psz, "nt31") == 0) 499 if (strcmp(psz, "default") == 0) 500 uNtVersion = 0; 501 else if (strcmp(psz, "nt31") == 0) 500 502 uNtVersion = MK_VER(3,10); 501 503 else if (strcmp(psz, "nt350") == 0) … … 509 511 else if (strcmp(psz, "xp") == 0) 510 512 uNtVersion = MK_VER(5,1); 511 else if (strcmp(psz, "w2k3") == 0 )513 else if (strcmp(psz, "w2k3") == 0 || strcmp(psz, "xp64") == 0) 512 514 uNtVersion = MK_VER(5,2); 513 515 else if (strcmp(psz, "vista") == 0) -
trunk/tools/kBuildUnits/vboxsetpeversion.kmk
r105131 r105160 1 1 # $Id$ 2 2 ## @file 3 # VBox import checker unit.3 # VBox PE version setter unit. 4 4 # 5 5 6 6 # 7 # Copyright (C) 2017-202 3Oracle and/or its affiliates.7 # Copyright (C) 2017-2024 Oracle and/or its affiliates. 8 8 # 9 9 # This file is part of VirtualBox base platform packages, as … … 26 26 # 27 27 28 UNIT_vbox importchecker = bldRTLdrCheckImports28 UNIT_vboxsetpeversion = VBoxPeSetVersion 29 29 30 30 # Add our property. 31 PROPS_SINGLE += VBOX_ IMPORT_CHECKER32 PROPS_SINGLE_LNK += VBOX_ IMPORT_CHECKER33 PROPS_PROGRAMS_SINGLE += VBOX_ IMPORT_CHECKER34 PROPS_DLLS_SINGLE += VBOX_ IMPORT_CHECKER35 PROPS_SYSMODS_SINGLE += VBOX_ IMPORT_CHECKER31 PROPS_SINGLE += VBOX_SET_PE_VERSION 32 PROPS_SINGLE_LNK += VBOX_SET_PE_VERSION 33 PROPS_PROGRAMS_SINGLE += VBOX_SET_PE_VERSION 34 PROPS_DLLS_SINGLE += VBOX_SET_PE_VERSION 35 PROPS_SYSMODS_SINGLE += VBOX_SET_PE_VERSION 36 36 37 37 # Helper for expanding certain variables while assigning. 38 define def_unit_vbox importchecker_internal_expand_twice39 $(target)_POST_CMDS += $$( if-expr "$$(tool_do)" != "LINK_LIBRARY",$$(NLTAB)$$(VBOX_RTLDRCHECKIMPORTS) -q -p "$$(KBUILD_DEVTOOLS)/$(bld_trg).$(bld_trg_arch)/exports/$$($(target)_2_VBOX_IMPORT_CHECKER)" $$(out),)38 define def_unit_vboxsetpeversion_internal_expand_twice 39 $(target)_POST_CMDS += $$(NLTAB)$$(VBOX_PE_SET_VERSION) $$(addprefix --,$$($(target)_2_VBOX_SET_PE_VERSION)) "$$(out)" 40 40 endef 41 41 42 define def_unit_vboximportchecker_target_pre 43 # Do not apply to ASAN builds as it requires newere DLLs. 44 ifneq ($(KBUILD_TYPE),asan) 42 define def_unit_vboxsetpeversion_target_pre 45 43 46 # Set pass 2 variable (simpler) and act on it. 47 $(target)_2_VBOX_IMPORT_CHECKER := $(evalcall def_fn_prop_get_first_defined,VBOX_IMPORT_CHECKER) 48 ifdef $(target)_2_VBOX_IMPORT_CHECKER 49 $(target)_LNK_ORDERDEPS += $(VBOX_RTLDRCHECKIMPORTS) 50 $(eval $(def_unit_vboximportchecker_internal_expand_twice)) 44 # Set pass 2 variable (simpler) and act on it. 45 $(target)_2_VBOX_SET_PE_VERSION := $(evalcall def_fn_prop_get_first_defined,VBOX_SET_PE_VERSION) 46 ifdef $(target)_2_VBOX_SET_PE_VERSION 47 ifneq ($(tool_do),LINK_LIBRARY) 48 $(target)_LNK_ORDERDEPS += $(VBOX_PE_SET_VERSION) 49 $(eval $(def_unit_vboxsetpeversion_internal_expand_twice)) 51 50 endif 52 53 51 endif 54 52
Note:
See TracChangeset
for help on using the changeset viewer.