Changeset 55789 in vbox for trunk/Config.kmk
- Timestamp:
- May 9, 2015 11:19:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r55788 r55789 2970 2970 2971 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. 2972 # Internal macro. 2976 2973 # 2977 2974 # @param 1 The target name. 2978 2975 # @param 2 The description 2979 2976 # @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). 2981 define VBOX_SET_VER_INFO_INTERNAL 2982 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)\"") 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) 2986 2989 endif 2987 2990 endef 2988 2991 2989 2992 ## 2990 # Macro for setting EXEversion information and description.2993 # Macro for setting DLL/SO/DYLIB version information and description. 2991 2994 # 2992 2995 # The macro must be invoked using evalcall2 after the whole target has … … 2996 2999 # @param 2 The description 2997 3000 # @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 3001 VBOX_SET_VER_INFO_DLL = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateDll.rc,) 3006 3002 3007 3003 ## 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. 3012 3007 # 3013 3008 # @param 1 The target name. 3014 3009 # @param 2 The description 3015 3010 # @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 3011 VBOX_SET_VER_INFO_EXE = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateExe.rc,) 3026 3012 3027 3013 ## 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. 3032 3017 # 3033 3018 # @param 1 The target name. 3034 3019 # @param 2 The description 3035 3020 # @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. 3022 VBOX_SET_VER_INFO_DRV = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateDrv.rc,$(if $(4), /dIN_FILE_SUBTYPE=$(4))) 3044 3023 3045 3024 ## 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. 3050 3028 # 3051 3029 # @param 1 The target name. 3052 3030 # @param 2 The description 3053 3031 # @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 3032 VBOX_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. 3042 VBOX_SET_VER_INFO_RC = $(evalcall2 VBOX_SET_VER_INFO_INTERNAL,$1,$2,$3,TemplateRc.rc,) 3062 3043 3063 3044 … … 4991 4972 TEMPLATE_VBoxR3ExtPackPuel_EXTENDS = VBoxR3ExtPack 4992 4973 TEMPLATE_VBoxR3ExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/ 4974 TEMPLATE_VBoxR3ExtPackPuel_DEFS = $(TEMPLATE_VBoxR3ExtPack_DEFS) VBOX_IN_PUEL_EXTPACK 4993 4975 4994 4976 TEMPLATE_VBoxR0ExtPackPuel = For the ring-0 context modules in the PUEL extension pack. 4995 4977 TEMPLATE_VBoxR0ExtPackPuel_EXTENDS = VBoxR0ExtPack 4996 4978 TEMPLATE_VBoxR0ExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/ 4979 TEMPLATE_VBoxR0ExtPackPuel_DEFS = $(TEMPLATE_VBoxR0ExtPack_DEFS) VBOX_IN_PUEL_EXTPACK 4997 4980 4998 4981 TEMPLATE_VBoxRcExtPackPuel = For the raw-mode context modules in the PUEL extension pack. 4999 4982 TEMPLATE_VBoxRcExtPackPuel_EXTENDS = VBoxRcExtPack 5000 4983 TEMPLATE_VBoxRcExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/ 4984 TEMPLATE_VBoxRcExtPackPuel_DEFS = $(TEMPLATE_VBoxRcExtPack_DEFS) VBOX_IN_PUEL_EXTPACK 5001 4985 5002 4986 TEMPLATE_VBoxInsExtPackPuel = For the install targets of an extension pack.
Note:
See TracChangeset
for help on using the changeset viewer.