VirtualBox

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

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

Add/NT/Inst: Cleaned up VBoxGuestDrvInst so it compiles cleanly in no-CRT mode. Ditched the UNICODE / tchar fun in favor adding missing 'W's. Switch the build config to always build x86 version, since this is another NT4 helper. bugref:10261

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.7 KB
Line 
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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Include Sub-Makefiles.
22include $(PATH_SUB_CURRENT)/Loader/Makefile.kmk
23include $(PATH_SUB_CURRENT)/InstallHelper/Makefile.kmk
24
25# Globals
26VBOX_PATH_WIN_ADD_INS_SRC := $(PATH_SUB_CURRENT)
27VBOX_PATH_ADDITIONS.win.x86 := $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/bin/additions
28VBOX_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
33PROGRAMS += VBoxDrvInst
34VBoxDrvInst_TEMPLATE= VBoxGuestR3Exe
35VBoxDrvInst_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE
36VBoxDrvInst_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
37ifdef VBOX_WITH_WDDM
38 VBoxDrvInst_DEFS += VBOX_WITH_WDDM
39endif
40VBoxDrvInst_DEPS = $(VBOX_SVN_REV_KMK)
41VBoxDrvInst_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST) VBOX_WIN_NEWDEV
42VBoxDrvInst_LIBS = \
43 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/setupapi.lib
44VBoxDrvInst_SOURCES = \
45 VBoxDrvInst.cpp \
46 VBoxDrvInst.rc
47
48PROGRAMS += VBoxGuestDrvInst
49VBoxGuestDrvInst_TEMPLATE := VBoxGuestR3Exe
50VBoxGuestDrvInst_DEFS := _WIN32_WINNT=0x0400
51VBoxGuestDrvInst_BLD_TRG_ARCH := x86
52VBoxGuestDrvInst_SOURCES := \
53 VBoxGuestDrvInst.cpp \
54 VBoxGuestDrvInst.rc
55
56PROGRAMS += RegCleanup
57RegCleanup_TEMPLATE := VBoxGuestR3Exe
58RegCleanup_BLD_TRG_ARCH := x86
59RegCleanup_DEFS := _WIN32_WINNT=0x0400
60RegCleanup_SOURCES := \
61 RegCleanup.cpp \
62 RegCleanup.rc
63
64
65#
66# The installer.
67#
68PACKING += $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
69OTHER_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
74DRIVER_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
86ifeq ($(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
91endif
92ifeq ($(KBUILD_TARGET_ARCH),x86)
93DRIVER_FILES += \
94 $(PATH_STAGE_BIN)/additions/VBoxMouseNT.sys \
95 $(PATH_STAGE_BIN)/additions/VBoxSFW2K.sys
96endif
97DRIVER_FILES += \
98 $(PATH_STAGE_BIN)/additions/VBoxVideo.inf \
99 $(PATH_STAGE_BIN)/additions/VBoxGuest.inf \
100 $(PATH_STAGE_BIN)/additions/VBoxMouse.inf
101ifdef VBOX_SIGN_ADDITIONS
102DRIVER_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
109endif
110ifdef VBOX_WITH_WDDM
111DRIVER_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
116DRIVER_FILES += \
117 $(PATH_STAGE_BIN)/additions/VBoxDX.dll
118 endif
119 ifdef VBOX_WITH_MESA3D
120DRIVER_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
126DRIVER_FILES += \
127 $(PATH_STAGE_BIN)/additions/VBoxWddm.cat \
128 $(PATH_STAGE_BIN)/additions/VBoxWddm-PreW10.cat
129 endif
130 ifeq ($(KBUILD_TARGET_ARCH),amd64)
131DRIVER_FILES += \
132 $(PATH_STAGE_BIN)/additions/VBoxDispD3D-x86.dll
133 ifdef VBOX_WITH_WDDM_DX
134DRIVER_FILES += \
135 $(PATH_STAGE_BIN)/additions/VBoxDX-x86.dll
136 endif
137 ifdef VBOX_WITH_MESA3D
138DRIVER_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
144endif
145
146ifdef env.VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST
147 DRIVER_FILES += \
148 $(PATH_STAGE_BIN)/additions/VBoxAudioTest.exe
149endif
150
151VB_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
182ifdef 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#
187OTHER_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
216OTHER_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,$@)
223endif
224
225ifdef VBOX_GA_ATTESTATION_SIGNING
226VBOX_DRIVERS_PACK_NAME := VBoxDrivers-$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)r$(VBOX_SVN_REV)-$(KBUILD_TARGET_ARCH).cab
227VBOX_SIGNED_DRIVERS_ZIP_NAME := $(VBOX_DRIVERS_PACK_NAME).Signed.zip
228include $(KBUILD_PATH)/tools/ZIP.kmk
229ifndef TOOL_ZIP_PACK
230 TOOL_ZIP_PACK = zip
231endif
232endif
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 $<)
252ifdef VBOX_GA_ATTESTATION_SIGNING
253 $(TOOL_ZIP_UNPACK) -oj $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME) -d $(PATH_STAGE_BIN)/additions/
254endif
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
266ifdef 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,$@)
282endif #VBOX_GA_ATTESTATION_SIGNING
283
284#
285# Repackaging scripts and files.
286#
287INSTALLS += RePackScriptsAdd
288RePackScriptsAdd_TEMPLATE = DUMMY
289RePackScriptsAdd_INST = repackadd/
290RePackScriptsAdd_INSTTYPE = stage
291RePackScriptsAdd_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
297RePackScriptsAdd_CLEAN = \
298 $(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd
299
300ifndef VBOX_OSE
301RePackScriptsAdd_SOURCES += \
302 $(RePackScriptsAdd_0_OUTDIR)/Combined-0-Additions.cmd \
303 $(RePackScriptsAdd_0_OUTDIR)/Combined-2-SignAdditions.cmd \
304 ../../../Installer/win/Scripts/sign-attestation.sh
305endif
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)
309ifndef 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)
312endif
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#
330INSTALLS += RePackScriptsAddResources
331RePackScriptsAddResources_TEMPLATE = DUMMY
332RePackScriptsAddResources_INST = repackadd/resources/
333RePackScriptsAddResources_INSTTYPE = stage
334RePackScriptsAddResources_DIRS = Languages
335RePackScriptsAddResources_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#
370PROGRAMS.win.x86 += VBoxAddInstallNt3x
371VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3NoCrtExe
372#VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3Exe
373VBoxAddInstallNt3x_SOURCES := \
374 VBoxAddInstallNt3x.cpp \
375
376
377VBoxAddInstallNt3x.cpp_DEPS = $(VBOX_SVN_REV_HEADER)
378
379
380include $(FILE_KBUILD_SUB_FOOTER)
381
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