Changeset 105160 in vbox for trunk/tools
- Timestamp:
- Jul 5, 2024 12:02:04 PM (5 months ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
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.