VirtualBox

Changeset 55789 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
May 9, 2015 11:19:51 PM (10 years ago)
Author:
vboxsync
Message:

Resources: Some simplifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r55788 r55789  
    29702970
    29712971##
    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.
     2972# Internal macro.
    29762973#
    29772974# @param 1     The target name.
    29782975# @param 2     The description
    29792976# @param 3     Optional icon file.
    2980 # @param 4     Optional file name. Uses $1 + default suffix by default.
    2981 define VBOX_SET_VER_INFO_DLL
     2977# @param 4     The template base name.
     2978# @param 5     Additional RC options.
     2979#
     2980# @remarks     ASSUMES RCFLAGS isn't a simple variable (var := value).
     2981define VBOX_SET_VER_INFO_INTERNAL
    29822982ifeq ($(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)\"")
     2983$(1)_SOURCES.win += $(PATH_ROOT)/src/VBox/Resources/win/$(4)
     2984$(1)_RCFLAGS += /nologo /dIN_INTERNAL_NAME="\"$(1)\"" /dIN_FILE_DESCRIPTION="\"$(2)\"" \
     2985        /dIN_ORIGINAL_NAME="\"$$(notdir $$($(1)_1_INST_TARGET))\"" \
     2986        $(if $(3), /dIN_ICON_FILE="\"$(subst \\,/,$(strip $(3)))\"") $(5)
     2987$$$$($(1)_0_OUTDIR)/src/VBox/Resources/win/$(basename $(4)).res: \
     2988        $(PATH_ROOT)/include/VBox/version.h $$$$(VBOX_VERSION_HEADER)
    29862989endif
    29872990endef
    29882991
    29892992##
    2990 # Macro for setting EXE version information and description.
     2993# Macro for setting DLL/SO/DYLIB version information and description.
    29912994#
    29922995# The macro must be invoked using evalcall2 after the whole target has
     
    29962999# @param 2     The description
    29973000# @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
     3001VBOX_SET_VER_INFO_DLL = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateDll.rc,)
    30063002
    30073003##
    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.
     3004# Macro for setting EXE version information and description.
     3005#
     3006# The macro must be invoked using call after the whole target has been declared.
    30123007#
    30133008# @param 1     The target name.
    30143009# @param 2     The description
    30153010# @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
     3011VBOX_SET_VER_INFO_EXE = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateExe.rc,)
    30263012
    30273013##
    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.
     3014# Macro for setting driver version information and description.
     3015#
     3016# The macro must be invoked using call after the whole target has been declared.
    30323017#
    30333018# @param 1     The target name.
    30343019# @param 2     The description
    30353020# @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
     3021# @param 4     Optional VFT2_DRV_xxx define for windows.  Uses VFT2_UNKNOWN by default.
     3022VBOX_SET_VER_INFO_DRV = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateDrv.rc,$(if $(4), /dIN_FILE_SUBTYPE=$(4)))
    30443023
    30453024##
    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.
     3025# Macro for setting the version information and description for a ring-0 module.
     3026#
     3027# The macro must be invoked using call after the whole target has been declared.
    30503028#
    30513029# @param 1     The target name.
    30523030# @param 2     The description
    30533031# @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
     3032VBOX_SET_VER_INFO_R0 = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateR0.rc,)
     3033
     3034##
     3035# Macro for setting the version information and description for a raw-mode context module.
     3036#
     3037# The macro must be invoked using call after the whole target has been declared.
     3038#
     3039# @param 1     The target name.
     3040# @param 2     The description
     3041# @param 3     Optional icon file.
     3042VBOX_SET_VER_INFO_RC = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateRc.rc,)
    30623043
    30633044
     
    49914972  TEMPLATE_VBoxR3ExtPackPuel_EXTENDS = VBoxR3ExtPack
    49924973  TEMPLATE_VBoxR3ExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
     4974  TEMPLATE_VBoxR3ExtPackPuel_DEFS = $(TEMPLATE_VBoxR3ExtPack_DEFS) VBOX_IN_PUEL_EXTPACK
    49934975
    49944976  TEMPLATE_VBoxR0ExtPackPuel = For the ring-0 context modules in the PUEL extension pack.
    49954977  TEMPLATE_VBoxR0ExtPackPuel_EXTENDS = VBoxR0ExtPack
    49964978  TEMPLATE_VBoxR0ExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
     4979  TEMPLATE_VBoxR0ExtPackPuel_DEFS = $(TEMPLATE_VBoxR0ExtPack_DEFS) VBOX_IN_PUEL_EXTPACK
    49974980
    49984981  TEMPLATE_VBoxRcExtPackPuel = For the raw-mode context modules in the PUEL extension pack.
    49994982  TEMPLATE_VBoxRcExtPackPuel_EXTENDS = VBoxRcExtPack
    50004983  TEMPLATE_VBoxRcExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
     4984  TEMPLATE_VBoxRcExtPackPuel_DEFS = $(TEMPLATE_VBoxRcExtPack_DEFS) VBOX_IN_PUEL_EXTPACK
    50014985
    50024986  TEMPLATE_VBoxInsExtPackPuel = For the install targets of an extension pack.
Note: See TracChangeset for help on using the changeset viewer.

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