1 | # $Id: Makefile.kmk 94485 2022-04-06 07:00:56Z 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 UNICODE
|
---|
51 | VBoxGuestDrvInst_SOURCES = \
|
---|
52 | VBoxGuestDrvInst.cpp \
|
---|
53 | VBoxGuestDrvInst.rc
|
---|
54 |
|
---|
55 | PROGRAMS += RegCleanup
|
---|
56 | RegCleanup_TEMPLATE = VBoxGuestR3Exe
|
---|
57 | RegCleanup_DEFS = _WIN32_WINNT=0x0400 UNICODE
|
---|
58 | RegCleanup_SOURCES = \
|
---|
59 | RegCleanup.cpp \
|
---|
60 | RegCleanup.rc
|
---|
61 |
|
---|
62 |
|
---|
63 | #
|
---|
64 | # The installer.
|
---|
65 | #
|
---|
66 | PACKING += $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
|
---|
67 | OTHER_CLEAN += \
|
---|
68 | $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe \
|
---|
69 | $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe
|
---|
70 |
|
---|
71 | ## @todo r=andy Rename DRIVER_FILES to INST_FILES or something, as those files are not strictly driver-related files.
|
---|
72 |
|
---|
73 | DRIVER_FILES := \
|
---|
74 | $(PATH_STAGE_BIN)/additions/VBoxGuestDrvInst.exe \
|
---|
75 | $(PATH_STAGE_BIN)/additions/RegCleanup.exe \
|
---|
76 | $(PATH_STAGE_BIN)/additions/VBoxMouse.sys \
|
---|
77 | $(PATH_STAGE_BIN)/additions/VBoxGuest.sys \
|
---|
78 | $(PATH_STAGE_BIN)/additions/VBoxVideo.sys \
|
---|
79 | $(PATH_STAGE_BIN)/additions/VBoxDisp.dll \
|
---|
80 | $(PATH_STAGE_BIN)/additions/VBoxSF.sys \
|
---|
81 | $(PATH_STAGE_BIN)/additions/VBoxMRXNP.dll \
|
---|
82 | $(PATH_STAGE_BIN)/additions/VBoxTray.exe \
|
---|
83 | $(PATH_STAGE_BIN)/additions/VBoxControl.exe \
|
---|
84 | $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.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/VBoxICD.dll \
|
---|
124 | $(PATH_STAGE_BIN)/additions/VBoxGL.dll
|
---|
125 | endif
|
---|
126 | ifdef VBOX_SIGN_ADDITIONS
|
---|
127 | DRIVER_FILES += \
|
---|
128 | $(PATH_STAGE_BIN)/additions/VBoxWddm.cat \
|
---|
129 | $(PATH_STAGE_BIN)/additions/VBoxWddm-PreW10.cat
|
---|
130 | endif
|
---|
131 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
132 | DRIVER_FILES += \
|
---|
133 | $(PATH_STAGE_BIN)/additions/VBoxDispD3D-x86.dll
|
---|
134 | ifdef VBOX_WITH_WDDM_DX
|
---|
135 | DRIVER_FILES += \
|
---|
136 | $(PATH_STAGE_BIN)/additions/VBoxDX-x86.dll
|
---|
137 | endif
|
---|
138 | ifdef VBOX_WITH_MESA3D
|
---|
139 | DRIVER_FILES += \
|
---|
140 | $(PATH_STAGE_BIN)/additions/VBoxNine-x86.dll \
|
---|
141 | $(PATH_STAGE_BIN)/additions/VBoxSVGA-x86.dll \
|
---|
142 | $(PATH_STAGE_BIN)/additions/VBoxICD-x86.dll \
|
---|
143 | $(PATH_STAGE_BIN)/additions/VBoxGL-x86.dll
|
---|
144 | endif
|
---|
145 | endif
|
---|
146 | endif
|
---|
147 |
|
---|
148 | ifdef env.VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST
|
---|
149 | DRIVER_FILES += \
|
---|
150 | $(PATH_STAGE_BIN)/additions/VBoxAudioTest.exe
|
---|
151 | endif
|
---|
152 |
|
---|
153 | VB_WIN_ADD_NSIS_ENV := \
|
---|
154 | -E 'PATH_OUT=$(subst /,\,$(PATH_OUT))' \
|
---|
155 | -E 'PATH_TARGET=$(subst /,\,$(PATH_TARGET))' \
|
---|
156 | -E 'PATH_TARGET_X86=$(subst /,\,$(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/obj)' \
|
---|
157 | -E 'VBOX_PATH_ADDITIONS_WIN_X86=$(subst /,\,$(VBOX_PATH_ADDITIONS.win.x86))' \
|
---|
158 | -E 'VBOX_PATH_DIFX=$(subst /,\,$(VBOX_PATH_DIFX))' \
|
---|
159 | -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
|
---|
160 | -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
|
---|
161 | -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
|
---|
162 | -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
|
---|
163 | -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
|
---|
164 | -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
|
---|
165 | -E 'VBOX_VERSION_MAJOR=$(VBOX_VERSION_MAJOR)' \
|
---|
166 | -E 'VBOX_VERSION_MINOR=$(VBOX_VERSION_MINOR)' \
|
---|
167 | -E 'VBOX_VERSION_BUILD=$(VBOX_VERSION_BUILD)' \
|
---|
168 | -E 'VBOX_SVN_REV=$(VBOX_SVN_REV)' \
|
---|
169 | -E 'VBOX_WINDOWS_ADDITIONS_ICON_FILE=$(subst /,\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))' \
|
---|
170 | -E 'VBOX_NSIS_ICON_FILE=$(subst /,\,$(VBOX_NSIS_ICON_FILE))' \
|
---|
171 | -E 'VBOX_WITH_GUEST_INSTALL_HELPER=$(if $(VBOX_WITH_GUEST_INSTALL_HELPER),1,0)' \
|
---|
172 | -E 'VBOX_WITH_GUEST_INSTALLER_UNICODE=$(if $(VBOX_WITH_GUEST_INSTALLER_UNICODE),1,0)' \
|
---|
173 | -E 'VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST=$(if $(VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST),1,0)' \
|
---|
174 | -E 'VBOX_WITH_LICENSE_INSTALL_RTF=$(if $(VBOX_BRAND_LICENSE_RTF),1,0)' \
|
---|
175 | -E 'VBOX_WITH_WDDM=$(if $(VBOX_WITH_WDDM),1,0)' \
|
---|
176 | -E 'VBOX_WITH_WDDM_DX=$(if $(VBOX_WITH_WDDM_DX),1,0)' \
|
---|
177 | -E 'VBOX_WITH_MESA3D=$(if $(VBOX_WITH_MESA3D),1,0)' \
|
---|
178 | -E 'VBOX_BRAND_WIN_ADD_INST_DLGBMP=$(subst /,\,$(VBOX_BRAND_WIN_ADD_INST_DLGBMP))' \
|
---|
179 | -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \
|
---|
180 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),-E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(VBOX_BRAND_$(lang)_LICENSE_RTF)') \
|
---|
181 | -E 'KBUILD_TYPE=$(KBUILD_TYPE)' \
|
---|
182 | -E 'KBUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)'
|
---|
183 |
|
---|
184 | ifdef VBOX_SIGNING_MODE
|
---|
185 | #
|
---|
186 | # This is a hack to sign the uninstaller.
|
---|
187 | # See http://nsis.sourceforge.net/Signing_an_Uninstaller for more details.
|
---|
188 | #
|
---|
189 | OTHER_CLEAN += $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe
|
---|
190 |
|
---|
191 | $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe: \
|
---|
192 | $(PATH_SUB_CURRENT)/VBoxGuestAdditions.nsi \
|
---|
193 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsCommon.nsh \
|
---|
194 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsExternal.nsh \
|
---|
195 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsLog.nsh \
|
---|
196 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstall.nsh \
|
---|
197 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstallOld.nsh \
|
---|
198 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsW2KXP.nsh \
|
---|
199 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsVista.nsh \
|
---|
200 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsNT4.nsh \
|
---|
201 | $(DRIVER_FILES) \
|
---|
202 | $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
|
---|
203 | $(VBOX_NSIS_ICON_FILE) \
|
---|
204 | $(VBOX_VERSION_STAMP) \
|
---|
205 | $$(VBoxDrvInst_1_STAGE_TARGET) \
|
---|
206 | | $$(dir $$@)
|
---|
207 | $(call MSG_L1,Creating $@, from $<)
|
---|
208 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_WIN_ADD_INS_SRC) \
|
---|
209 | $(VB_WIN_ADD_NSIS_ENV) \
|
---|
210 | -- $(EXEC_X86_WIN32) $(VBOX_PATH_NSIS)/makensis.exe /NOCD /V2 \
|
---|
211 | $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
|
---|
212 | $(if $(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_INSTALLER_ADD_LANGUAGES=1') \
|
---|
213 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \
|
---|
214 | '/DUNINSTALLER_ONLY=1' \
|
---|
215 | '$(subst /,\,$<)'
|
---|
216 |
|
---|
217 | OTHER_CLEAN += $(PATH_TARGET)/uninst.exe
|
---|
218 | $(PATH_TARGET)/uninst.exe: $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe | $$(dir $$@)
|
---|
219 | $(call MSG_L1,Creating $@, from $<)
|
---|
220 | $(QUIET)$(RM) -f $@
|
---|
221 | - $<
|
---|
222 | $(TEST) -f $@
|
---|
223 | $(call VBOX_SIGN_FILE_FN,$@)
|
---|
224 | endif
|
---|
225 |
|
---|
226 | WHQLFAKE := $(PATH_SUB_CURRENT)/VBoxWHQLFake.au3
|
---|
227 |
|
---|
228 | $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe:
|
---|
229 | $(call MSG_L1,Creating $@, from $<)
|
---|
230 | $(QUIET)$(EXEC_X86_WIN32) $(VBOX_PATH_AUTOIT3)/Aut2Exe/Aut2exe.exe \
|
---|
231 | /in $(WHQLFAKE) \
|
---|
232 | /out $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe \
|
---|
233 | /icon $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
|
---|
234 | /comp 4 \
|
---|
235 | /unicode
|
---|
236 |
|
---|
237 | ifdef VBOX_GA_ATTESTATION_SIGNING
|
---|
238 | VBOX_DRIVERS_PACK_NAME := VBoxDrivers-$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)r$(VBOX_SVN_REV)-$(KBUILD_TARGET_ARCH).cab
|
---|
239 | VBOX_SIGNED_DRIVERS_ZIP_NAME := $(VBOX_DRIVERS_PACK_NAME).Signed.zip
|
---|
240 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
241 | ifndef TOOL_ZIP_PACK
|
---|
242 | TOOL_ZIP_PACK = zip
|
---|
243 | endif
|
---|
244 | endif
|
---|
245 |
|
---|
246 | $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe: \
|
---|
247 | $(PATH_SUB_CURRENT)/VBoxGuestAdditions.nsi \
|
---|
248 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsCommon.nsh \
|
---|
249 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsExternal.nsh \
|
---|
250 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsLog.nsh \
|
---|
251 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstall.nsh \
|
---|
252 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstallOld.nsh \
|
---|
253 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsW2KXP.nsh \
|
---|
254 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsVista.nsh \
|
---|
255 | $(PATH_SUB_CURRENT)/VBoxGuestAdditionsNT4.nsh \
|
---|
256 | $(DRIVER_FILES) \
|
---|
257 | $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
|
---|
258 | $(VBOX_NSIS_ICON_FILE) \
|
---|
259 | $(if $(VBOX_SIGNING_MODE),$(PATH_TARGET)/uninst.exe) \
|
---|
260 | $(if $(VBOX_GA_ATTESTATION_SIGNING),$(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME)) \
|
---|
261 | $(VBOX_VERSION_STAMP) \
|
---|
262 | $$(VBoxDrvInst_1_STAGE_TARGET)
|
---|
263 | $(call MSG_L1,Creating $@, from $<)
|
---|
264 | ifdef VBOX_GA_ATTESTATION_SIGNING
|
---|
265 | $(TOOL_ZIP_UNPACK) -oj $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME) -d $(PATH_STAGE_BIN)/additions/
|
---|
266 | endif
|
---|
267 | $(QUIET)$(REDIRECT) -C $(VBOX_PATH_WIN_ADD_INS_SRC) \
|
---|
268 | $(VB_WIN_ADD_NSIS_ENV) \
|
---|
269 | -- $(EXEC_X86_WIN32) $(VBOX_PATH_NSIS)/makensis.exe /NOCD /V2 \
|
---|
270 | $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
|
---|
271 | $(if $(VBOX_SIGNING_MODE),'/DEXTERNAL_UNINSTALLER=1') \
|
---|
272 | $(if $(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_INSTALLER_ADD_LANGUAGES=1') \
|
---|
273 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \
|
---|
274 | '$(subst /,\,$<)'
|
---|
275 | $(call VBOX_SIGN_FILE_FN,$@)
|
---|
276 |
|
---|
277 | ifdef VBOX_GA_ATTESTATION_SIGNING
|
---|
278 | $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME): \
|
---|
279 | $(PATH_OUT)/repackadd/sign-attestation.sh \
|
---|
280 | $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME)
|
---|
281 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.zip
|
---|
282 | cd $(PATH_OUT)/repackadd && $(SHELL) $(PATH_OUT)/repackadd/sign-attestation.sh $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME)
|
---|
283 | $(MV_EXT) $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME).*.zip $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME)
|
---|
284 |
|
---|
285 | $(PATH_OUT)/repackadd/$(VBOX_DRIVERS_PACK_NAME): \
|
---|
286 | $(PATH_OUT)/repackadd/PackDriversForSubmission.cmd
|
---|
287 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.cab
|
---|
288 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.ddf
|
---|
289 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.inf
|
---|
290 | $(RM_EXT) -f $(PATH_OUT)/repackadd/*.rpt
|
---|
291 | $(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)
|
---|
292 | $(call VBOX_SIGN_EV_FILE_FN,$@)
|
---|
293 | endif #VBOX_GA_ATTESTATION_SIGNING
|
---|
294 |
|
---|
295 | #
|
---|
296 | # Repackaging scripts and files.
|
---|
297 | #
|
---|
298 | INSTALLS += RePackScriptsAdd
|
---|
299 | RePackScriptsAdd_TEMPLATE = DUMMY
|
---|
300 | RePackScriptsAdd_INST = repackadd/
|
---|
301 | RePackScriptsAdd_INSTTYPE = stage
|
---|
302 | RePackScriptsAdd_SOURCES = \
|
---|
303 | ../../../Installer/win/Scripts/UnpackBlessedDrivers.cmd \
|
---|
304 | $(RePackScriptsAdd_0_OUTDIR)/PackDriversForSubmission.cmd \
|
---|
305 | $(RePackScriptsAdd_0_OUTDIR)/Combined-1-Prepare.cmd \
|
---|
306 | $(RePackScriptsAdd_0_OUTDIR)/Combined-3-RepackAdditions.cmd \
|
---|
307 | $(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd
|
---|
308 | RePackScriptsAdd_CLEAN = \
|
---|
309 | $(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd
|
---|
310 |
|
---|
311 | ifndef VBOX_OSE
|
---|
312 | RePackScriptsAdd_SOURCES += \
|
---|
313 | $(RePackScriptsAdd_0_OUTDIR)/Combined-0-Additions.cmd \
|
---|
314 | $(RePackScriptsAdd_0_OUTDIR)/Combined-2-SignAdditions.cmd \
|
---|
315 | ../../../Installer/win/Scripts/sign-attestation.sh
|
---|
316 | endif
|
---|
317 |
|
---|
318 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/PackDriversForSubmission.cmd,PackDriversForSubmission.cmd)
|
---|
319 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-1-Prepare.cmd,Combined-1-Prepare.cmd)
|
---|
320 | ifndef VBOX_OSE
|
---|
321 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-0-Additions.cmd,Combined-0-Additions.cmd)
|
---|
322 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-2-SignAdditions.cmd,Combined-2-SignAdditions.cmd)
|
---|
323 | endif
|
---|
324 | $(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScriptsAdd,../../../Installer/win/Scripts/Combined-3-RepackAdditions.cmd,Combined-3-RepackAdditions.cmd)
|
---|
325 |
|
---|
326 | # The %~dp1\ oddity is working around otherwise ending with \" during
|
---|
327 | # expansion of the CCS command line which for a reason I cannot immediately
|
---|
328 | # understand appends a " to the path.
|
---|
329 | $$(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd: | $$(dir $$@)
|
---|
330 | $(APPEND) -nt "$@" \
|
---|
331 | 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b 1)' \
|
---|
332 | 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b 1)' \
|
---|
333 | 'if ".%1" == "." (echo No .cab file specified & exit /b 1)' \
|
---|
334 | $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
|
---|
335 | '( $(call VBOX_SIGN_EV_FILE_FN,%1,%~dp1\) ) || exit /b1' \
|
---|
336 | ) )
|
---|
337 |
|
---|
338 | #
|
---|
339 | # Repacking resources.
|
---|
340 | #
|
---|
341 | INSTALLS += RePackScriptsAddResources
|
---|
342 | RePackScriptsAddResources_TEMPLATE = DUMMY
|
---|
343 | RePackScriptsAddResources_INST = repackadd/resources/
|
---|
344 | RePackScriptsAddResources_INSTTYPE = stage
|
---|
345 | RePackScriptsAddResources_DIRS = Languages
|
---|
346 | RePackScriptsAddResources_SOURCES = \
|
---|
347 | welcome.bmp \
|
---|
348 | $(VBOX_WINDOWS_ADDITIONS_ICON_FILE)=>VirtualBoxGA-vista.ico \
|
---|
349 | $(VBOX_NSIS_ICON_FILE)=>VirtualBoxGA-nsis.ico \
|
---|
350 | iexplore.ico \
|
---|
351 | $(PATH_ROOT)/doc/License-gpl-2.0.rtf \
|
---|
352 | VBoxGuestAdditions.nsi \
|
---|
353 | dumplog.nsh \
|
---|
354 | ReplaceDLL.nsh \
|
---|
355 | servicepack.nsh \
|
---|
356 | strstr.nsh \
|
---|
357 | VBoxGuestAdditionsCommon.nsh \
|
---|
358 | VBoxGuestAdditionsExternal.nsh \
|
---|
359 | VBoxGuestAdditionsLog.nsh\
|
---|
360 | VBoxGuestAdditionsNT4.nsh \
|
---|
361 | VBoxGuestAdditionsUninstall.nsh \
|
---|
362 | VBoxGuestAdditionsUninstallOld.nsh \
|
---|
363 | VBoxGuestAdditionsVista.nsh\
|
---|
364 | VBoxGuestAdditionsW2KXP.nsh\
|
---|
365 | winver.nsh \
|
---|
366 | ISO/AUTORUN.INF \
|
---|
367 | ISO/NT3xReadme.txt \
|
---|
368 | \
|
---|
369 | Languages/English.nsh=>Languages/English.nsh \
|
---|
370 | Languages/French.nsh=>Languages/French.nsh \
|
---|
371 | Languages/German.nsh=>Languages/German.nsh
|
---|
372 |
|
---|
373 |
|
---|
374 | #
|
---|
375 | # NT3.x installer.
|
---|
376 | #
|
---|
377 | # Just for fun, this one does not use the CRT more than it really really needs
|
---|
378 | # to. This saves space and avoid compatiblity issues, it also makes for a
|
---|
379 | # fun challenge.
|
---|
380 | #
|
---|
381 | PROGRAMS.win.x86 += VBoxAddInstallNt3x
|
---|
382 | VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3NoCrtExe
|
---|
383 | #VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3Exe
|
---|
384 | VBoxAddInstallNt3x_SOURCES := \
|
---|
385 | VBoxAddInstallNt3x.cpp \
|
---|
386 |
|
---|
387 |
|
---|
388 | VBoxAddInstallNt3x.cpp_DEPS = $(VBOX_SVN_REV_HEADER)
|
---|
389 |
|
---|
390 |
|
---|
391 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|