VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk@ 96691

Last change on this file since 96691 was 96691, checked in by vboxsync, 2 years ago

Add/*.kmk: Always check for both VBOX_SIGNING_MODE and VBOX_SIGN_ADDITIONS.

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

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