VirtualBox

source: vbox/trunk/Makefile.kmk@ 34640

Last change on this file since 34640 was 34640, checked in by vboxsync, 14 years ago

fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 67.0 KB
Line 
1# $Id: Makefile.kmk 34640 2010-12-02 18:13:45Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2010 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#
22# Sub-makefiles / Sub-directories.
23#
24if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_TESTSUITE)
25 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
26endif
27include $(PATH_SUB_CURRENT)/src/Makefile.kmk
28
29
30#
31# Clean up global stuff that Config.kmk generates.
32#
33OTHER_CLEAN += \
34 $(VBOX_PACKAGE_HEADER) \
35 $(VBOX_LICENSE_VER_KMK) \
36 $(VBOX_VERSION_MK) \
37 $(VBOX_VERSION_HEADER) \
38 $(VBOX_VERSION_STAMP) \
39 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
40 $(VBOX_SVN_REV_KMK).ts \
41 $(VBOX_SVN_REV_KMK) \
42 $(PATH_OUT)/GCCConfig.kmk
43
44
45if !defined(VBOX_ONLY_ADDITIONS) \
46 && !defined(VBOX_ONLY_DOCS) \
47 && !defined(VBOX_ONLY_EXTPACKS) \
48 && !defined(VBOX_ONLY_TESTSUITE) # -> line 418b ;-)
49
50ifndef VBOX_OSE
51 #
52 # Install the license (and misc non-executable stuff).
53 #
54 INSTALLS += nobin
55 nobin_INST = $(INST_BIN)
56 nobin_MODE = 0644
57 nobin_SOURCES =
58 ifdef VBOX_LICENSE_FILES
59 nobin_SOURCES += \
60 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
61 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
62 endif
63endif # !OSE
64
65
66#
67# Install external binaries (mostly redistributable parts of tools we use).
68# This must be done *before* we build the manual.
69#
70# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
71# and .linux property suffixes.
72#
73INSTALLS += bin
74
75bin_INST = $(INST_BIN)
76
77# The SDL DLLs
78if1of ($(KBUILD_TARGET), win os2)
79 ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
80 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
81 bin_SOURCES += \
82 $(DLL_SDK_LIBSDL_SDL)
83 ifdef VBOX_WITH_SECURELABEL
84 bin_SOURCES += \
85 $(DLL_SDK_LIBSDL_SDLTTF)
86 endif
87 ifeq ($(KBUILD_TARGET),os2)
88 bin_SOURCES += \
89 $(DLL_SDK_LIBSDL_FSLIB)
90 endif
91 endif
92endif
93
94
95# The compiler runtime DLLs.
96ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
97 ifdef VBOX_USE_VCC80
98 include $(KBUILD_PATH)/tools/VCC80X86.kmk
99 include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
100 bin_SOURCES.x86 += \
101 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
102 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
103 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
104 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
105 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
106 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
107 bin_SOURCES.amd64 += \
108 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
109 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
110 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
111 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
112 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
113 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
114 ifeq ($(VBOX_VCC_CRT_TYPE),d)
115 bin_SOURCES.x86 += \
116 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
117 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
118 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
119 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
120 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
121 $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
122 bin_SOURCES.amd64 += \
123 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
124 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
125 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
126 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
127 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
128 $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
129 endif
130 endif
131 ifndef VBOX_USE_VCC80
132 VBOX_INSTALL_VCC70_RT = 1
133 endif
134 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
135 VBOX_INSTALL_VCC70_RT = 1
136 endif
137 ifdef VBOX_INSTALL_VCC70_RT
138 include $(KBUILD_PATH)/tools/VCC70.kmk
139
140 ## @todo Move these defines to VCC70.
141 DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
142 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
143 bin_SOURCES += \
144 $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
145 $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
146 endif
147 ifeq ($(VBOX_VCC_CRT_TYPE),d)
148 DLL_TOOL_VCC70_MSVCR71D ?= $(PATH_TOOL_VCC70)/bin/msvcr71d.dll
149 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71D)),)
150 bin_SOURCES += \
151 $(DLL_TOOL_VCC70_MSVCR71D)=>msvcr71d.dll \
152 $(DLL_TOOL_VCC70_MSVCR71D)=>testcase/msvcr71d.dll
153 endif
154 endif
155
156 DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
157 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
158 bin_SOURCES += \
159 $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
160 $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
161 endif
162 ifeq ($(VBOX_VCC_CRT_TYPE),d)
163 DLL_TOOL_VCC70_MSVCP71D ?= $(PATH_TOOL_VCC70)/bin/msvcp71d.dll
164 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71D)),)
165 bin_SOURCES += \
166 $(DLL_TOOL_VCC70_MSVCP71D)=>msvcp71d.dll \
167 $(DLL_TOOL_VCC70_MSVCP71D)=>testcase/msvcp71d.dll
168 endif
169 endif
170
171 DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
172 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
173 bin_SOURCES += \
174 $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
175 $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
176 endif
177 endif
178endif
179
180
181#
182# Install our Qt DLLs / Shared Objects / Frameworks.
183# Note: The installer fixes the darwin .dylibs when hardening is enabled.
184#
185ifeq ($(KBUILD_TARGET),darwin)
186 INSTALLS += qt4-bin
187 qt4-bin_MODE = 755
188 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
189 qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT4_MOD_NAMES) \
190 ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod))
191 ifdef VBOX_WITH_COCOA_QT
192 qt4-bin_SOURCES += \
193 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
194 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
195 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
196 endif
197 ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)
198 qt4-bin_SOURCES += \
199 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
200 endif
201 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
202 ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod))
203 ifdef VBOX_WITH_COCOA_QT
204 qt4-bin_SYMLINKS += \
205 Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
206 endif
207else
208 ifdef VBOX_WITH_QT4_SUN
209 ifeq ($(KBUILD_TARGET),win)
210 INSTALLS += qt4-bin
211 qt4-bin_MODE = 755
212 qt4-bin_INST = $(INST_BIN)
213 qt4-bin_SOURCES = \
214 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/$(qtmod)4$(SUFF_DLL)) \
215 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL)=>accessible/qtaccessiblewidgets4$(SUFF_DLL)
216 else
217 INSTALLS += qt4-bin
218 qt4-bin_MODE = 755
219 qt4-bin_INST = $(INST_BIN)
220 qt4-bin_SOURCES = \
221 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/lib$(qtmod)$(SUFF_DLL).4) \
222 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
223 endif
224 endif # VBOX_WITH_QT4_SUN
225endif
226
227
228#
229# For building the combined package, just get the additions .ISO
230# once for amd64 to prevent version inconsistences. In all other
231# cases we get the .ISO per target architecture.
232#
233ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
234 ifdef VBOX_WITH_COMBINED_PACKAGE
235 ifeq ($(KBUILD_TARGET_ARCH),amd64)
236 INSTALLS += buildserver-additions
237 endif
238 else
239 INSTALLS += buildserver-additions
240 endif
241
242#
243# Install additions iso from the build server.
244# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
245# been added to kBuild.
246#
247buildserver-additions_INST = $(INST_ADDITIONS_ISO)
248buildserver-additions_MODE = 0644
249buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
250buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
251
252$(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
253 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
254 ifneq ($(KBUILD_HOST),win)
255 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
256 else
257 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
258 endif
259 $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
260 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
261
262 ifeq ($(KBUILD_HOST),win)
263buildserver-additions-affinity-hack:
264 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
265 endif
266endif
267
268
269#
270#
271# Install documentation files (at the moment the .chm) from the build server.
272#
273ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
274## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
275INSTALLS += buildserver-docs
276buildserver-docs_INST = $(INST_BIN)
277buildserver-docs_MODE = 0644
278buildserver-docs_SOURCES = \
279 $(addprefix $(PATH_TARGET)/, \
280 VirtualBox.chm UserManual.pdf \
281 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
282buildserver-docs_CLEANS = \
283 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
284 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
285 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
286 $(addprefix $(PATH_TARGET)/, \
287 VirtualBox.chm UserManual.pdf \
288 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
289
290## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
291include $(KBUILD_PATH)/tools/ZIP.kmk
292
293$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
294$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
295 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
296 $(call MSG_L1,Unpacking documentation)
297 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
298 $(APPEND) -t $@ "done"
299
300$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
301 $(RM) -f $@ [email protected]
302 ifneq ($(KBUILD_HOST),win)
303 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename [email protected]
304 else
305 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
306 endif
307 $(CP) -f [email protected] $@
308 $(RM) -f [email protected]
309## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
310
311 ifeq ($(KBUILD_HOST),win)
312buildserver-documentation-affinity-hack:
313 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
314 endif
315endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
316
317
318 ifdef VBOX_WITH_EFI
319 #
320 # Install EFI firmware image
321 #
322 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
323 #
324 # Either from the build server.
325 #
326 INSTALLS += buildserver-efifw
327 buildserver-efifw_INST = $(INST_BIN)
328 buildserver-efifw_MODE = 0644
329 buildserver-efifw_SOURCES = \
330 $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd=>VBoxEFI32.fd \
331 $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd=>VBoxEFI64.fd
332 buildserver-efifw_CLEANS = \
333 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
334 $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
335 $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd \
336 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
337 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
338 ## @todo rainy day: cleanup the output directory (zip contains lots more)
339
340 ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
341 include $(KBUILD_PATH)/tools/ZIP.kmk
342
343 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
344 +| $$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
345 $$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd: \
346 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
347 $(call MSG_L1,Unpacking EFI firmware)
348 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
349 $(APPEND) -t $@ "done"
350
351 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
352 $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
353 $(RM) -f $@ [email protected]
354 ifneq ($(KBUILD_HOST),win)
355 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename [email protected]
356 else
357 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-efifw-affinity-hack
358 endif
359 $(CP) -f [email protected] $@
360 $(RM) -f [email protected]
361## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
362
363 ifeq ($(KBUILD_HOST),win)
364 buildserver-efifw-affinity-hack:
365 $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
366 endif
367 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
368 #
369 # Or from the local copy
370 #
371 INSTALLS += local-efifw
372 local-efifw_INST = $(INST_BIN)
373 local-efifw_MODE = 0644
374 local-efifw_SOURCES = \
375 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
376 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
377 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
378 endif # VBOX_WITH_EFI
379
380
381#
382# Install staged binaries on platforms where we can't cross
383# compile things.
384#
385ifn1of ($(KBUILD_TARGET), l4 linux win)
386 VBOX_PATH_STAGED ?= .
387
388 # Additions.
389 ifndef VBOX_WITH_LINUX_ADDITIONS
390 ifndef VBOX_WITH_WIN32_ADDITIONS
391 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
392 INSTALLS += staged-additions
393 staged-additions_INST = $(INST_ADDITIONS_ISO)
394 staged-additions_MODE = 0644
395 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
396 endif
397 endif
398 endif
399
400 # guesttool.exe
401 ifndef VBOX_WITH_WIN32_ADDITIONS
402 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
403 INSTALLS += staged-guesttool
404 staged-guesttool_INST = $(INST_BIN)
405 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
406 endif
407 endif
408
409endif
410
411endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
412
413
414ifdef VBOX_ONLY_DOCS
415# It may sound a bit odd, but for preparing the documentation package the
416# doxygen documentation isn't needed and increases the build time a lot.
417docs:
418else # !VBOX_ONLY_DOCS
419#
420# Generate documentation.
421# (This should be converted into a separate pass or merged with an existing one later.)
422#
423 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
424docs: docs.Core
425 endif
426endif # !VBOX_ONLY_DOCS
427
428docs.Core docs.core: $(PATH_TARGET)/docs.Core
429
430
431
432#
433# The core (VMM+REM+Devices+Main) documentation.
434#
435# This includes so much because we wish to have the complete CFGM
436# and GCFGM lists.
437#
438OTHER_CLEAN += \
439 $(PATH_TARGET)/Doxyfile.Core \
440 $(PATH_TARGET)/Doxyfile.Core.dep
441
442VBOX_CORE_DOXYFILE_INPUT_DIRS = \
443 include/iprt \
444 include/iprt/cpp \
445 include/iprt/linux \
446 include/VBox \
447 include/VBox/com \
448 include/VBox/HostServices \
449 include/VBox/GuestHost \
450 include/VBox/HGSMI \
451 src/VBox/VMM \
452 src/VBox/VMM/VMMR0 \
453 src/VBox/VMM/VMMGC \
454 src/VBox/VMM/VMMAll \
455 src/VBox/VMM/PATM \
456 src/VBox/VMM/PATM/VMMR0 \
457 src/VBox/VMM/PATM/VMMGC \
458 src/VBox/VMM/PATM/VMMAll \
459 src/VBox/VMM/VMMSwitcher \
460 src/VBox/Debugger \
461 src/VBox/Devices \
462 src/VBox/Devices/Audio \
463 src/VBox/Devices/Bus \
464 src/VBox/Devices/Graphics \
465 src/VBox/Devices/Graphics/BIOS \
466 src/VBox/Devices/Input \
467 src/VBox/Devices/Networking \
468 src/VBox/Devices/PC \
469 src/VBox/Devices/PC/BIOS \
470 src/VBox/Devices/Parallel \
471 src/VBox/Devices/Serial \
472 src/VBox/Devices/Storage \
473 src/VBox/Devices/USB \
474 src/VBox/Devices/USB/darwin \
475 src/VBox/Devices/USB/linux \
476 src/VBox/Devices/USB/os2 \
477 src/VBox/Devices/USB/solaris \
478 src/VBox/Devices/USB/vrdp \
479 src/VBox/Devices/USB/win32 \
480 src/VBox/Devices/VMMDev \
481 src/VBox/Main/include \
482 src/VBox/Main/include/hgcm \
483 src/VBox/Main \
484 src/VBox/Main/glue \
485 src/VBox/Main/hgcm \
486 src/VBox/Main/webservice \
487 src/VBox/Main/xml \
488 src/VBox/Main/darwin \
489 src/VBox/Main/linux \
490 src/VBox/Main/os2 \
491 src/VBox/Main/solaris \
492 src/VBox/Main/win \
493 src/VBox/Main/xpcom \
494 src/VBox/HostServices \
495 src/VBox/HostServices/SharedClipboard \
496 src/VBox/HostServices/SharedFolders \
497 src/VBox/HostServices/SharedInfoServices \
498 src/VBox/HostServices/SharedOpenGL \
499 src/VBox/HostDrivers/Support \
500 src/VBox/HostDrivers/Support/darwin \
501 src/VBox/HostDrivers/Support/freebsd \
502 src/VBox/HostDrivers/Support/l4 \
503 src/VBox/HostDrivers/Support/linux \
504 src/VBox/HostDrivers/Support/os2 \
505 src/VBox/HostDrivers/Support/solaris \
506 src/VBox/HostDrivers/Support/win \
507 src/VBox/HostDrivers/VBoxNetFlt \
508 src/VBox/HostDrivers/VBoxNetFlt/darwin \
509 src/VBox/HostDrivers/VBoxNetFlt/linux \
510 src/VBox/HostDrivers/VBoxNetFlt/solaris \
511 src/VBox/HostDrivers/VBoxNetFlt/win \
512 src/VBox/HostDrivers/VBoxNetNat \
513 src/VBox/HostDrivers/VBoxNetNat/darwin \
514 src/VBox/HostDrivers/VBoxNetNat/linux \
515 src/VBox/HostDrivers/VBoxNetNat/solaris \
516 src/VBox/HostDrivers/VBoxNetNat/win \
517 src/VBox/HostDrivers/VBoxNetAdp \
518 src/VBox/HostDrivers/VBoxNetAdp/darwin \
519 src/VBox/HostDrivers/VBoxNetAdp/linux \
520 src/VBox/HostDrivers/VBoxNetAdp/solaris \
521 src/VBox/HostDrivers/VBoxNetAdp/win \
522 src/VBox/HostDrivers/VBoxUSB \
523 src/VBox/HostDrivers/VBoxUSB/darwin \
524 src/VBox/HostDrivers/VBoxUSB/os2 \
525 src/VBox/HostDrivers/VBoxUSB/solaris \
526 src/VBox/HostDrivers/VBoxUSB/win \
527 src/VBox/HostDrivers/VBoxUSB/win/Device \
528 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
529 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
530 src/VBox/HostDrivers/VBoxUSB/win/Filter \
531 src/VBox/HostDrivers/VBoxUSB/win/Install \
532 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
533 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
534 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
535 src/VBox/HostDrivers/VBoxUSB/win/usbd \
536 src/VBox/Storage
537
538# These must come first in order to make things look nice.
539VBOX_CORE_DOXYFILE_INPUT_FIRST =\
540 $(PATH_ROOT)/doc/VBox-doc.c \
541 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
542 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
543 $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
544 $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
545 $(PATH_ROOT)/include/VBox/cdefs.h \
546 $(PATH_ROOT)/include/VBox/vmapi.h \
547 $(PATH_ROOT)/include/VBox/vmm.h \
548 $(PATH_ROOT)/include/VBox/cpum.h \
549 $(PATH_ROOT)/include/VBox/mm.h \
550 $(PATH_ROOT)/include/VBox/pgm.h \
551 $(PATH_ROOT)/include/VBox/selm.h \
552 $(PATH_ROOT)/include/VBox/trpm.h \
553 $(PATH_ROOT)/include/VBox/patm.h \
554 $(PATH_ROOT)/include/VBox/dbgf.h \
555 $(PATH_ROOT)/include/VBox/stam.h \
556 $(PATH_ROOT)/include/VBox/em.h \
557 $(PATH_ROOT)/include/VBox/pdm.h \
558 $(PATH_ROOT)/include/VBox/rem.h \
559 $(PATH_ROOT)/include/VBox/iom.h \
560 $(PATH_ROOT)/include/VBox/cfgm.h \
561 $(PATH_ROOT)/include/VBox/tm.h \
562 $(PATH_ROOT)/include/VBox/csam.h \
563 $(PATH_ROOT)/include/VBox/ssm.h \
564 $(PATH_ROOT)/include/VBox/hwaccm.h \
565 $(PATH_ROOT)/include/VBox/hwacc_svm.h \
566 $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
567 \
568 $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
569 $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
570 $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
571 $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
572 $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
573 $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
574 $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
575 $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
576 $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
577 $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
578 $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
579 $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
580 $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
581 $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
582 $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
583 $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
584 $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
585 $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
586 $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
587 \
588 $(PATH_ROOT)/include/VBox/vm.h \
589 \
590 $(PATH_ROOT)/include/VBox/sup.h \
591 $(PATH_ROOT)/include/VBox/vd.h \
592 $(PATH_ROOT)/include/VBox/types.h \
593 $(PATH_ROOT)/include/VBox/err.h \
594 $(PATH_ROOT)/include/VBox/x86.h \
595 $(PATH_ROOT)/include/VBox/cpumdis.h \
596 $(PATH_ROOT)/include/VBox/dbggui.h \
597 $(PATH_ROOT)/include/VBox/dis.h \
598 $(PATH_ROOT)/include/VBox/disopcode.h \
599 $(PATH_ROOT)/include/VBox/intnet.h \
600 $(PATH_ROOT)/include/VBox/settings.h \
601 $(PATH_ROOT)/include/VBox/pci.h \
602 $(PATH_ROOT)/include/VBox/scsi.h \
603 $(PATH_ROOT)/include/VBox/shflsvc.h \
604 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
605 $(PATH_ROOT)/include/VBox/usb.h \
606 $(PATH_ROOT)/include/VBox/vusb.h \
607 \
608 $(PATH_ROOT)/include/VBox/log.h \
609 $(PATH_ROOT)/include/VBox/param.h \
610 $(PATH_ROOT)/include/VBox/version.h
611
612VBOX_CORE_DOXYFILE_INPUT := \
613 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
614 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
615VBOX_CORE_DOXYFILE_INPUT := \
616 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
617 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
618
619# And some some additional stuff.
620VBOX_CORE_DOXYFILE_INPUT += \
621 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
622 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
623
624
625VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
626BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
627
628-include $(PATH_TARGET)/Doxyfile.Core.dep
629
630# Generate the Doxyfile
631$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
632 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
633 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
634 | $$(dir $$@)
635 $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
636 $(CP) -f Doxyfile.Core [email protected]
637 $(APPEND) [email protected]
638 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
639 $(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
640 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
641 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
642 $(APPEND) [email protected]
643 $(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
644 $(APPEND) [email protected]
645 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
646 $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
647 $(APPEND) [email protected]
648 $(MV) -f [email protected] $@
649 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
650 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
651
652# Do the actual job.
653$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
654 $(RM) -f $(PATH_TARGET)/docs.Core
655 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
656 doxygen $(PATH_TARGET)/Doxyfile.Core
657 $(APPEND) $(PATH_TARGET)/docs.Core
658
659
660#
661# Alias for kmk_time. Used by both the additions and testsuite build setups.
662#
663VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
664
665#
666# Common rsync excludes.
667#
668
669##
670# @param 1 os name.
671VBOX_RSYNC_IN_EXCLUDES_FN = \
672 --exclude .svn/ \
673 --exclude doc/Devices/ \
674 --exclude doc/tg/ \
675 --exclude doc/vp/ \
676 --exclude doc/L4VM/ \
677 --exclude tinderclient.log \
678 --exclude out/ \
679 --exclude tools/FetchDir/ \
680 --exclude webtools/ \
681 $(foreach os,darwin freebsd linux solaris os2 win,$(if-expr "$(1)" != "$(os)", \
682 --exclude tools/$(os).x86/ \
683 --exclude tools/$(os).amd64/,))
684
685#
686# Build the additions, all of them.
687#
688# This is currently tailored (hardcoded) for the additions
689# build box. Can make it pretty and configurable later.
690#
691# The fetching must be done in serial fashion, while the building
692# should be more flexible wrt to -jN.
693#
694additions-fetch:
695 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
696 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
697 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
698# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
699 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
700 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
701 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
702 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
703
704
705## @todo Currently combined solaris additions building assumes that amd64 is
706# built first. The windows amd64 additions need some x86 files, so don't change
707# the order of the windows builds. TODO: Split building and packing for these two VMs.
708additions-build: \
709 additions-build-solaris.amd64 \
710 additions-build-solaris.x86 \
711 additions-build-win.x86 \
712 additions-build-win.amd64 \
713 additions-build-os2.x86 \
714 additions-build-linux.x86.combined
715
716VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
717 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
718 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
719 VBOX_SVN_REV=$(VBOX_SVN_REV)
720
721VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
722 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
723 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
724 VBOX_SVN_REV=$(VBOX_SVN_REV)
725
726# Automatically determine the additions build subdir name. Used for figuring
727# out directory names inside the additions building VMs.
728VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
729
730# When building in parallel on a Windows host, make sure we finish the host
731# bit before kicking off any UNIX guest or we'll run into file sharing issues.
732ifeq ($(KBUILD_TARGET),win)
733VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = additions-build-win.x86 additions-build-win.amd64
734else
735VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
736endif
737
738# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
739additions-build-win.amd64: additions-build-win.x86
740ifeq ($(KBUILD_TARGET),win)
741 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
742 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
743else
744 $(call MSG_L1,Building Windows/amd64 additions)
745 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing "
746endif
747
748additions-build-win.x86:
749ifeq ($(KBUILD_TARGET),win)
750 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
751 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
752else
753 $(call MSG_L1,Building Windows/x86 additions)
754 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
755endif
756
757# ASSUMES the 64-bit edition are built first. This also serializes VM access.
758ifeq ($(KBUILD_TARGET),solaris)
759additions-build-solaris.amd64:
760 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
761 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
762
763additions-build-solaris.x86: additions-build-solaris.amd64
764 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
765 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
766
767else
768additions-build-solaris.rsync-into-vm: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
769 $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
770
771additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
772 $(call MSG_L1,Building Solaris/amd64 additions)
773 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing"
774 $(call MSG_L1,Building Solaris/x86 additions)
775 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
776
777additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
778 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
779 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
780
781.NOTPARALLEL: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm
782.PHONY: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm additions-build-solaris.build-it
783
784additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
785additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
786endif
787
788additions-build-os2.x86:
789#ifeq ($(KBUILD_TARGET),os2)
790# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
791# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
792#else
793# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
794#endif
795
796additions-build-linux.amd64: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
797ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
798 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
799 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
800else
801 $(call MSG_L1,Building Linux/amd64 additions)
802 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1"
803endif
804
805additions-build-linux.x86: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
806ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
807 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
808 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
809else
810 $(call MSG_L1,Building Linux/x86 additions)
811 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1"
812endif
813
814# Combined Linux Additions .run package. This depends on the archives
815# created during packing by the archetecture-specific builds.
816additions-build-linux.x86.combined: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST) additions-build-linux.x86 additions-build-linux.amd64
817ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
818 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
819 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
820else
821 $(call MSG_L1,Building Linux/x86 additions)
822 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1"
823endif
824
825
826additions-packing:
827 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
828 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
829 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
830 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
831 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
832 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
833 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
834 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
835 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
836 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
837 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
838 -C src/VBox/Additions \
839 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
840
841.PHONY: \
842 additions-build-win.x86 \
843 additions-build-win.amd64 \
844 additions-build-solaris.amd64 \
845 additions-build-solaris.x86 \
846 additions-build-os2.x86 \
847 additions-build-linux.amd64 \
848 additions-build-linux.x86 \
849 additions-build-linux.x86.combined \
850 additions-packing
851
852
853#
854# Build the extension packs, all of them.
855#
856# This is tailored (hardcoded) for the extension pack build box.
857#
858# The fetching must be done in serial fashion, while the building should be
859# more flexible wrt to -jN.
860#
861extpacks-fetch:
862 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
863 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
864 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
865# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
866# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
867 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
868 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
869# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
870 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
871 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
872 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
873 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
874
875
876extpacks-build: \
877 extpacks-build-win.amd64 \
878 extpacks-build-win.x86 \
879 extpacks-build-solaris.amd64 \
880 extpacks-build-solaris.x86 \
881 extpacks-build-os2.x86 \
882 extpacks-build-linux.amd64 \
883 extpacks-build-linux.x86 \
884 extpacks-build-darwin.amd64 \
885 extpacks-build-darwin.x86 \
886 extpacks-build-freebsd.amd64 \
887 extpacks-build-freebsd.x86
888
889VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
890 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
891 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
892 VBOX_SVN_REV=$(VBOX_SVN_REV)
893
894VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
895 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
896 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
897 VBOX_SVN_REV=$(VBOX_SVN_REV)
898
899# Automatically determine the extpack build subdir name. Used for figuring out
900# directory names inside the extension pack building VMs.
901VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
902
903# When building in parallel on a Windows host, make sure we finish the host
904# bit before kicking off any UNIX guest or we'll run into file sharing issues.
905ifeq ($(KBUILD_TARGET),win)
906VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
907else
908VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
909endif
910
911extpacks-build-win.amd64:
912ifeq ($(KBUILD_TARGET),win)
913 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
914else
915 $(call MSG_L1,Building Windows/amd64 extension packs)
916 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
917endif
918
919extpacks-build-win.x86:
920ifeq ($(KBUILD_TARGET),win)
921 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
922else
923 $(call MSG_L1,Building Windows/x86 extension packs)
924 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all"
925endif
926
927ifeq ($(KBUILD_TARGET),solaris)
928extpacks-build-solaris.amd64:
929 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
930
931extpacks-build-solaris.x86: extpacks-build-solaris.amd64
932 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
933
934else
935# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
936extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
937 $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded $(call VBOX_RSYNC_IN_EXCLUDES_FN,solaris) . 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
938
939extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
940 $(call MSG_L1,Building Solaris/amd64 extension packs)
941 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
942 $(call MSG_L1,Building Solaris/x86 extension packs)
943 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
944
945extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
946 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
947 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
948
949.NOTPARALLEL: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm
950.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
951
952extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
953extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm
954endif
955
956extpacks-build-os2.x86:
957#ifeq ($(KBUILD_TARGET),os2)
958# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
959#else
960# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) "
961#endif
962
963extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
964ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
965 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
966else
967 $(call MSG_L1,Building Linux/amd64 extension packs)
968 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
969endif
970
971extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
972ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
973 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
974else
975 $(call MSG_L1,Building Linux/x86 extension packs)
976 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
977endif
978
979extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
980#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
981# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
982#else
983# $(call MSG_L1,Building FreeBSD/amd64 extension packs)
984# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
985#endif
986
987extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
988#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
989# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
990#else
991# $(call MSG_L1,Building FreeBSD/x86 extension packs)
992# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
993#endif
994
995extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
996ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
997 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
998else
999 $(call MSG_L1,Building Darwin/amd64 extension packs)
1000 $(VBOX_KMK_TIME) rsync -a -v --delete --delete-excluded $(call VBOX_RSYNC_IN_EXCLUDES_FN,darwin) . 192.168.27.15:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1001 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
1002 $(VBOX_KMK_TIME) rsync -a -v --delete 192.168.27.15:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1003endif
1004
1005extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1006ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1007 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1008else
1009 $(call MSG_L1,Building Darwin/x86 extension packs)
1010 $(VBOX_KMK_TIME) rsync -a -v --delete --delete-excluded $(call VBOX_RSYNC_IN_EXCLUDES_FN,darwin) . 192.168.27.5:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1011 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
1012 $(VBOX_KMK_TIME) rsync -a -v --delete 192.168.27.5:/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1013endif
1014
1015
1016extpacks-packing:
1017 + $(KMK) VBOX_ONLY_EXTPACKS=1 \
1018 VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.x86 linux.amd64 linux.x86 solaris.amd64 solaris.x86 win.amd64 win.x86" \
1019 packing
1020# +++ freebsd.amd64 freebsd.x86 os2.x86 ^^^
1021
1022.PHONY: \
1023 extpacks-build-win.x86 \
1024 extpacks-build-win.amd64 \
1025 extpacks-build-solaris.amd64 \
1026 extpacks-build-solaris.x86 \
1027 extpacks-build-os2.x86 \
1028 extpacks-build-linux.amd64 \
1029 extpacks-build-linux.x86 \
1030 extpacks-build-freebsd.amd64 \
1031 extpacks-build-freebsd.x86 \
1032 extpacks-build-darwin.amd64 \
1033 extpacks-build-darwin.x86 \
1034 extpacks-packing
1035
1036
1037#
1038# Build the test suite, all of it.
1039#
1040# This is currently tailored (hardcoded) for the additions build box just like
1041# the additions build above, which it in fact is a copy of.
1042#
1043testsuite-fetch:
1044 + $(KMK) -C tools fetch VBOX_ONLY_TESTSUITE=1
1045 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1046 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
1047# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1048# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_TESTSUITE=1
1049 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1050 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
1051# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_TESTSUITE=1
1052 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1053 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
1054 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
1055 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
1056
1057
1058testsuite-build: \
1059 testsuite-build-solaris.amd64 \
1060 testsuite-build-solaris.x86 \
1061 testsuite-build-win.x86 \
1062 testsuite-build-win.amd64 \
1063 testsuite-build-os2.x86 \
1064 testsuite-build-linux.amd64 \
1065 testsuite-build-linux.x86 \
1066 testsuite-build-freebsd.amd64 \
1067 testsuite-build-freebsd.x86 \
1068 testsuite-build-darwin.amd64 \
1069 testsuite-build-darwin.x86
1070
1071VBOX_TESTSUITE_BUILD.amd64 = VBOX_ONLY_TESTSUITE=1 \
1072 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1073 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
1074 VBOX_SVN_REV=$(VBOX_SVN_REV)
1075
1076VBOX_TESTSUITE_BUILD.x86 = VBOX_ONLY_TESTSUITE=1 \
1077 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
1078 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
1079 VBOX_SVN_REV=$(VBOX_SVN_REV)
1080
1081# Automatically determine the testsuite build subdir name. Used for figuring
1082# out directory names inside the test suite building VMs.
1083VBOX_TESTSUITE_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1084
1085# When building in parallel on a Windows host, make sure we finish the host
1086# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1087ifeq ($(KBUILD_TARGET),win)
1088VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST = testsuite-build-win.x86 testsuite-build-win.amd64
1089else
1090VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST =
1091endif
1092
1093# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1094testsuite-build-win.amd64: testsuite-build-win.x86
1095ifeq ($(KBUILD_TARGET),win)
1096 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1097else
1098 $(call MSG_L1,Building Windows/amd64 testsuite)
1099 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.amd64) all "
1100endif
1101
1102testsuite-build-win.x86:
1103ifeq ($(KBUILD_TARGET),win)
1104 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1105else
1106 $(call MSG_L1,Building Windows/x86 testsuite)
1107 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1108endif
1109
1110ifeq ($(KBUILD_TARGET),solaris)
1111testsuite-build-solaris.amd64:
1112 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1113
1114testsuite-build-solaris.x86:
1115 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1116
1117else
1118testsuite-build-solaris.rsync-into-vm: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1119 $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)
1120
1121testsuite-build-solaris.build-it: testsuite-build-solaris.rsync-into-vm
1122 $(call MSG_L1,Building Solaris/amd64 testsuite)
1123 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1124 $(call MSG_L1,Building Solaris/x86 testsuite)
1125 $(VBOX_KMK_TIME) ssh [email protected] " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all "
1126
1127testsuite-build-solaris.rsync-out-of-vm: testsuite-build-solaris.build-it
1128 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1129 $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1130
1131.NOTPARALLEL: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm
1132.PHONY: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm testsuite-build-solaris.build-it
1133
1134testsuite-build-solaris.amd64: testsuite-build-solaris.rsync-out-of-vm
1135testsuite-build-solaris.x86: testsuite-build-solaris.rsync-out-of-vm
1136endif
1137
1138testsuite-build-os2.x86:
1139#ifeq ($(KBUILD_TARGET),os2)
1140# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1141#else
1142# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) "
1143#endif
1144
1145testsuite-build-linux.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1146ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
1147 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1148else
1149 $(call MSG_L1,Building Linux/amd64 testsuite)
1150 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1151endif
1152
1153testsuite-build-linux.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1154ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
1155 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1156else
1157 $(call MSG_L1,Building Linux/x86 testsuite)
1158 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1159endif
1160
1161testsuite-build-freebsd.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1162#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1163# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1164#else
1165# $(call MSG_L1,Building freebsd/amd64 testsuite)
1166# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1167#endif
1168
1169testsuite-build-freebsd.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1170#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1171# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1172#else
1173# $(call MSG_L1,Building freebsd/x86 testsuite)
1174# $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1175#endif
1176
1177testsuite-build-darwin.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1178ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1179 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1180else
1181 $(call MSG_L1,Building darwin/amd64 testsuite)
1182 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
1183endif
1184
1185testsuite-build-darwin.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
1186ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1187 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
1188else
1189 $(call MSG_L1,Building darwin/x86 testsuite)
1190 $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
1191endif
1192
1193
1194testsuite-packing:
1195 + $(KMK) VBOX_ONLY_TESTSUITE=1 \
1196 VBOX_WITH_TESTSUITE_PACKING.darwin.amd64=1 \
1197 VBOX_WITH_TESTSUITE_PACKING.darwin.x86=2 \
1198 VBOX_WITH_TESTSUITE_PACKING.freebsd.amd64= \
1199 VBOX_WITH_TESTSUITE_PACKING.freebsd.x86= \
1200 VBOX_WITH_TESTSUITE_PACKING.linux.amd64=1 \
1201 VBOX_WITH_TESTSUITE_PACKING.linux.x86=1 \
1202 VBOX_WITH_TESTSUITE_PACKING.os2.x86= \
1203 VBOX_WITH_TESTSUITE_PACKING.solaris.amd64=1 \
1204 VBOX_WITH_TESTSUITE_PACKING.solaris.x86=1 \
1205 VBOX_WITH_TESTSUITE_PACKING.win.amd64=1 \
1206 VBOX_WITH_TESTSUITE_PACKING.win.x86=1 \
1207 -C src/VBox/Testsuite \
1208 $(PATH_OUT)/VBoxTestSuite.zip
1209
1210.PHONY: \
1211 testsuite-build-win.x86 \
1212 testsuite-build-win.amd64 \
1213 testsuite-build-solaris.amd64 \
1214 testsuite-build-solaris.x86 \
1215 testsuite-build-os2.x86 \
1216 testsuite-build-linux.amd64 \
1217 testsuite-build-linux.x86 \
1218 testsuite-build-freebsd.amd64 \
1219 testsuite-build-freebsd.x86 \
1220 testsuite-build-darwin.amd64 \
1221 testsuite-build-darwin.x86 \
1222 testsuite-packing
1223
1224
1225#
1226# Build the EFI firmware, all of it.
1227#
1228# Mainly hooks right now, maybe we need them later.
1229#
1230efi-fetch:
1231
1232efi-build: $(VBOX_VERSION_HEADER)
1233 $(PATH_ROOT)/webtools/tinderbox/client/efi-build.sh
1234
1235efi-packing:
1236
1237#
1238# Generate VirtualBox-OSE-x.x.x.tar.bz2 (OSE) tarballs for distribution
1239# - includes kBuild
1240# - must be executed on an OSE checkout
1241#
1242
1243# the path where to store the tarball
1244TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
1245# the root directory inside the tarball
1246TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1247# the name of the tarball file
1248TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
1249snapshot-ose:
1250 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
1251 @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1252 echo; \
1253 echo "Found RDP stuff, refused to build OSE tarball!"; \
1254 echo; \
1255 exit 1; \
1256 fi; \
1257 if [ -z "$(VBOX_OSE)" ]; then \
1258 echo; \
1259 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
1260 echo; \
1261 exit 1; \
1262 fi
1263 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
1264 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
1265 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
1266 $(QUIET)tar -cjh --owner 0 --group 0 --totals \
1267 --exclude=.svn \
1268 --exclude=$(TARBALLROOT)/out \
1269 --exclude=$(TARBALLROOT)/env.sh \
1270 --exclude=$(TARBALLROOT)/configure.log \
1271 --exclude=$(TARBALLROOT)/build.log \
1272 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
1273 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
1274 --exclude=$(TARBALLROOT)/prebuild \
1275 -C $(TARBALLPATH) \
1276 -f $(TARBALLPATH)/$(TARBALLNAME) \
1277 $(TARBALLROOT)
1278 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
1279
1280
1281#
1282# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
1283# - includes kBuild
1284# - must be executed on an PUEL checkout
1285#
1286
1287# the path where to store the zip archive
1288ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1289# the root directory inside the zip archive
1290ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1291# the name of the zip archive
1292ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1293snapshot-puel:
1294 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1295 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1296 echo; \
1297 echo "Did not find RDP stuff, is this an OSE branch?"; \
1298 echo; \
1299 exit 1; \
1300 fi
1301 @if [ -z "$(PASSWORD)" ]; then \
1302 echo; \
1303 echo "Please specify a password with PASSWORD=..."; \
1304 echo; \
1305 exit 1; \
1306 fi
1307 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1308 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1309 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1310 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1311 $(QUIET)(cd $(ZIPPATH); 7z a \
1312 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1313 -xr!.svn \
1314 -i!$(ZIPROOT)/Config.kmk \
1315 -i!$(ZIPROOT)/Doxyfile.Core \
1316 -i!$(ZIPROOT)/Makefile.kmk \
1317 -i!$(ZIPROOT)/configure \
1318 -i!$(ZIPROOT)/configure.vbs \
1319 -i!$(ZIPROOT)/doc \
1320 -i!$(ZIPROOT)/include \
1321 -i!$(ZIPROOT)/kBuild \
1322 -i!$(ZIPROOT)/src \
1323 -i!$(ZIPROOT)/tools/env.sh \
1324 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1325 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1326 -x!$(ZIPROOT)/doc/Devices \
1327 -x!$(ZIPROOT)/doc/\*pdf \
1328 -x!$(ZIPROOT)/doc/L4VM \
1329 -x!$(ZIPROOT)/doc/VMM \
1330 -x!$(ZIPROOT)/doc/licenses_old \
1331 -x!$(ZIPROOT)/doc/manual/de_DE \
1332 -x!$(ZIPROOT)/doc/manual/fr_FR \
1333 -x!$(ZIPROOT)/src/tests \
1334 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1335 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1336 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1337 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1338 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1339 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1340 $(ZIPPATH)/$(ZIPNAME))
1341 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1342
1343
1344#
1345# Generate ALL the rules.
1346#
1347include $(KBUILD_PATH)/subfooter.kmk
1348
1349
1350#
1351# Generate x86.mac and err.mac.
1352#
1353incs:
1354 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
1355 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
1356 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
1357 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
1358 $(SED) -f include/VBox/various.sed --output include/VBox/x86.mac include/VBox/x86.h
1359 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
1360 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
1361
1362
1363#
1364# Generate Visual SlickEdit tagging #defines.
1365#
1366vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
1367 $(RM) -f -- $@ [email protected] [email protected] [email protected]
1368 $(APPEND) [email protected] '// autogenerated'
1369 @$(APPEND) [email protected] '#define IN_SLICKEDIT '
1370 @$(APPEND) [email protected] '#define RT_C_DECLS_BEGIN '
1371 @$(APPEND) [email protected] '#define RT_C_DECLS_END '
1372 @$(APPEND) [email protected] '#define RT_NO_THROW '
1373 @$(APPEND) [email protected] '#define RT_THROW(type) throw(type)'
1374
1375 @$(APPEND) [email protected] '#define ATL_NO_VTABLE '
1376 @$(APPEND) [email protected] '#define BEGIN_COM_MAP(a) '
1377 @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY(a) '
1378 @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY2(a,b) '
1379 @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY3(a,b,c) '
1380 @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY4(a,b,c,d) '
1381 @$(APPEND) [email protected] '#define END_COM_MAP(a) '
1382
1383 @$(APPEND) [email protected] '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
1384 @$(APPEND) [email protected] '#define COMGETTER(n) n '
1385 @$(APPEND) [email protected] '#define COMSETTER(n) n '
1386 @$(APPEND) [email protected] '#define ComSafeArrayIn(t,a) t a[] '
1387 @$(APPEND) [email protected] '#define ComSafeArrayOut(t,a) t * a[] '
1388 @$(APPEND) [email protected] '#define DECLARE_CLASSFACTORY(a) '
1389 @$(APPEND) [email protected] '#define DECLARE_CLASSFACTORY_SINGLETON(a) '
1390 @$(APPEND) [email protected] '#define DECLARE_REGISTRY_RESOURCEID(a) '
1391 @$(APPEND) [email protected] '#define DECLARE_NOT_AGGREGATABLE(a) '
1392 @$(APPEND) [email protected] '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
1393 @$(APPEND) [email protected] '#define DECLARE_EMPTY_CTOR_DTOR(a) a(); ~a();'
1394 @$(APPEND) [email protected] '#define DEFINE_EMPTY_CTOR_DTOR(a) a::a() {} a::~a() {}'
1395 @$(APPEND) [email protected] '#define NS_DECL_ISUPPORTS '
1396 @$(APPEND) [email protected] '#define NS_IMETHOD virtual nsresult '
1397 @$(APPEND) [email protected] '#define NS_IMETHOD_(type) virtual type '
1398 @$(APPEND) [email protected] '#define NS_IMETHODIMP nsresult '
1399 @$(APPEND) [email protected] '#define NS_IMETHODIMP_(type) type '
1400 @$(APPEND) [email protected] '#define PARSERS_EXPORT '
1401if1of ($(KBUILD_HOST),win)
1402 @$(APPEND) [email protected] '#define COM_STRUCT_OR_CLASS(I) struct I '
1403 @$(APPEND) [email protected] '#define STDMETHOD(m) virtual HRESULT m '
1404 @$(APPEND) [email protected] '#define STDMETHOD_(type,m) virtual type m '
1405 @$(APPEND) [email protected] '#define STDMETHODIMP HRESULT '
1406 @$(APPEND) [email protected] '#define STDMETHODIMP_(type) type '
1407else
1408 @$(APPEND) [email protected] '#define COM_STRUCT_OR_CLASS(I) class I '
1409 @$(APPEND) [email protected] '#define STDMETHOD(m) virtual nsresult m '
1410 @$(APPEND) [email protected] '#define STDMETHOD_(type,m) virtual type m '
1411 @$(APPEND) [email protected] '#define STDMETHODIMP nsresult '
1412 @$(APPEND) [email protected] '#define STDMETHODIMP_(type) type '
1413endif
1414 @$(APPEND) [email protected] '#define VBOX_SCRIPTABLE(a) public a '
1415 @$(APPEND) [email protected] '#define VBOX_SCRIPTABLE_IMPL(a) '
1416 @$(APPEND) [email protected] '#define VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(a) '
1417
1418 @$(APPEND) [email protected] '#define CTX_SUFF(var) var##R3 '
1419 @$(APPEND) [email protected] '#define CTXAllSUFF(var) var##R3 '
1420 @$(APPEND) [email protected] '#define CTXSUFF(var) var##HC '
1421 @$(APPEND) [email protected] '#define OTHERCTXSUFF(var) var##GC '
1422 @$(APPEND) [email protected] '#define CTXALLMID(first, last) first##R3##last '
1423 @$(APPEND) [email protected] '#define CTXMID(first, last) first##HC##last '
1424 @$(APPEND) [email protected] '#define OTHERCTXMID(first, last) first##GC##last '
1425 @$(APPEND) [email protected] '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
1426 @$(APPEND) [email protected] '#define RCTYPE(RCType, HCType) RCType '
1427 @$(APPEND) [email protected] '#define GCTYPE(GCType, HCType) GCType '
1428 @$(APPEND) [email protected] '#define RCPTRTYPE(RCType) RCType '
1429 @$(APPEND) [email protected] '#define GCPTRTYPE(GCType) GCType '
1430 @$(APPEND) [email protected] '#define HCPTRTYPE(HCType) HCType '
1431 @$(APPEND) [email protected] '#define R3R0PTRTYPE(HCType) HCType '
1432 @$(APPEND) [email protected] '#define R0PTRTYPE(R3Type) R3Type '
1433 @$(APPEND) [email protected] '#define R3PTRTYPE(R0Type) R0Type '
1434 @$(APPEND) [email protected] '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
1435 @$(APPEND) [email protected] '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
1436 @$(APPEND) [email protected] '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
1437 @$(APPEND) [email protected] '#define RTCALL'
1438 @$(APPEND) [email protected] '#define DECLINLINE(type) inline type '
1439 @$(APPEND) [email protected] '#define DECL_FORCE_INLINE(type) inline type '
1440 @$(APPEND) [email protected] '#define DECL_INVALID(type) type '
1441
1442 @$(APPEND) [email protected] '#define PDMDEVINSINT_DECLARED 1'
1443 @$(APPEND) [email protected] '#define VBOX_WITH_HGCM 1'
1444 @$(APPEND) [email protected] '#define VBOXCALL'
1445
1446 @$(APPEND) [email protected] '#define PGM_CTX(a,b) b'
1447 @$(APPEND) [email protected] '#define PGM_CTX3(a,b,c) c'
1448 @$(APPEND) [email protected] '#define PGM_GST_NAME(name) PGM_GST_NAME_AMD64(name)'
1449 @$(APPEND) [email protected] '#define PGM_GST_NAME_REAL(name) PGM_CTX3(name)'
1450 @$(APPEND) [email protected] '#define PGM_GST_NAME_PROT(name) PGM_CTX3(pgm,GstProt,name)'
1451 @$(APPEND) [email protected] '#define PGM_GST_NAME_32BIT(name) PGM_CTX3(pgm,Gst32Bit,name)'
1452 @$(APPEND) [email protected] '#define PGM_GST_NAME_PAE(name) PGM_CTX3(pgm,GstPAE,name)'
1453 @$(APPEND) [email protected] '#define PGM_GST_NAME_AMD64(name) PGM_CTX3(pgm,GstAMD64,name)'
1454 @$(APPEND) [email protected] '#define PGM_GST_DECL(type, name) type PGM_GST_NAME(name)'
1455 @$(APPEND) [email protected] '#define PGM_SHW_NAME(name) PGM_GST_NAME_AMD64(name)'
1456 @$(APPEND) [email protected] '#define PGM_SHW_NAME_32BIT(name) PGM_CTX3(pgm,Shw32Bit,name)'
1457 @$(APPEND) [email protected] '#define PGM_SHW_NAME_PAE(name) PGM_CTX3(pgm,ShwPAE,name)'
1458 @$(APPEND) [email protected] '#define PGM_SHW_NAME_AMD64(name) PGM_CTX3(pgm,ShwAMD64,name)'
1459 @$(APPEND) [email protected] '#define PGM_SHW_NAME_NESTED(name) PGM_CTX3(pgm,ShwNested,name)'
1460 @$(APPEND) [email protected] '#define PGM_SHW_NAME_EPT(name) PGM_CTX3(pgm,ShwEPT,name)'
1461 @$(APPEND) [email protected] '#define PGM_SHW_DECL(type, name) type PGM_SHW_NAME(name)'
1462 @$(APPEND) [email protected] '#define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_AMD64(name)'
1463 @$(APPEND) [email protected] '#define PGM_BTH_NAME_32BIT_REAL(name) PGM_CTX3(pgm,Bth,name)'
1464 @$(APPEND) [email protected] '#define PGM_BTH_NAME_32BIT_PROT(name) PGM_CTX3(pgm,Bth,name)'
1465 @$(APPEND) [email protected] '#define PGM_BTH_NAME_32BIT_32BIT(name) PGM_CTX3(pgm,Bth,name)'
1466 @$(APPEND) [email protected] '#define PGM_BTH_NAME_PAE_REAL(name) PGM_CTX3(pgm,Bth,name)'
1467 @$(APPEND) [email protected] '#define PGM_BTH_NAME_PAE_PROT(name) PGM_CTX3(pgm,Bth,name)'
1468 @$(APPEND) [email protected] '#define PGM_BTH_NAME_PAE_32BIT(name) PGM_CTX3(pgm,Bth,name)'
1469 @$(APPEND) [email protected] '#define PGM_BTH_NAME_PAE_PAE(name) PGM_CTX3(pgm,Bth,name)'
1470 @$(APPEND) [email protected] '#define PGM_BTH_NAME_AMD64_PROT(name) PGM_CTX3(pgm,Bth,name)'
1471 @$(APPEND) [email protected] '#define PGM_BTH_NAME_AMD64_AMD64(name) PGM_CTX3(pgm,Bth,name)'
1472 @$(APPEND) [email protected] '#define PGM_BTH_NAME_NESTED_REAL(name) PGM_CTX3(pgm,Bth,name)'
1473 @$(APPEND) [email protected] '#define PGM_BTH_NAME_NESTED_PROT(name) PGM_CTX3(pgm,Bth,name)'
1474 @$(APPEND) [email protected] '#define PGM_BTH_NAME_NESTED_32BIT(name) PGM_CTX3(pgm,Bth,name)'
1475 @$(APPEND) [email protected] '#define PGM_BTH_NAME_NESTED_PAE(name) PGM_CTX3(pgm,Bth,name)'
1476 @$(APPEND) [email protected] '#define PGM_BTH_NAME_NESTED_AMD64(name) PGM_CTX3(pgm,Bth,name)'
1477 @$(APPEND) [email protected] '#define PGM_BTH_NAME_EPT_REAL(name) PGM_CTX3(pgm,Bth,name)'
1478 @$(APPEND) [email protected] '#define PGM_BTH_NAME_EPT_PROT(name) PGM_CTX3(pgm,Bth,name)'
1479 @$(APPEND) [email protected] '#define PGM_BTH_NAME_EPT_32BIT(name) PGM_CTX3(pgm,Bth,name)'
1480 @$(APPEND) [email protected] '#define PGM_BTH_NAME_EPT_PAE(name) PGM_CTX3(pgm,Bth,name)'
1481 @$(APPEND) [email protected] '#define PGM_BTH_NAME_EPT_AMD64(name) PGM_CTX3(pgm,Bth,name)'
1482 @$(APPEND) [email protected] '#define PGM_BTH_DECL(type, name) type PGM_BTH_NAME(name)'
1483
1484 $(SED) -e '/__cdecl/d' \
1485 -e '/^ *# *define.*DECL/!d' \
1486 -e '/DECLS/d' \
1487 -e '/DECLARE_CLS_/d' \
1488 -e '/_SRC_POS_DECL/d' \
1489 -e '/declspec/d' \
1490 -e '/__attribute__/d' \
1491 -e 's/# */#/g' \
1492 -e 's/ */ /g' \
1493 -e '/(type) DECLEXPORT/d' \
1494 -e '/ DECLEXPORT_CLASS/d' \
1495 -e 's/ *VBOXCALL//' \
1496 -e 's/ *RTCALL//' \
1497 -e 's/(type) DECLIMPORT(type)/(type) type/' \
1498 -e '/ DECLASM(type) type/d' \
1499 -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
1500 -e '/define *DECLINLINE(type)/d' \
1501 -e '/define *DECL_FORCE_INLINE(type)/d' \
1502 -e '/ *DECL_INVALID(/d' \
1503 -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
1504 \
1505 --append [email protected] \
1506 $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
1507 include/iprt/cdefs.h
1508 $(CAT_EXT) [email protected] \
1509 | $(SED_EXT) -e 's/_/\x1F/g' -e 's/(/\x1E/g' -e 's/[[:space:]][[:space:]]*/\x1C/g' \
1510 | sort $(if-expr "$(KBUILD_TARGET)" == "win",,-f) \
1511 | $(SED_EXT) -e 's/\x1F/_/g' -e 's/\x1E/(/g' -e 's/\x1C/ /g' \
1512 | $(SED_EXT) -e 's/$$/\n/' --output [email protected]
1513 $(MV) -f [email protected] $@
1514 $(RM) -f [email protected] [email protected] [email protected]
1515ifeq ($(KBUILD_HOST),win)
1516 @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
1517else ifeq ($(KBUILD_HOST),darwin)
1518 @$(ECHO) "TODO: Merge ./vslick.h with your ~/Library/Application\ Support/SlickEdit/x.y.z/unxcpp.h file."
1519else
1520 @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
1521endif
1522
1523
1524#
1525# Add fetching of the tools to the 'up[date][2]' targets.
1526#
1527up update up2 update2::
1528ifndef VBOX_OSE
1529 +$(MAKE) -C tools fetch
1530else
1531 $(MAKE) -C tools -f Makefile-ose.kmk fetch
1532endif
1533
1534
1535
1536#
1537# Aliases for building the SDK.
1538#
1539.NOTPARALLEL: sdk sdk-fetch
1540sdk:
1541 + $(KMK) VBOX_ONLY_SDK=1 \
1542 pass_bldprogs pass_others pass_installs pass_packing
1543
1544sdk-fetch:
1545 + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
1546
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