VirtualBox

Changeset 55788 in vbox


Ignore:
Timestamp:
May 9, 2015 8:29:31 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100214
Message:

Config.kmk,VMM,VBoxSDL,Resources/win: Created resource templates for the standard windows resource files and applied them to the VMM and VBoxSDL (for testing).

Location:
trunk
Files:
6 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r55785 r55788  
    29642964VBOX_RESIGN_DLL_FN =
    29652965
     2966
     2967#
     2968# File version info and description macros (ignored on most OSes).
     2969#
     2970
     2971##
     2972# Macro for setting DLL/SO/DYLIB version information and description.
     2973#
     2974# The macro must be invoked using evalcall2 after the whole target has
     2975# been declared.
     2976#
     2977# @param 1     The target name.
     2978# @param 2     The description
     2979# @param 3     Optional icon file.
     2980# @param 4     Optional file name. Uses $1 + default suffix by default.
     2981define VBOX_SET_VER_INFO_DLL
     2982ifeq ($(KBUILD_TARGET),win)
     2983$(1)_SOURCES.win += $(PATH_ROOT)/src/VBox/Resources/win/TemplateDll.rc
     2984$(1)_RCFLAGS += /nologo /dIN_FILE_BASENAME="\"$(1)\"" /dIN_FILE_DESCRIPTION="\"$(2)\"" \
     2985        $(if $(3), /dIN_ICON_FILE="\"$(subst \\,/,$(strip $(3)))\"") $(if $(4), /dIN_FILE_NAME="\"$(4)\"")
     2986endif
     2987endef
     2988
     2989##
     2990# Macro for setting EXE version information and description.
     2991#
     2992# The macro must be invoked using evalcall2 after the whole target has
     2993# been declared.
     2994#
     2995# @param 1     The target name.
     2996# @param 2     The description
     2997# @param 3     Optional icon file.
     2998# @param 4     Optional file name. Uses $1 + default suffix by default.
     2999define VBOX_SET_VER_INFO_EXE
     3000ifeq ($(KBUILD_TARGET),win)
     3001$(1)_SOURCES.win += $(PATH_ROOT)/src/VBox/Resources/win/TemplateExe.rc
     3002$(1)_RCFLAGS += /nologo /dIN_FILE_BASENAME="\"$(1)\"" /dIN_FILE_DESCRIPTION="\"$(2)\"" \
     3003        $(if $(3), /dIN_ICON_FILE="\"$(subst \\,/,$(strip $(3)))\"") $(if $(4), /dIN_FILE_NAME="\"$(4)\"")
     3004endif
     3005endef
     3006
     3007##
     3008# Macro for setting driver version information and description.
     3009#
     3010# The macro must be invoked using evalcall2 after the whole target has
     3011# been declared.
     3012#
     3013# @param 1     The target name.
     3014# @param 2     The description
     3015# @param 3     Optional icon file.
     3016# @param 4     Optional file name. Uses $1 + default suffix by default.
     3017# @param 5     Optional VFT2_DRV_xxx define for windows.  Uses VFT2_UNKNOWN by default.
     3018define VBOX_SET_VER_INFO_DRV
     3019ifeq ($(KBUILD_TARGET),win)
     3020$(1)_SOURCES.win += $(PATH_ROOT)/src/VBox/Resources/win/TemplateDrv.rc
     3021$(1)_RCFLAGS += /nologo /dIN_FILE_BASENAME="\"$(1)\"" /dIN_FILE_DESCRIPTION="\"$(2)\"" \
     3022        $(if $(3), /dIN_ICON_FILE="\"$(subst \\,/,$(strip $(3)))\"") $(if $(4), /dIN_FILE_NAME="\"$(4)\"")
     3023        $(if $(5), /dIN_FILE_SUBTYPE=$(5))
     3024endif
     3025endef
     3026
     3027##
     3028# Macro for setting the version information and description for a ring-0 module.
     3029#
     3030# The macro must be invoked using evalcall2 after the whole target has
     3031# been declared.
     3032#
     3033# @param 1     The target name.
     3034# @param 2     The description
     3035# @param 3     Optional icon file.
     3036# @param 4     Optional file name. Uses $1 + default suffix by default.
     3037define VBOX_SET_VER_INFO_R0
     3038ifeq ($(KBUILD_TARGET),win)
     3039$(1)_SOURCES.win += $(PATH_ROOT)/src/VBox/Resources/win/TemplateR0.rc
     3040$(1)_RCFLAGS += /nologo /dIN_FILE_BASENAME="\"$(1)\"" /dIN_FILE_DESCRIPTION="\"$(2)\"" \
     3041        $(if $(3), /dIN_ICON_FILE="\"$(subst \\,/,$(strip $(3)))\"") $(if $(4), /dIN_FILE_NAME="\"$(4)\"")
     3042endif
     3043endef
     3044
     3045##
     3046# Macro for setting the version information and description for a raw-mode context module.
     3047#
     3048# The macro must be invoked using evalcall2 after the whole target has
     3049# been declared.
     3050#
     3051# @param 1     The target name.
     3052# @param 2     The description
     3053# @param 3     Optional icon file.
     3054# @param 4     Optional file name. Uses $1 + default suffix by default.
     3055define VBOX_SET_VER_INFO_RC
     3056ifeq ($(KBUILD_TARGET),win)
     3057$(1)_SOURCES.win += $(PATH_ROOT)/src/VBox/Resources/win/TemplateR0.rc
     3058$(1)_RCFLAGS += /nologo /dIN_FILE_BASENAME="\"$(1)\"" /dIN_FILE_DESCRIPTION="\"$(2)\"" \
     3059        $(if $(3), /dIN_ICON_FILE="\"$(subst \\,/,$(strip $(3)))\"") $(if $(4), /dIN_FILE_NAME="\"$(4)\"")
     3060endif
     3061endef
     3062
     3063
     3064
    29663065#
    29673066# Adjust kBuild defaults.
     
    32913390 ifeq ($(VBOX_LDR_FMT32),pe)
    32923391  TEMPLATE_VBoxRc_TOOL               = $(VBOX_VCC_TOOL_STEM)X86
     3392  TEMPLATE_VBoxRc_RCDEFS             = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000)
    32933393  ifdef TODO_MORE_WARNINGS
    32943394   TEMPLATE_VBoxRc_CXXFLAGS          = -Zi -Zl -GR- -EHs- -GF -GS- -Zc:wchar_t- -Gs8192 $(VBOX_VCC_GC_OPT) $(VBOX_VCC_GC_FP) -W4 -wd4244 -wd4996 -wd4127 -wd4100 -wd4214 -wd4706 $(VBOX_VCC_WERR)
     
    34263526ifeq ($(VBOX_LDR_FMT),pe)
    34273527TEMPLATE_VBoxR0_TOOL                = $(VBOX_VCC_TOOL)
     3528TEMPLATE_VBoxR0_RCDEFS              = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000)
    34283529 ifdef TODO_MORE_WARNINGS
    34293530TEMPLATE_VBoxR0_CXXFLAGS            = -Zi -Zl -GR- -EHs- -GF -GS- -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) -W4 -wd4244 -wd4127 -wd4100 -wd4214 -wd4706 -wd4996 $(VBOX_VCC_WERR)
  • trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk

    r53832 r55788  
    3939VBoxSDLHardened_SOURCES.win = $(VBoxSDL_0_OUTDIR)/VBoxSDL-icon.rc
    4040VBoxSDLHardened_NAME = VBoxSDL
     41$(evalcall2 VBOX_SET_VER_INFO_EXE,VBoxSDLHardened,VirtualBox Pure SDL Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
    4142
    4243
     
    105106        $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
    106107
    107 ifeq ($(KBUILD_TARGET),win)
    108 VBoxSDL_SOURCES   += VBoxSDL.rc
    109 VBoxSDL.rc_INCS    = $(VBoxSDL_0_OUTDIR)
    110 VBoxSDL.rc_DEPS    = $(VBoxSDL_0_OUTDIR)/VBoxSDL-icon.rc
    111 VBoxSDL.rc_CLEAN   = $(VBoxSDL_0_OUTDIR)/VBoxSDL-icon.rc
    112 # Icon include file.
    113 $$(VBoxSDL_0_OUTDIR)/VBoxSDL-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $$(VBoxSDL_DEFPATH)/Makefile.kmk | $$(dir $$@)
    114         $(RM) -f $@
    115         $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
     108ifdef VBOX_WITH_HARDENING
     109$(evalcall2 VBOX_SET_VER_INFO_DLL,VBoxSDL,VirtualBox Pure SDL Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
     110else
     111$(evalcall2 VBOX_SET_VER_INFO_EXE,VBoxSDL,VirtualBox Pure SDL Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
    116112endif
    117 
    118113
    119114
  • trunk/src/VBox/VMM/Makefile.kmk

    r55053 r55788  
    281281VBoxVMM_SOURCES.amd64 += \
    282282        VMMSwitcher/AMD64Stub.asm
    283 VBoxVMM_SOURCES.win += \
    284         VMMR3/VMMR3.rc
    285283
    286284VBoxVMM_LIBS = \
     
    311309# endif
    312310#endif
     311
     312$(evalcall2 VBOX_SET_VER_INFO_DLL,VBoxVMM,VirtualBox VMM) # Version info / description.
    313313
    314314
     
    518518
    519519 VMMRC/VMMRCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMRCDeps.cpp to .c
     520
     521 $(evalcall2 VBOX_SET_VER_INFO_RC,VMMRC,VirtualBox VMM - raw-mode context parts) # Version info / description.
    520522endif # VBOX_WITH_RAW_MODE && !VBOX_ONLY_EXTPACKS
    521523
     
    641643        $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    642644 endif
     645
     646 $(evalcall2 VBOX_SET_VER_INFO_R0,VMMR0,VirtualBox VMM - ring-0 context parts) # Version info / description.
    643647endif # !VBOX_ONLY_EXTPACKS
    644648
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette