VirtualBox

source: vbox/trunk/Makefile.kmk@ 34509

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

VBOX_ONLY_EXTPACKS preparations.

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