1 | # $Id: Makefile.kmk 96390 2022-08-21 02:04:19Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Windows Guest Additions Installer.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Include Sub-Makefiles.
|
---|
22 | include $(PATH_SUB_CURRENT)/Loader/Makefile.kmk
|
---|
23 | include $(PATH_SUB_CURRENT)/InstallHelper/Makefile.kmk
|
---|
24 |
|
---|
25 | # Globals
|
---|
26 | VBOX_PATH_WIN_ADD_INS_SRC := $(PATH_SUB_CURRENT)
|
---|
27 | VBOX_PATH_ADDITIONS.win.x86 := $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/bin/additions
|
---|
28 | VBOX_WITH_GUEST_INSTALL_HELPER := 1 # Use our guest install helper DLL.
|
---|
29 |
|
---|
30 | ## @todo VBOX_WIN_ADD_INS_OUT_DIR := $(PATH_TARGET)/Additions/Installer/win
|
---|
31 |
|
---|
32 |
|
---|
33 | PROGRAMS += VBoxDrvInst
|
---|
34 | VBoxDrvInst_TEMPLATE= VBoxGuestR3Exe
|
---|
35 | VBoxDrvInst_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE
|
---|
36 | VBoxDrvInst_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
37 | ifdef VBOX_WITH_WDDM
|
---|
38 | VBoxDrvInst_DEFS += VBOX_WITH_WDDM
|
---|
39 | endif
|
---|
40 | VBoxDrvInst_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
41 | VBoxDrvInst_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST) VBOX_WIN_NEWDEV
|
---|
42 | VBoxDrvInst_LIBS = \
|
---|
43 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/setupapi.lib
|
---|
44 | VBoxDrvInst_SOURCES = \
|
---|
45 | VBoxDrvInst.cpp \
|
---|
46 | VBoxDrvInst.rc
|
---|
47 |
|
---|
48 | PROGRAMS += VBoxGuestDrvInst
|
---|
49 | VBoxGuestDrvInst_TEMPLATE := VBoxGuestR3Exe
|
---|
50 | VBoxGuestDrvInst_DEFS := _WIN32_WINNT=0x0400
|
---|
51 | VBoxGuestDrvInst_BLD_TRG_ARCH := x86
|
---|
52 | VBoxGuestDrvInst_SOURCES := \
|
---|
53 | VBoxGuestDrvInst.cpp \
|
---|
54 | VBoxGuestDrvInst.rc
|
---|
55 |
|
---|
56 | PROGRAMS += RegCleanup
|
---|
57 | RegCleanup_TEMPLATE := VBoxGuestR3Exe
|
---|
58 | RegCleanup_BLD_TRG_ARCH := x86
|
---|
59 | RegCleanup_DEFS := _WIN32_WINNT=0x0400
|
---|
60 | RegCleanup_SOURCES := \
|
---|
61 | RegCleanup.cpp \
|
---|
62 | RegCleanup.rc
|
---|
63 |
|
---|
64 |
|
---|
65 | #
|
---|
66 | # The installer.
|
---|
67 | #
|
---|
68 | PACKING += $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
|
---|
69 | OTHER_CLEAN += \
|
---|
70 | $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
|
---|
71 |
|
---|
72 | ## @todo r=andy Rename DRIVER_FILES to INST_FILES or something, as those files are not strictly driver-related files.
|
---|
73 |
|
---|
74 | DRIVER_FILES := \
|
---|
75 | $(PATH_STAGE_BIN)/additions/VBoxGuestDrvInst.exe \
|
---|
76 | $(PATH_STAGE_BIN)/additions/RegCleanup.exe \
|
---|
77 | $(PATH_STAGE_BIN)/additions/VBoxMouse.sys \
|
---|
78 | $(PATH_STAGE_BIN)/additions/VBoxGuest.sys \
|
---|
79 | $(PATH_STAGE_BIN)/additions/VBoxVideo.sys \
|
---|
80 | $(PATH_STAGE_BIN)/additions/VBoxDisp.dll \
|
---|
81 | $(PATH_STAGE_BIN)/additions/VBoxSF.sys \
|
---|
82 | $(PATH_STAGE_BIN)/additions/VBoxMRXNP.dll \
|
---|
83 | $(PATH_STAGE_BIN)/additions/VBoxTray.exe \
|
---|
84 | $(PATH_STAGE_BIN)/additions/VBoxControl.exe \
|
---|
85 | $(PATH_STAGE_BIN)/additions/VBoxService.exe
|
---|
86 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
87 | # Also include 32-bit network provider DLLs on 64-bit guests to enable
|
---|
88 | # running 32-bit apps which use that.
|
---|
89 | DRIVER_FILES += \
|
---|
90 | $(PATH_STAGE_BIN)/additions/VBoxMRXNP-x86.dll
|
---|
91 | endif
|
---|
92 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
93 | DRIVER_FILES += \
|
---|
94 | $(PATH_STAGE_BIN)/additions/VBoxMouseNT.sys \
|
---|
95 | $(PATH_STAGE_BIN)/additions/VBoxSFW2K.sys
|
---|
96 | endif
|
---|
97 | DRIVER_FILES += \
|
---|
98 | $(PATH_STAGE_BIN)/additions/VBoxVideo.inf \
|
---|
99 | $(PATH_STAGE_BIN)/additions/VBoxGuest.inf \
|
---|
100 | $(PATH_STAGE_BIN)/additions/VBoxMouse.inf
|
---|
101 | ifdef VBOX_SIGN_ADDITIONS
|
---|
102 | DRIVER_FILES += \
|
---|
103 | $(PATH_STAGE_BIN)/additions/VBoxVideo.cat \
|
---|
104 | $(PATH_STAGE_BIN)/additions/VBoxVideo-PreW10.cat \
|
---|
105 | $(PATH_STAGE_BIN)/additions/VBoxGuest.cat \
|
---|
106 | $(PATH_STAGE_BIN)/additions/VBoxGuest-PreW10.cat \
|
---|
107 | $(PATH_STAGE_BIN)/additions/VBoxMouse.cat \
|
---|
108 | $(PATH_STAGE_BIN)/additions/VBoxMouse-PreW10.cat
|
---|
109 | endif
|
---|
110 | ifdef VBOX_WITH_WDDM
|
---|
111 | DRIVER_FILES += \
|
---|
112 | $(PATH_STAGE_BIN)/additions/VBoxWddm.sys \
|
---|
113 | $(PATH_STAGE_BIN)/additions/VBoxWddm.inf \
|
---|
114 | $(PATH_STAGE_BIN)/additions/VBoxDispD3D.dll
|
---|
115 | ifdef VBOX_WITH_WDDM_DX
|
---|
116 | DRIVER_FILES += \
|
---|
117 | $(PATH_STAGE_BIN)/additions/VBoxDX.dll
|
---|
118 | endif
|
---|
119 | ifdef VBOX_WITH_MESA3D
|
---|
120 | DRIVER_FILES += \
|
---|
121 | $(PATH_STAGE_BIN)/additions/VBoxNine.dll \
|
---|
122 | $(PATH_STAGE_BIN)/additions/VBoxSVGA.dll \
|
---|
123 | $(PATH_STAGE_BIN)/additions/VBoxGL.dll
|
---|
124 | endif
|
---|
125 | ifdef VBOX_SIGN_ADDITIONS
|
---|
126 | DRIVER_FILES += \
|
---|
127 | $(PATH_STAGE_BIN)/additions/VBoxWddm.cat \
|
---|
128 | $(PATH_STAGE_BIN)/additions/VBoxWddm-PreW10.cat
|
---|
129 | endif
|
---|
130 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
131 | DRIVER_FILES += \
|
---|
132 | $(PATH_STAGE_BIN)/additions/VBoxDispD3D-x86.dll
|
---|
133 | ifdef VBOX_WITH_WDDM_DX
|
---|
134 | DRIVER_FILES += \
|
---|
135 | $(PATH_STAGE_BIN)/additions/VBoxDX-x86.dll
|
---|
136 | endif
|
---|
137 | ifdef VBOX_WITH_MESA3D
|
---|
138 | DRIVER_FILES += \
|
---|
139 | $(PATH_STAGE_BIN)/additions/VBoxNine-x86.dll \
|
---|
140 | $(PATH_STAGE_BIN)/additions/VBoxSVGA-x86.dll \
|
---|
141 | $(PATH_STAGE_BIN)/additions/VBoxGL-x86.dll
|
---|
142 | endif
|
---|
143 | endif
|
---|
144 | endif
|
---|
145 |
|
---|
146 | ifdef env.VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST
|
---|
147 | DRIVER_FILES += \
|
---|
148 | $(PATH_STAGE_BIN)/additions/VBoxAudioTest.exe
|
---|
149 | endif
|
---|
150 |
|
---|
151 | VB_WIN_ADD_NSIS_ENV := \
|
---|
152 | -E 'PATH_OUT=$(subst /,\,$(PATH_OUT))' \
|
---|
153 | -E 'PATH_TARGET=$(subst /,\,$(PATH_TARGET))' \
|
---|
154 | -E 'PATH_TARGET_X86=$(subst /,\,$(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/obj)' \
|
---|
155 | -E 'VBOX_PATH_ADDITIONS_WIN_X86=$(subst /,\,$(VBOX_PATH_ADDITIONS.win.x86))' \
|
---|
156 | -E 'VBOX_PATH_DIFX=$(subst /,\,$(VBOX_PATH_DIFX))' \
|
---|
157 | -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
|
---|
158 | -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
|
---|
159 | -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
|
---|
160 | -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
|
---|
161 | -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
|
---|
162 | -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
|
---|
163 | -E 'VBOX_VERSION_MAJOR=$(VBOX_VERSION_MAJOR)' \
|
---|
164 | -E 'VBOX_VERSION_MINOR=$(VBOX_VERSION_MINOR)' \
|
---|
165 | -E 'VBOX_VERSION_BUILD=$(VBOX_VERSION_BUILD)' \
|
---|
166 | -E 'VBOX_SVN_REV=$(VBOX_SVN_REV)' \
|
---|
167 | -E 'VBOX_WINDOWS_ADDITIONS_ICON_FILE=$(subst /,\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))' \
|
---|
168 | -E 'VBOX_NSIS_ICON_FILE=$(subst /,\,$(VBOX_NSIS_ICON_FILE))' \
|
---|
169 | -E 'VBOX_WITH_GUEST_INSTALL_HELPER=$(if $(VBOX_WITH_GUEST_INSTALL_HELPER),1,0)' \
|
---|
170 | -E 'VBOX_WITH_GUEST_INSTALLER_UNICODE=$(if $(VBOX_WITH_GUEST_INSTALLER_UNICODE),1,0)' \
|
---|
171 | -E 'VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST=$(if $(VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST),1,0)' \
|
---|
172 | -E 'VBOX_WITH_LICENSE_INSTALL_RTF=$(if $(VBOX_BRAND_LICENSE_RTF),1,0)' \
|
---|
173 | -E 'VBOX_WITH_WDDM=$(if $(VBOX_WITH_WDDM),1,0)' \
|
---|
174 | -E 'VBOX_WITH_WDDM_DX=$(if $(VBOX_WITH_WDDM_DX),1,0)' \
|
---|
175 | -E 'VBOX_WITH_MESA3D=$(if $(VBOX_WITH_MESA3D),1,0)' \
|
---|
176 | -E 'VBOX_BRAND_WIN_ADD_INST_DLGBMP=$(subst /,\,$(VBOX_BRAND_WIN_ADD_INST_DLGBMP))' \
|
---|
177 | -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \
|
---|
178 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),-E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(VBOX_BRAND_$(lang)_LICENSE_RTF)') \
|
---|
179 | -E 'KBUILD_TYPE=$(KBUILD_TYPE)' \
|
---|
180 | -E 'KBUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)'
|
---|
181 |
|
---|
182 | ifdef VBOX_SIGNING_MODE
|
---|
183 | #
|
---|
184 | # This is a hack to sign the uninstaller.
|
---|
185 | # See http://nsis.sourceforge.net/Signing_an_Uninstaller for more details.
|
---|
186 | #
|
---|
187 | OTHER_CLEAN += $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe
|
---|
188 |
|
---|
189 | $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe: \
|
---|
190 | $(PATH_SUB_CURRENT)/VBoxGuestAdditions.nsi \
|
---|
191 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsCommon.nsh \
|
---|
192 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsExternal.nsh \
|
---|
193 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsLog.nsh \
|
---|
194 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstall.nsh \
|
---|
195 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstallOld.nsh \
|
---|
196 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsW2KXP.nsh \
|
---|
197 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsVista.nsh \
|
---|
198 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsNT4.nsh \
|
---|
199 | $(DRIVER_FILES) \
|
---|
200 | $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
|
---|
201 | $(VBOX_NSIS_ICON_FILE) \
|
---|
202 | $(VBOX_VERSION_STAMP) \
|
---|
203 | $$(VBoxDrvInst_1_STAGE_TARGET) \
|
---|
204 | | $$(dir $$@)
|
---|
205 | $(call MSG_L1,Creating $@, from $<)
|
---|
206 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_WIN_ADD_INS_SRC) \
|
---|
207 | $(VB_WIN_ADD_NSIS_ENV) \
|
---|
208 | -- $(EXEC_X86_WIN32) $(VBOX_PATH_NSIS)/makensis.exe /NOCD /V2 \
|
---|
209 | $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
|
---|
210 | $(if $(VBOX_WITH_VBOX_LEGACY_TS_CA),'/DVBOX_WITH_VBOX_LEGACY_TS_CA=1') \
|
---|
211 | $(if $(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_INSTALLER_ADD_LANGUAGES=1') \
|
---|
212 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \
|
---|
213 | '/DUNINSTALLER_ONLY=1' \
|
---|
214 | '$(subst /,\,$<)'
|
---|
215 |
|
---|
216 | OTHER_CLEAN += $(PATH_TARGET)/uninst.exe
|
---|
217 | $(PATH_TARGET)/uninst.exe: $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe | $$(dir $$@)
|
---|
218 | $(call MSG_L1,Creating $@, from $<)
|
---|
219 | $(QUIET)$(RM) -f $@
|
---|
220 | - $<
|
---|
221 | $(TEST) -f $@
|
---|
222 | $(call VBOX_SIGN_FILE_FN,$@)
|
---|
223 | endif
|
---|
224 |
|
---|
225 | ifdef VBOX_GA_ATTESTATION_SIGNING
|
---|
226 | VBOX_DRIVERS_PACK_NAME := VBoxDrivers-$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)r$(VBOX_SVN_REV)-$(KBUILD_TARGET_ARCH).cab
|
---|
227 | VBOX_SIGNED_DRIVERS_ZIP_NAME := $(VBOX_DRIVERS_PACK_NAME).Signed.zip
|
---|
228 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
229 | ifndef TOOL_ZIP_PACK
|
---|
230 | TOOL_ZIP_PACK = zip
|
---|
231 | endif
|
---|
232 | endif
|
---|
233 |
|
---|
234 | $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe: \
|
---|
235 | $(PATH_SUB_CURRENT)/VBoxGuestAdditions.nsi \
|
---|
236 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsCommon.nsh \
|
---|
237 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsExternal.nsh \
|
---|
238 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsLog.nsh \
|
---|
239 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstall.nsh \
|
---|
240 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstallOld.nsh \
|
---|
241 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsW2KXP.nsh \
|
---|
242 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsVista.nsh \
|
---|
243 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsNT4.nsh \
|
---|
244 | $(DRIVER_FILES) \
|
---|
245 | $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
|
---|
246 | $(VBOX_NSIS_ICON_FILE) \
|
---|
247 | $(if $(VBOX_SIGNING_MODE),$(PATH_TARGET)/uninst.exe) \
|
---|
248 | $(if $(VBOX_GA_ATTESTATION_SIGNING),$(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME)) \
|
---|
249 | $(VBOX_VERSION_STAMP) \
|
---|
250 | $$(VBoxDrvInst_1_STAGE_TARGET)
|
---|
251 | $(call MSG_L1,Creating $@, from $<)
|
---|
252 | ifdef VBOX_GA_ATTESTATION_SIGNING
|
---|
253 | $(TOOL_ZIP_UNPACK) -oj $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME) -d $(PATH_STAGE_BIN)/additions/
|
---|
254 | endif
|
---|
255 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_WIN_ADD_INS_SRC) \
|
---|
256 | $(VB_WIN_ADD_NSIS_ENV) \
|
---|
257 | -- $(EXEC_X86_WIN32) $(VBOX_PATH_NSIS)/makensis.exe /NOCD /V2 \
|
---|
258 | $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
|
---|
259 | $(if $(VBOX_SIGNING_MODE),'/DEXTERNAL_UNINSTALLER=1') \
|
---|
260 | $(if $(VBOX_WITH_VBOX_LEGACY_TS_CA),'/DVBOX_WITH_VBOX_LEGACY_TS_CA=1') \
|
---|
261 | $(if $(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_INSTALLER_ADD_LANGUAGES=1') \
|
---|
262 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \
|
---|
263 | '$(subst /,\,$<)'
|
---|
264 | $(call VBOX_SIGN_FILE_FN,$@)
|
---|
265 |
|
---|
266 | ifdef VBOX_GA_ATTESTATION_SIGNING
|
---|
267 | $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME): \
|
---|
268 | $(PATH_OUT)/repackadd/sign-attestation.sh \
|
---|
269 | $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME)
|
---|
270 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.zip
|
---|
271 | cd $(PATH_OUT)/repackadd && $(SHELL) $(PATH_OUT)/repackadd/sign-attestation.sh $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME)
|
---|
272 | $(MV_EXT) $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME).*.zip $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME)
|
---|
273 |
|
---|
274 | $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME): \
|
---|
275 | $(PATH_OUT)/repackadd/PackDriversForSubmission.cmd
|
---|
276 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.cab
|
---|
277 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.ddf
|
---|
278 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.inf
|
---|
279 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.rpt
|
---|
280 | $(EXEC_X86_WIN32) cmd /c $(PATH_OUT)/repackadd/PackDriversForSubmission.cmd -b $(PATH_STAGE_BIN) -a $(KBUILD_TARGET_ARCH) -x -n --no-main --ga -o $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME)
|
---|
281 | $(call VBOX_SIGN_EV_FILE_FN,$@)
|
---|
282 | endif #VBOX_GA_ATTESTATION_SIGNING
|
---|
283 |
|
---|
284 | #
|
---|
285 | # Repackaging scripts and files.
|
---|
286 | #
|
---|
287 | INSTALLS += RePackScriptsAdd
|
---|
288 | RePackScriptsAdd_TEMPLATE = DUMMY
|
---|
289 | RePackScriptsAdd_INST = repackadd/
|
---|
290 | RePackScriptsAdd_INSTTYPE = stage
|
---|
291 | RePackScriptsAdd_SOURCES = \
|
---|
292 | ../../../Installer/win/Scripts/UnpackBlessedDrivers.cmd \
|
---|
293 | $(RePackScriptsAdd_0_OUTDIR)/PackDriversForSubmission.cmd \
|
---|
294 | $(RePackScriptsAdd_0_OUTDIR)/Combined-1-Prepare.cmd \
|
---|
295 | $(RePackScriptsAdd_0_OUTDIR)/Combined-3-RepackAdditions.cmd \
|
---|
296 | $(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd
|
---|
297 | RePackScriptsAdd_CLEAN = \
|
---|
298 | $(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd
|
---|
299 |
|
---|
300 | ifndef VBOX_OSE
|
---|
301 | RePackScriptsAdd_SOURCES += \
|
---|
302 | $(RePackScriptsAdd_0_OUTDIR)/Combined-0-Additions.cmd \
|
---|
303 | $(RePackScriptsAdd_0_OUTDIR)/Combined-2-SignAdditions.cmd \
|
---|
304 | ../../../Installer/win/Scripts/sign-attestation.sh
|
---|
305 | endif
|
---|
306 |
|
---|
307 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/PackDriversForSubmission.cmd,PackDriversForSubmission.cmd)
|
---|
308 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-1-Prepare.cmd,Combined-1-Prepare.cmd)
|
---|
309 | ifndef VBOX_OSE
|
---|
310 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-0-Additions.cmd,Combined-0-Additions.cmd)
|
---|
311 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-2-SignAdditions.cmd,Combined-2-SignAdditions.cmd)
|
---|
312 | endif
|
---|
313 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-3-RepackAdditions.cmd,Combined-3-RepackAdditions.cmd)
|
---|
314 |
|
---|
315 | # The %~dp1\ oddity is working around otherwise ending with \" during
|
---|
316 | # expansion of the CCS command line which for a reason I cannot immediately
|
---|
317 | # understand appends a " to the path.
|
---|
318 | $$(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd: | $$(dir $$@)
|
---|
319 | $(APPEND) -nt "$@" \
|
---|
320 | 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b 1)' \
|
---|
321 | 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b 1)' \
|
---|
322 | 'if ".%1" == "." (echo No .cab file specified & exit /b 1)' \
|
---|
323 | $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
|
---|
324 | '( $(call VBOX_SIGN_EV_FILE_FN,%1,%~dp1\) ) || exit /b1' \
|
---|
325 | ) )
|
---|
326 |
|
---|
327 | #
|
---|
328 | # Repacking resources.
|
---|
329 | #
|
---|
330 | INSTALLS += RePackScriptsAddResources
|
---|
331 | RePackScriptsAddResources_TEMPLATE = DUMMY
|
---|
332 | RePackScriptsAddResources_INST = repackadd/resources/
|
---|
333 | RePackScriptsAddResources_INSTTYPE = stage
|
---|
334 | RePackScriptsAddResources_DIRS = Languages
|
---|
335 | RePackScriptsAddResources_SOURCES = \
|
---|
336 | welcome.bmp \
|
---|
337 | $(VBOX_WINDOWS_ADDITIONS_ICON_FILE)=>VirtualBoxGA-vista.ico \
|
---|
338 | $(VBOX_NSIS_ICON_FILE)=>VirtualBoxGA-nsis.ico \
|
---|
339 | iexplore.ico \
|
---|
340 | $(PATH_ROOT)/doc/License-gpl-3.0.rtf \
|
---|
341 | VBoxGuestAdditions.nsi \
|
---|
342 | dumplog.nsh \
|
---|
343 | ReplaceDLL.nsh \
|
---|
344 | servicepack.nsh \
|
---|
345 | strstr.nsh \
|
---|
346 | VBoxGuestAdditionsCommon.nsh \
|
---|
347 | VBoxGuestAdditionsExternal.nsh \
|
---|
348 | VBoxGuestAdditionsLog.nsh\
|
---|
349 | VBoxGuestAdditionsNT4.nsh \
|
---|
350 | VBoxGuestAdditionsUninstall.nsh \
|
---|
351 | VBoxGuestAdditionsUninstallOld.nsh \
|
---|
352 | VBoxGuestAdditionsVista.nsh\
|
---|
353 | VBoxGuestAdditionsW2KXP.nsh\
|
---|
354 | winver.nsh \
|
---|
355 | ISO/AUTORUN.INF \
|
---|
356 | ISO/NT3xReadme.txt \
|
---|
357 | \
|
---|
358 | Languages/English.nsh=>Languages/English.nsh \
|
---|
359 | Languages/French.nsh=>Languages/French.nsh \
|
---|
360 | Languages/German.nsh=>Languages/German.nsh
|
---|
361 |
|
---|
362 |
|
---|
363 | #
|
---|
364 | # NT3.x installer.
|
---|
365 | #
|
---|
366 | # Just for fun, this one does not use the CRT more than it really really needs
|
---|
367 | # to. This saves space and avoid compatiblity issues, it also makes for a
|
---|
368 | # fun challenge.
|
---|
369 | #
|
---|
370 | PROGRAMS.win.x86 += VBoxAddInstallNt3x
|
---|
371 | VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3NoCrtExe
|
---|
372 | #VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3Exe
|
---|
373 | VBoxAddInstallNt3x_SOURCES := \
|
---|
374 | VBoxAddInstallNt3x.cpp \
|
---|
375 |
|
---|
376 |
|
---|
377 | VBoxAddInstallNt3x.cpp_DEPS = $(VBOX_SVN_REV_HEADER)
|
---|
378 |
|
---|
379 |
|
---|
380 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
381 |
|
---|