Changeset 55788 in vbox
- Timestamp:
- May 9, 2015 8:29:31 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100214
- Location:
- trunk
- Files:
-
- 6 added
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r55785 r55788 2964 2964 VBOX_RESIGN_DLL_FN = 2965 2965 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. 2981 define VBOX_SET_VER_INFO_DLL 2982 ifeq ($(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)\"") 2986 endif 2987 endef 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. 2999 define VBOX_SET_VER_INFO_EXE 3000 ifeq ($(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)\"") 3004 endif 3005 endef 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. 3018 define VBOX_SET_VER_INFO_DRV 3019 ifeq ($(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)) 3024 endif 3025 endef 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. 3037 define VBOX_SET_VER_INFO_R0 3038 ifeq ($(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)\"") 3042 endif 3043 endef 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. 3055 define VBOX_SET_VER_INFO_RC 3056 ifeq ($(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)\"") 3060 endif 3061 endef 3062 3063 3064 2966 3065 # 2967 3066 # Adjust kBuild defaults. … … 3291 3390 ifeq ($(VBOX_LDR_FMT32),pe) 3292 3391 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) 3293 3393 ifdef TODO_MORE_WARNINGS 3294 3394 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) … … 3426 3526 ifeq ($(VBOX_LDR_FMT),pe) 3427 3527 TEMPLATE_VBoxR0_TOOL = $(VBOX_VCC_TOOL) 3528 TEMPLATE_VBoxR0_RCDEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000) 3428 3529 ifdef TODO_MORE_WARNINGS 3429 3530 TEMPLATE_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 39 39 VBoxSDLHardened_SOURCES.win = $(VBoxSDL_0_OUTDIR)/VBoxSDL-icon.rc 40 40 VBoxSDLHardened_NAME = VBoxSDL 41 $(evalcall2 VBOX_SET_VER_INFO_EXE,VBoxSDLHardened,VirtualBox Pure SDL Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 41 42 42 43 … … 105 106 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@ 106 107 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))"' 108 ifdef VBOX_WITH_HARDENING 109 $(evalcall2 VBOX_SET_VER_INFO_DLL,VBoxSDL,VirtualBox Pure SDL Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 110 else 111 $(evalcall2 VBOX_SET_VER_INFO_EXE,VBoxSDL,VirtualBox Pure SDL Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 116 112 endif 117 118 113 119 114 -
trunk/src/VBox/VMM/Makefile.kmk
r55053 r55788 281 281 VBoxVMM_SOURCES.amd64 += \ 282 282 VMMSwitcher/AMD64Stub.asm 283 VBoxVMM_SOURCES.win += \284 VMMR3/VMMR3.rc285 283 286 284 VBoxVMM_LIBS = \ … … 311 309 # endif 312 310 #endif 311 312 $(evalcall2 VBOX_SET_VER_INFO_DLL,VBoxVMM,VirtualBox VMM) # Version info / description. 313 313 314 314 … … 518 518 519 519 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. 520 522 endif # VBOX_WITH_RAW_MODE && !VBOX_ONLY_EXTPACKS 521 523 … … 641 643 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) 642 644 endif 645 646 $(evalcall2 VBOX_SET_VER_INFO_R0,VMMR0,VirtualBox VMM - ring-0 context parts) # Version info / description. 643 647 endif # !VBOX_ONLY_EXTPACKS 644 648
Note:
See TracChangeset
for help on using the changeset viewer.