VirtualBox

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

最後變更 在這個檔案從96503是 96453,由 vboxsync 提交於 3 年 前

IPRT,Add: Build fixes related to VBoxAddInstallNt3x and VBoxGuestInstNT. bugref:10261

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 15.2 KB
 
1# $Id: Makefile.kmk 96453 2022-08-24 10:15:07Z 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.alldomusa.eu.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# Include Sub-Makefiles.
32include $(PATH_SUB_CURRENT)/Loader/Makefile.kmk
33include $(PATH_SUB_CURRENT)/InstallHelper/Makefile.kmk
34
35# Globals
36VBOX_PATH_WIN_ADD_INS_SRC := $(PATH_SUB_CURRENT)
37VBOX_PATH_ADDITIONS.win.x86 := $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/bin/additions
38VBOX_WITH_GUEST_INSTALL_HELPER := 1 # Use our guest install helper DLL.
39
40## @todo VBOX_WIN_ADD_INS_OUT_DIR := $(PATH_TARGET)/Additions/Installer/win
41
42
43PROGRAMS += VBoxDrvInst
44VBoxDrvInst_TEMPLATE= VBoxGuestR3Exe
45VBoxDrvInst_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE
46VBoxDrvInst_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
47ifdef VBOX_WITH_WDDM
48 VBoxDrvInst_DEFS += VBOX_WITH_WDDM
49endif
50VBoxDrvInst_DEPS = $(VBOX_SVN_REV_KMK)
51VBoxDrvInst_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST) VBOX_WIN_NEWDEV
52VBoxDrvInst_INCS = ../include
53VBoxDrvInst_LIBS = \
54 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/setupapi.lib
55VBoxDrvInst_SOURCES = \
56 VBoxDrvInst.cpp \
57 VBoxDrvInst.rc
58
59PROGRAMS += VBoxGuestDrvInst
60VBoxGuestDrvInst_TEMPLATE := VBoxGuestR3Exe
61VBoxGuestDrvInst_DEFS := _WIN32_WINNT=0x0400
62VBoxGuestDrvInst_BLD_TRG_ARCH := x86
63VBoxGuestDrvInst_SOURCES := \
64 VBoxGuestDrvInst.cpp \
65 VBoxGuestDrvInst.rc
66
67PROGRAMS += RegCleanup
68RegCleanup_TEMPLATE := VBoxGuestR3Exe
69RegCleanup_BLD_TRG_ARCH := x86
70RegCleanup_DEFS := _WIN32_WINNT=0x0400
71RegCleanup_SOURCES := \
72 RegCleanup.cpp \
73 RegCleanup.rc
74
75
76#
77# The installer.
78#
79PACKING += $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
80OTHER_CLEAN += \
81 $(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe
82
83## @todo r=andy Rename DRIVER_FILES to INST_FILES or something, as those files are not strictly driver-related files.
84
85DRIVER_FILES := \
86 $(PATH_STAGE_BIN)/additions/VBoxGuestDrvInst.exe \
87 $(PATH_STAGE_BIN)/additions/RegCleanup.exe \
88 $(PATH_STAGE_BIN)/additions/VBoxMouse.sys \
89 $(PATH_STAGE_BIN)/additions/VBoxGuest.sys \
90 $(PATH_STAGE_BIN)/additions/VBoxVideo.sys \
91 $(PATH_STAGE_BIN)/additions/VBoxDisp.dll \
92 $(PATH_STAGE_BIN)/additions/VBoxSF.sys \
93 $(PATH_STAGE_BIN)/additions/VBoxMRXNP.dll \
94 $(PATH_STAGE_BIN)/additions/VBoxTray.exe \
95 $(PATH_STAGE_BIN)/additions/VBoxControl.exe \
96 $(PATH_STAGE_BIN)/additions/VBoxService.exe
97ifeq ($(KBUILD_TARGET_ARCH),amd64)
98 # Also include 32-bit network provider DLLs on 64-bit guests to enable
99 # running 32-bit apps which use that.
100 DRIVER_FILES += \
101 $(PATH_STAGE_BIN)/additions/VBoxMRXNP-x86.dll
102endif
103ifeq ($(KBUILD_TARGET_ARCH),x86)
104DRIVER_FILES += \
105 $(PATH_STAGE_BIN)/additions/VBoxMouseNT.sys \
106 $(PATH_STAGE_BIN)/additions/VBoxSFW2K.sys
107endif
108DRIVER_FILES += \
109 $(PATH_STAGE_BIN)/additions/VBoxVideo.inf \
110 $(PATH_STAGE_BIN)/additions/VBoxGuest.inf \
111 $(PATH_STAGE_BIN)/additions/VBoxMouse.inf
112ifdef VBOX_SIGN_ADDITIONS
113DRIVER_FILES += \
114 $(PATH_STAGE_BIN)/additions/VBoxVideo.cat \
115 $(PATH_STAGE_BIN)/additions/VBoxVideo-PreW10.cat \
116 $(PATH_STAGE_BIN)/additions/VBoxGuest.cat \
117 $(PATH_STAGE_BIN)/additions/VBoxGuest-PreW10.cat \
118 $(PATH_STAGE_BIN)/additions/VBoxMouse.cat \
119 $(PATH_STAGE_BIN)/additions/VBoxMouse-PreW10.cat
120endif
121ifdef VBOX_WITH_WDDM
122DRIVER_FILES += \
123 $(PATH_STAGE_BIN)/additions/VBoxWddm.sys \
124 $(PATH_STAGE_BIN)/additions/VBoxWddm.inf \
125 $(PATH_STAGE_BIN)/additions/VBoxDispD3D.dll
126 ifdef VBOX_WITH_WDDM_DX
127DRIVER_FILES += \
128 $(PATH_STAGE_BIN)/additions/VBoxDX.dll
129 endif
130 ifdef VBOX_WITH_MESA3D
131DRIVER_FILES += \
132 $(PATH_STAGE_BIN)/additions/VBoxNine.dll \
133 $(PATH_STAGE_BIN)/additions/VBoxSVGA.dll \
134 $(PATH_STAGE_BIN)/additions/VBoxGL.dll
135 endif
136 ifdef VBOX_SIGN_ADDITIONS
137DRIVER_FILES += \
138 $(PATH_STAGE_BIN)/additions/VBoxWddm.cat \
139 $(PATH_STAGE_BIN)/additions/VBoxWddm-PreW10.cat
140 endif
141 ifeq ($(KBUILD_TARGET_ARCH),amd64)
142DRIVER_FILES += \
143 $(PATH_STAGE_BIN)/additions/VBoxDispD3D-x86.dll
144 ifdef VBOX_WITH_WDDM_DX
145DRIVER_FILES += \
146 $(PATH_STAGE_BIN)/additions/VBoxDX-x86.dll
147 endif
148 ifdef VBOX_WITH_MESA3D
149DRIVER_FILES += \
150 $(PATH_STAGE_BIN)/additions/VBoxNine-x86.dll \
151 $(PATH_STAGE_BIN)/additions/VBoxSVGA-x86.dll \
152 $(PATH_STAGE_BIN)/additions/VBoxGL-x86.dll
153 endif
154 endif
155endif
156
157ifdef env.VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST
158 DRIVER_FILES += \
159 $(PATH_STAGE_BIN)/additions/VBoxAudioTest.exe
160endif
161
162VB_WIN_ADD_NSIS_ENV := \
163 -E 'PATH_OUT=$(subst /,\,$(PATH_OUT))' \
164 -E 'PATH_TARGET=$(subst /,\,$(PATH_TARGET))' \
165 -E 'PATH_TARGET_X86=$(subst /,\,$(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/obj)' \
166 -E 'VBOX_PATH_ADDITIONS_WIN_X86=$(subst /,\,$(VBOX_PATH_ADDITIONS.win.x86))' \
167 -E 'VBOX_PATH_DIFX=$(subst /,\,$(VBOX_PATH_DIFX))' \
168 -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
169 -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
170 -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
171 -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
172 -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
173 -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
174 -E 'VBOX_VERSION_MAJOR=$(VBOX_VERSION_MAJOR)' \
175 -E 'VBOX_VERSION_MINOR=$(VBOX_VERSION_MINOR)' \
176 -E 'VBOX_VERSION_BUILD=$(VBOX_VERSION_BUILD)' \
177 -E 'VBOX_SVN_REV=$(VBOX_SVN_REV)' \
178 -E 'VBOX_WINDOWS_ADDITIONS_ICON_FILE=$(subst /,\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))' \
179 -E 'VBOX_NSIS_ICON_FILE=$(subst /,\,$(VBOX_NSIS_ICON_FILE))' \
180 -E 'VBOX_WITH_GUEST_INSTALL_HELPER=$(if $(VBOX_WITH_GUEST_INSTALL_HELPER),1,0)' \
181 -E 'VBOX_WITH_GUEST_INSTALLER_UNICODE=$(if $(VBOX_WITH_GUEST_INSTALLER_UNICODE),1,0)' \
182 -E 'VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST=$(if $(VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST),1,0)' \
183 -E 'VBOX_WITH_LICENSE_INSTALL_RTF=$(if $(VBOX_BRAND_LICENSE_RTF),1,0)' \
184 -E 'VBOX_WITH_WDDM=$(if $(VBOX_WITH_WDDM),1,0)' \
185 -E 'VBOX_WITH_WDDM_DX=$(if $(VBOX_WITH_WDDM_DX),1,0)' \
186 -E 'VBOX_WITH_MESA3D=$(if $(VBOX_WITH_MESA3D),1,0)' \
187 -E 'VBOX_BRAND_WIN_ADD_INST_DLGBMP=$(subst /,\,$(VBOX_BRAND_WIN_ADD_INST_DLGBMP))' \
188 -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \
189 $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),-E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(VBOX_BRAND_$(lang)_LICENSE_RTF)') \
190 -E 'KBUILD_TYPE=$(KBUILD_TYPE)' \
191 -E 'KBUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)'
192
193ifdef VBOX_SIGNING_MODE
194#
195# This is a hack to sign the uninstaller.
196# See http://nsis.sourceforge.net/Signing_an_Uninstaller for more details.
197#
198OTHER_CLEAN += $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe
199
200$(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe: \
201 $(PATH_SUB_CURRENT)/VBoxGuestAdditions.nsi \
202 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsCommon.nsh \
203 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsExternal.nsh \
204 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsLog.nsh \
205 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstall.nsh \
206 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstallOld.nsh \
207 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsW2KXP.nsh \
208 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsVista.nsh \
209 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsNT4.nsh \
210 $(DRIVER_FILES) \
211 $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
212 $(VBOX_NSIS_ICON_FILE) \
213 $(VBOX_VERSION_STAMP) \
214 $$(VBoxDrvInst_1_STAGE_TARGET) \
215 | $$(dir $$@)
216 $(call MSG_L1,Creating $@, from $<)
217 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_WIN_ADD_INS_SRC) \
218 $(VB_WIN_ADD_NSIS_ENV) \
219 -- $(EXEC_X86_WIN32) $(VBOX_PATH_NSIS)/makensis.exe /NOCD /V2 \
220 $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
221 $(if $(VBOX_WITH_VBOX_LEGACY_TS_CA),'/DVBOX_WITH_VBOX_LEGACY_TS_CA=1') \
222 $(if $(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_INSTALLER_ADD_LANGUAGES=1') \
223 $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \
224 '/DUNINSTALLER_ONLY=1' \
225 '$(subst /,\,$<)'
226
227OTHER_CLEAN += $(PATH_TARGET)/uninst.exe
228$(PATH_TARGET)/uninst.exe: $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe | $$(dir $$@)
229 $(call MSG_L1,Creating $@, from $<)
230 $(QUIET)$(RM) -f $@
231 - $<
232 $(TEST) -f $@
233 $(call VBOX_SIGN_FILE_FN,$@)
234endif
235
236ifdef VBOX_GA_ATTESTATION_SIGNING
237VBOX_DRIVERS_PACK_NAME := VBoxDrivers-$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)r$(VBOX_SVN_REV)-$(KBUILD_TARGET_ARCH).cab
238VBOX_SIGNED_DRIVERS_ZIP_NAME := $(VBOX_DRIVERS_PACK_NAME).Signed.zip
239include $(KBUILD_PATH)/tools/ZIP.kmk
240ifndef TOOL_ZIP_PACK
241 TOOL_ZIP_PACK = zip
242endif
243endif
244
245$(PATH_STAGE_BIN)/additions/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH).exe: \
246 $(PATH_SUB_CURRENT)/VBoxGuestAdditions.nsi \
247 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsCommon.nsh \
248 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsExternal.nsh \
249 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsLog.nsh \
250 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstall.nsh \
251 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsUninstallOld.nsh \
252 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsW2KXP.nsh \
253 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsVista.nsh \
254 $(PATH_SUB_CURRENT)/VBoxGuestAdditionsNT4.nsh \
255 $(DRIVER_FILES) \
256 $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) \
257 $(VBOX_NSIS_ICON_FILE) \
258 $(if $(VBOX_SIGNING_MODE),$(PATH_TARGET)/uninst.exe) \
259 $(if $(VBOX_GA_ATTESTATION_SIGNING),$(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME)) \
260 $(VBOX_VERSION_STAMP) \
261 $$(VBoxDrvInst_1_STAGE_TARGET)
262 $(call MSG_L1,Creating $@, from $<)
263ifdef VBOX_GA_ATTESTATION_SIGNING
264 $(TOOL_ZIP_UNPACK) -oj $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME) -d $(PATH_STAGE_BIN)/additions/
265endif
266 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_WIN_ADD_INS_SRC) \
267 $(VB_WIN_ADD_NSIS_ENV) \
268 -- $(EXEC_X86_WIN32) $(VBOX_PATH_NSIS)/makensis.exe /NOCD /V2 \
269 $(if $(VBOX_SIGN_ADDITIONS),'/DVBOX_SIGN_ADDITIONS=1') \
270 $(if $(VBOX_SIGNING_MODE),'/DEXTERNAL_UNINSTALLER=1') \
271 $(if $(VBOX_WITH_VBOX_LEGACY_TS_CA),'/DVBOX_WITH_VBOX_LEGACY_TS_CA=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
277ifdef 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,$@)
293endif #VBOX_GA_ATTESTATION_SIGNING
294
295#
296# Repackaging scripts and files.
297#
298INSTALLS += RePackScriptsAdd
299RePackScriptsAdd_TEMPLATE = DUMMY
300RePackScriptsAdd_INST = repackadd/
301RePackScriptsAdd_INSTTYPE = stage
302RePackScriptsAdd_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
308RePackScriptsAdd_CLEAN = \
309 $(RePackScriptsAdd_0_OUTDIR)/sign-ev.cmd
310
311ifndef VBOX_OSE
312RePackScriptsAdd_SOURCES += \
313 $(RePackScriptsAdd_0_OUTDIR)/Combined-0-Additions.cmd \
314 $(RePackScriptsAdd_0_OUTDIR)/Combined-2-SignAdditions.cmd \
315 ../../../Installer/win/Scripts/sign-attestation.sh
316endif
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)
320ifndef 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)
323endif
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#
341INSTALLS += RePackScriptsAddResources
342RePackScriptsAddResources_TEMPLATE = DUMMY
343RePackScriptsAddResources_INST = repackadd/resources/
344RePackScriptsAddResources_INSTTYPE = stage
345RePackScriptsAddResources_DIRS = Languages
346RePackScriptsAddResources_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-3.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#
381PROGRAMS.win.x86 += VBoxAddInstallNt3x
382ifdef VBOX_WITH_NOCRT_STATIC
383## @todo noCRT: the result is much too big. Got rid of log.cpp, but still pretty big. Work on reducing it.
384VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3Exe
385else
386VBoxAddInstallNt3x_TEMPLATE := VBoxGuestR3NoCrtExe
387endif
388VBoxAddInstallNt3x_SOURCES := VBoxAddInstallNt3x.cpp
389VBoxAddInstallNt3x.cpp_DEPS = $(VBOX_SVN_REV_HEADER)
390
391
392include $(FILE_KBUILD_SUB_FOOTER)
393
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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