VirtualBox

source: vbox/trunk/Makefile.kmk@ 88322

Last change on this file since 88322 was 88316, checked in by vboxsync, 4 years ago

Makefile.kmk, Installer/darwin: bugref:9532: macOS: Missed qsqlite plugin.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 91.0 KB
Line 
1# $Id: Makefile.kmk 88316 2021-03-29 17:11:36Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2020 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#
24ifndef VBOX_ONLY_ROOT_MAKEFILE
25 if (defined(VBOX_WITH_DOCS) || defined(VBOX_WITH_MAIN)) \
26 && (!defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK)) \
27 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
28 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
29 endif
30 include $(PATH_SUB_CURRENT)/src/Makefile.kmk
31 ifdef VBOX_WITH_INCLUDE_SYNTAX_CHECKING
32 include $(PATH_SUB_CURRENT)/include/Makefile.kmk
33 endif
34endif
35
36#
37# Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
38# from the build server), and it's not really worth the effort of dragging in
39#q this tool only if absolutely needed.
40#
41## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
42include $(KBUILD_PATH)/tools/ZIP.kmk
43ifndef TOOL_ZIP_PACK
44 TOOL_ZIP_PACK = zip
45endif
46
47
48## @todo split up this file!
49
50
51#
52# Clean up global stuff that Config.kmk generates.
53#
54OTHER_CLEAN += \
55 $(VBOX_PACKAGE_HEADER) \
56 $(VBOX_LICENSE_VER_KMK) \
57 $(VBOX_VERSION_MK) \
58 $(VBOX_VERSION_HEADER) \
59 $(VBOX_VERSION_STAMP) \
60 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
61 $(VBOX_SVN_REV_KMK).ts \
62 $(VBOX_SVN_REV_KMK) \
63 $(PATH_OUT)/DynamicConfig.kmk
64
65
66if !defined(VBOX_ONLY_ADDITIONS) \
67 && !defined(VBOX_ONLY_DOCS) \
68 && !defined(VBOX_ONLY_EXTPACKS) \
69 && !defined(VBOX_ONLY_VALIDATIONKIT) # -> line 426b ;-)
70
71 if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
72 #
73 # Install the license (and misc non-executable stuff).
74 #
75 INSTALLS += InstallLicenseFiles
76 InstallLicenseFiles_INST = $(INST_BIN)
77 InstallLicenseFiles_MODE = 0644
78 InstallLicenseFiles_SOURCES =
79 InstallLicenseFiles_SOURCES += \
80 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
81 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
82 endif
83
84
85#
86# Install external binaries (mostly redistributable parts of tools we use).
87#
88# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
89# and .linux property suffixes.
90#
91INSTALLS += InstallExternalLibs
92
93InstallExternalLibs_INST = $(INST_BIN)
94
95# The SDL DLLs
96if1of ($(KBUILD_TARGET), win os2)
97 ifdef VBOX_WITH_VBOXSDL
98 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
99 InstallExternalLibs_SOURCES += \
100 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDL))
101 ifdef VBOX_WITH_SECURELABEL
102 InstallExternalLibs_SOURCES += \
103 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDLTTF))
104 endif
105 ifeq ($(KBUILD_TARGET),os2)
106 InstallExternalLibs_SOURCES += \
107 $(DLL_SDK_LIBSDL_FSLIB)
108 endif
109 endif
110endif
111
112
113# The compiler runtime DLLs.
114ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
115 ifndef TOOL_$(VBOX_VCC_TOOL)
116 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk
117 endif
118 ifndef TOOL_$(VBOX_VCC_TOOL_STEM)X86
119 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL_STEM)X86.kmk
120 endif
121 ifdef PATH_TOOL_$(VBOX_VCC_TOOL_STEM)_REDIST
122InstallExternalLibs_SOURCES += \
123 $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT)/), \
124 $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CPP_DLLS)) \
125 ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll)) \
126 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll))=>testcase/$(qnotdir ,$(redistdll)))
127 ifdef VBOX_WITH_32_ON_64_MAIN_API
128InstallExternalLibs_SOURCES += \
129 $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT)/), \
130 $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CPP_DLLS)) \
131 ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll),x86)=>x86/$(qnotdir ,$(redistdll)))
132 endif
133 ifeq ($(VBOX_VCC_CRT_TYPE),d)
134InstallExternalLibs_SOURCES += \
135 $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL)_REDIST_DEBUG_CRT)/), \
136 $(addsuffix d.dll,$(basename $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CPP_DLLS)))) \
137 ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll)) \
138 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll))=>testcase/$(qnotdir ,$(redistdll)))
139 ifdef VBOX_WITH_32_ON_64_MAIN_API
140InstallExternalLibs_SOURCES += \
141 $(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_DEBUG_CRT)/), \
142 $(addsuffix d.dll,$(basename $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CPP_DLLS)))) \
143 ,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll),x86)=>x86/$(qnotdir ,$(redistdll)))
144 endif
145 endif
146 else
147VBOX_VCC_REDIR_BASE := Microsoft.VC$(substr $(VBOX_VCC_TOOL),4,3)
148VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
149VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).CRT
150VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).DebugCRT
151VBOX_PATH_VCC_REDIST_CRT_X86 = $(VBOX_PATH_VCC_REDIST)/x86/$(VBOX_VCC_REDIR_BASE).CRT
152VBOX_PATH_VCC_REDIST_CRT_DBG_X86 = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/x86/$(VBOX_VCC_REDIR_BASE).DebugCRT
153
154InstallExternalLibs_SOURCES += \
155 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
156 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
157 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
158 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
159 ifdef VBOX_WITH_32_ON_64_MAIN_API
160InstallExternalLibs_SOURCES += \
161 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
162 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
163 endif
164 ifeq ($(VBOX_VCC_CRT_TYPE),d)
165InstallExternalLibs_SOURCES += \
166 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
167 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
168 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
169 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
170 ifdef VBOX_WITH_32_ON_64_MAIN_API
171InstallExternalLibs_SOURCES += \
172 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
173 $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
174 endif
175 endif
176 endif
177endif
178
179#
180# Install our Qt DLLs / Shared Objects / Frameworks.
181# Note: The installer fixes the darwin .dylibs when hardening is enabled.
182# Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
183# https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
184# the Info.plist file goes into Resources.
185#
186ifeq ($(KBUILD_TARGET),darwin)
187 include $(KBUILD_PATH)/units/qt5.kmk
188 ifdef VBOX_WITH_QTGUI
189 INSTALLS += qt5-bin
190 endif
191 qt5-bin_INST = $(INST_VIRTUALBOX)Contents/
192 qt5-bin_EXEC_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
193 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/5/$(qtmod))
194 qt5-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
195 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/5/Resources/Info.plist)
196 ifdef VBOX_WITH_QT_DSYMS
197 qt5-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
198 $(PATH_SDK_QT5_LIB)/$(qtmod).framework.dSYM/Contents/Info.plist=>Frameworks/$(qtmod).framework.dSYM/Contents/Info.plist \
199 $(PATH_SDK_QT5_LIB)/$(qtmod).framework.dSYM/Contents/Resources/DWARF/$(qtmod)=>Frameworks/$(qtmod).framework.dSYM/Contents/Resources/DWARF/$(qtmod))
200 endif
201 qt5-bin_EXEC_SOURCES += \
202 $(PATH_SDK_QT5)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \
203 $(PATH_SDK_QT5)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \
204 $(PATH_SDK_QT5)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL) \
205 $(PATH_SDK_QT5)/plugins/sqldrivers/libqsqlite$(SUFF_DLL)=>plugins/sqldrivers/libqsqlite$(SUFF_DLL) \
206 $(PATH_SDK_QT5)/plugins/styles/libqmacstyle$(SUFF_DLL)=>plugins/styles/libqmacstyle$(SUFF_DLL)
207 ifdef VBOX_WITH_QT_DSYMS
208 qt5-bin_SOURCES += $(foreach qtplat, libqcocoa libqminimal libqoffscreen, \
209 $(PATH_SDK_QT5)/plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist \
210 $(PATH_SDK_QT5)/plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)$(SUFF_DLL)=>plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)$(SUFF_DLL))
211 qt5-bin_SOURCES += $(foreach qtsqldrv, libqsqlite, \
212 $(PATH_SDK_QT5)/plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist \
213 $(PATH_SDK_QT5)/plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)$(SUFF_DLL)=>plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)$(SUFF_DLL))
214 qt5-bin_SOURCES += $(foreach qtstyl, libqmacstyle, \
215 $(PATH_SDK_QT5)/plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist \
216 $(PATH_SDK_QT5)/plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)$(SUFF_DLL)=>plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)$(SUFF_DLL))
217 endif
218 qt5-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
219 Frameworks/$(qtmod).framework/Versions/Current=>5 \
220 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/5/$(qtmod) \
221 Frameworks/$(qtmod).framework/Resources=>Versions/5/Resources)
222 qt5-bin_INSTALLER = $(INSTALL) $(if $(uid),-o $(uid)) $(if $(gid),-g $(gid)) $(if $(mode),-m $(mode)) $(4) -- \
223 "$(1)" "$(2)" $(if-expr "$(source_type_prefix)" == "EXEC_" \
224 ,$(NLTAB)install_name_tool \
225 $(if-expr "$(suffix $2)" == "", -id "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Framework,@rpath)/$(notdir $(2)).framework/Version/5/$(notdir $(2))",) \
226 $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
227 $(foreach prefix, @executable_path/../Frameworks/ $(VBOX_PATH_QT)/Frameworks/ $(PATH_SDK_QT5)/, \
228 -change "$(prefix)$(qtmod).framework/Versions/5/$(qtmod)" \
229 "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Frameworks,@rpath)/$(qtmod).framework/Versions/5/$(qtmod)" ) ) \
230 "$(2)",) # HACK ALERT! Using $(source_type_prefix) to detect EXEC_SOURCES.
231else # win x11
232 if1of ($(KBUILD_TARGET), linux solaris)
233 ifndef VBOX_ONLY_BUILD
234 ifneq ($(VBOX_GCC_VERSION_CXX),)
235 if $(VBOX_GCC_VERSION_CXX) < 40400
236 $(error gcc >= 4.4 required when compiling against Qt5!)
237 endif
238 endif
239 endif
240 endif
241 if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
242 include $(KBUILD_PATH)/units/qt5.kmk
243 ifeq ($(KBUILD_TARGET),win)
244 ifdef VBOX_WITH_QTGUI
245 INSTALLS += qt5-bin
246 endif
247 qt5-bin_MODE = 755
248 qt5-bin_INST = $(INST_BIN)
249 qt5-bin_SOURCES = \
250 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL)))
251 qt5-bin_SOURCES += \
252 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(SUFF_DLL))=>platforms/qwindows$(SUFF_DLL) \
253 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(SUFF_DLL))=>platforms/qminimal$(SUFF_DLL) \
254 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(SUFF_DLL))=>platforms/qoffscreen$(SUFF_DLL) \
255 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/sqldrivers/qsqlite$(SUFF_DLL))=>sqldrivers/qsqlite$(SUFF_DLL) \
256 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/styles/qwindowsvistastyle$(SUFF_DLL))=>styles/qwindowsvistastyle$(SUFF_DLL)
257 ifdef VBOX_WITH_QT_PDBS
258 qt5-bin_SOURCES += \
259 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb))
260 endif # VBOX_WITH_QT_PDBS
261 else # x11
262 ifdef VBOX_WITH_QTGUI
263 INSTALLS += qt5-bin
264 endif
265 qt5-bin_MODE = 755
266 qt5-bin_INST = $(INST_BIN)
267 ifdef VBOX_WITH_HARDENING
268 # The wildcards are necessary to install the libs instead of the symlinks
269 qt5-bin_SOURCES = \
270 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*)=>lib$(qtmod).so.5) \
271 $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib))
272 ifneq ($(KBUILD_TARGET),solaris)
273 qt5-bin_SOURCES += \
274 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(wildcard $(VBOX_PATH_QT_LIB)/legacy/$(lib).*.*)=>legacy/$(lib))
275 endif # solaris
276 else # !VBOX_WITH_HARDENING
277 # For non-hardened builds we need to remove the RUNPATH. This stuff is
278 # ugly but we need to prevent kBuild from hard-linking otherwise we
279 # (indirectly) change the binaries in tools
280 ifneq ($(KBUILD_TARGET),solaris)
281 QT5_VERSION = 5.15.2
282 else
283 QT5_VERSION = 5.6.2
284 endif
285 qt5-bin_SOURCES = \
286 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)=>lib$(qtmod).so.5) \
287 $(foreach lib,$(VBOX_QT_PLUGINS),$(qt5-bin_0_OUTDIR)/$(lib)=>$(lib))
288 ifneq ($(KBUILD_TARGET),solaris)
289 qt5-bin_SOURCES += \
290 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(qt5-bin_0_OUTDIR)/$(lib)=>legacy/$(lib))
291 endif # solaris
292
293$(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)): \
294 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt5-bin_0_OUTDIR)/
295 $(call MSG_INST_FILE,$^,$@)
296 $(QUIET)$(CP) $^ $@
297 $(QUIET)chrpath --replace "\$$ORIGIN" $@
298
299 ifn1of ($(KBUILD_TARGET),solaris linux)
300$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
301 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
302 $(call MSG_INST_FILE,$^,$@)
303 $(QUIET)$(MKDIR) -p $(@D)
304 $(QUIET)$(CP) $^ $@
305 $(QUIET)chrpath --delete $@
306 endif # !solaris and !linux
307
308 # @todo For solaris and some linuxes dlopen fails to navigate executable rpath to dependent libraries,
309 # so add explicit rpath for libqxcb.so, find better solution later.
310 if1of ($(KBUILD_TARGET),solaris linux)
311$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
312 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/
313 $(call MSG_INST_FILE,$^,$@)
314 $(QUIET)$(MKDIR) -p $(@D)
315 $(QUIET)$(CP) $^ $@
316 $(QUIET)chrpath --replace "\$$ORIGIN/../../" $@
317 endif # solaris linux
318
319$(foreach lib,$(VBOX_QT_LEGACY_LIBS),$$(qt5-bin_0_OUTDIR)/$(lib)): \
320 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/legacy/% | $$(qt5-bin_0_OUTDIR)/
321 $(call MSG_INST_FILE,$^,$@)
322 $(QUIET)$(CP) $^ $@
323 $(QUIET)chrpath --delete $@
324
325 endif # !VBOX_WITH_HARDENING
326 endif # x11
327 endif # VBOX_WITH_ORACLE_QT || VBOX_WITH_QT_PAYLOAD
328endif # win x11
329
330
331#
332# Install additions iso from the build server if configured to do so.
333#
334# Note! For building the combined package, just get the additions .ISO
335# once for amd64 to prevent version inconsistences. In all other
336# cases we get the .ISO per target architecture.
337#
338if defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
339 && ( !defined(VBOX_WITH_COMBINED_PACKAGE) \
340 || "$(KBUILD_TARGET_ARCH)" == "amd64" )
341 INSTALLS += buildserver-additions
342 buildserver-additions_INST = $(INST_ADDITIONS_ISO)
343 buildserver-additions_MODE = 0644
344 buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
345 buildserver-additions_CLEANS = \
346 $(buildserver-additions_0_OUTDIR)/unpacked.ts \
347 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
348 $(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
349 $(PATH_TARGET)/VBoxGuestAdditions.iso
350
351 $$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
352 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
353 $(call MSG_L1,Unpacking additions archive)
354 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
355 $(TOUCH) -c -- $(PATH_TARGET)/VBoxGuestAdditions.iso
356 $(APPEND) -t $@ "done"
357
358 $$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
359 $(RM) -f -- "$@" "[email protected]"
360 $(SHELL) $(KBUILD_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
361 $(MV) -f -- "[email protected]" "$@"
362
363endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER unless win.x86+combined
364
365
366#
367# Install documentation files (at the moment the .chm) from the build server.
368#
369ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
370## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
371INSTALLS += buildserver-docs
372buildserver-docs_INST = $(INST_BIN)
373buildserver-docs_MODE = 0644
374buildserver-docs_SOURCES = \
375 $(addprefix $(PATH_TARGET)/, \
376 $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),VirtualBox.chm,) \
377 UserManual.pdf \
378 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
379 $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),VirtualBox_$(f).chm,) \
380 UserManual_$(f).pdf))
381buildserver-docs_CLEANS = \
382 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
383 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
384 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
385 $(addprefix $(PATH_TARGET)/, \
386 VirtualBox.chm UserManual.pdf \
387 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
388
389$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| \
390 $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),$(PATH_TARGET)/VirtualBox.chm,) \
391 $(PATH_TARGET)/UserManual.pdf \
392$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
393 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
394 $(call MSG_L1,Unpacking documentation)
395 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
396 $(TOUCH) -c -- \
397 $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),$(PATH_TARGET)/VirtualBox.chm,) \
398 $(PATH_TARGET)/UserManual.pdf \
399 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
400 $(if-expr defined(VBOX_WITH_DOCS_CHM_PACKING),$(PATH_TARGET)/VirtualBox_$(f).chm,) \
401 $(PATH_TARGET)/UserManual_$(f).pdf)
402 $(APPEND) -t $@ "done"
403
404$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
405 $(RM) -f -- "$@" "[email protected]"
406 $(SHELL) $(KBUILD_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
407 $(MV) -f -- "[email protected]" "$@"
408
409endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
410
411
412 ifdef VBOX_WITH_EFI
413 #
414 # Install EFI firmware image
415 #
416 ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
417 #
418 # Either from the build server.
419 #
420 ifndef VBOX_EFI_FIRMWARE_EFI_MODULES_KMK_INCLUDED
421 include $(PATH_ROOT)/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
422 endif
423 INSTALLS += buildserver-efifw
424 buildserver-efifw_INST = $(INST_BIN)
425 buildserver-efifw_MODE = 0644
426 buildserver-efifw_SOURCES = \
427 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
428 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
429 buildserver-efifw_CLEANS = \
430 $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
431 $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
432 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
433 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
434 $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp \
435 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb))
436
437 INSTALLS += buildserver-efifw-dbg-amd64
438 buildserver-efifw-dbg-amd64_INST = $(INST_VBOXDBG_SYMS)amd64/
439 buildserver-efifw-dbg-amd64_MODE = 0644
440 buildserver-efifw-dbg-amd64_SOURCES = \
441 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/amd64/$(mod).pdb)
442
443 INSTALLS += buildserver-efifw-dbg-x86
444 buildserver-efifw-dbg-x86_INST = $(INST_VBOXDBG_SYMS)x86/
445 buildserver-efifw-dbg-x86_MODE = 0644
446 buildserver-efifw-dbg-x86_SOURCES = \
447 $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$(buildserver-efifw_0_OUTDIR)/x86/$(mod).pdb)
448
449 $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
450 +| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
451 $$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
452 $(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb)): \
453 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
454 $(call MSG_L1,Unpacking EFI firmware)
455 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
456 $(foreach arch, amd64 x86, \
457 $(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
458 $(foreach mod,$(VBOX_EFI_MODULES_FLAT) \
459 ,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
460 $(TOUCH) -c -- $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
461 $(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
462 $(APPEND) -t $@ "done"
463
464 $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
465 $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
466 $(RM) -f -- "$@" "[email protected]"
467 $(SHELL) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "[email protected]" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
468 $(MV) -f -- "[email protected]" "$@"
469
470 else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
471 #
472 # Or from the local copy (no debug).
473 #
474 INSTALLS += local-efifw
475 local-efifw_INST = $(INST_BIN)
476 local-efifw_MODE = 0644
477 local-efifw_SOURCES = \
478 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
479 $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
480 endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
481 endif # VBOX_WITH_EFI
482
483
484ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
485#
486# Get the extension pack from from the build server to facility the automatic
487# testing (everything in one tarball (VBoxAll-*)).
488#
489# Note! Using the plural here as we might be downloading more packages eventually.
490#
491INSTALLS += buildserver-extpacks
492buildserver-extpacks_INST = $(INST_DIST)
493buildserver-extpacks_MODE = 0644
494buildserver-extpacks_SOURCES = \
495 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack
496buildserver-extpacks_CLEANS = \
497 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack \
498 $(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.tmp
499
500$$(buildserver-extpacks_0_OUTDIR)/Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack: \
501 $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
502 $(RM) -f -- "[email protected]" "$@"
503 $(SHELL) $(KBUILD_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "[email protected]" --vbox-version "$(VBOX_VERSION_STRING_NO_PUB)" \
504 $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
505 $(MV) -f -- "[email protected]" "$@"
506 $(TOUCH) -- "$@"
507
508endif
509
510
511#
512# Install staged binaries on platforms where we can't cross
513# compile things.
514#
515ifn1of ($(KBUILD_TARGET), linux win)
516 VBOX_PATH_STAGED ?= .
517
518 # Additions.
519 ifndef VBOX_WITH_LINUX_ADDITIONS
520 ifndef VBOX_WITH_WIN32_ADDITIONS
521 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
522 INSTALLS += staged-additions
523 staged-additions_INST = $(INST_ADDITIONS_ISO)
524 staged-additions_MODE = 0644
525 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
526 endif
527 endif
528 endif
529
530 # guesttool.exe
531 ifndef VBOX_WITH_WIN32_ADDITIONS
532 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
533 INSTALLS += staged-guesttool
534 staged-guesttool_INST = $(INST_BIN)
535 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
536 endif
537 endif
538
539endif
540
541endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
542
543
544ifdef VBOX_ONLY_DOCS
545# It may sound a bit odd, but for preparing the documentation package the
546# doxygen documentation isn't needed and increases the build time a lot.
547docs:
548else # !VBOX_ONLY_DOCS
549#
550# Generate documentation.
551# (This should be converted into a separate pass or merged with an existing one later.)
552#
553 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
554docs: docs.Core
555 else
556docs:
557 endif
558endif # !VBOX_ONLY_DOCS
559
560#
561# The core (VMM+Devices+Main) documentation.
562#
563# This includes so much because we wish to have the complete CFGM
564# and GCFGM lists.
565#
566VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
567BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
568OTHER_CLEAN += \
569 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core \
570 $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
571
572VBOX_CORE_DOXYFILE_INPUT_DIRS = \
573 include/iprt \
574 include/iprt/cpp \
575 include/iprt/crypto \
576 include/iprt/formats \
577 include/iprt/linux \
578 include/iprt/nt \
579 include/iprt/solaris \
580 include/iprt/win \
581 include/iprt/nocrt \
582 include/VBox \
583 include/VBox/vmm \
584 include/VBox/com \
585 include/VBox/ExtPack \
586 include/VBox/HostServices \
587 include/VBox/GuestHost \
588 include/VBox/HGSMI \
589 src/VBox/VMM \
590 src/VBox/VMM/VMMR0 \
591 src/VBox/VMM/VMMRC \
592 src/VBox/VMM/VMMR3 \
593 src/VBox/VMM/VMMAll \
594 src/VBox/VMM/VMMSwitcher \
595 src/VBox/VMM/include \
596 src/VBox/Debugger \
597 src/VBox/Devices \
598 src/VBox/Devices/Audio \
599 src/VBox/Devices/Bus \
600 src/VBox/Devices/Graphics \
601 src/VBox/Devices/Graphics/BIOS \
602 src/VBox/Devices/Graphics/shaderlib \
603 src/VBox/Devices/Input \
604 src/VBox/Devices/Networking \
605 src/VBox/Devices/PC \
606 src/VBox/Devices/PC/BIOS \
607 src/VBox/Devices/Parallel \
608 src/VBox/Devices/Serial \
609 src/VBox/Devices/Storage \
610 src/VBox/Devices/USB \
611 src/VBox/Devices/USB/darwin \
612 src/VBox/Devices/USB/linux \
613 src/VBox/Devices/USB/os2 \
614 src/VBox/Devices/USB/solaris \
615 src/VBox/Devices/USB/vrdp \
616 src/VBox/Devices/USB/win32 \
617 src/VBox/Devices/VMMDev \
618 src/VBox/Main/include \
619 src/VBox/Main/include/hgcm \
620 src/VBox/Main \
621 src/VBox/Main/glue \
622 src/VBox/Main/webservice \
623 src/VBox/Main/xml \
624 src/VBox/Main/src-all \
625 src/VBox/Main/src-all/win \
626 src/VBox/Main/src-client \
627 src/VBox/Main/src-client/win \
628 src/VBox/Main/src-client/xpcom \
629 src/VBox/Main/src-server \
630 src/VBox/Main/src-server/darwin \
631 src/VBox/Main/src-server/linux \
632 src/VBox/Main/src-server/os2 \
633 src/VBox/Main/src-server/solaris \
634 src/VBox/Main/src-server/win \
635 src/VBox/Main/src-server/xpcom \
636 src/VBox/HostServices \
637 src/VBox/HostServices/DragAndDrop \
638 src/VBox/HostServices/GuestControl \
639 src/VBox/HostServices/GuestProperties \
640 src/VBox/HostServices/SharedClipboard \
641 src/VBox/HostServices/SharedFolders \
642 src/VBox/HostServices/SharedOpenGL \
643 src/VBox/HostServices/SharedOpenGL/crserver \
644 src/VBox/HostServices/SharedOpenGL/crserverlib \
645 src/VBox/HostServices/SharedOpenGL/render \
646 src/VBox/HostServices/SharedOpenGL/unpacker \
647 src/VBox/HostServices/auth \
648 src/VBox/HostServices/auth/directoryservice \
649 src/VBox/HostServices/auth/pam \
650 src/VBox/HostServices/auth/simple \
651 src/VBox/HostServices/auth/winlogon \
652 src/VBox/HostDrivers/Support \
653 src/VBox/HostDrivers/Support/darwin \
654 src/VBox/HostDrivers/Support/freebsd \
655 src/VBox/HostDrivers/Support/linux \
656 src/VBox/HostDrivers/Support/os2 \
657 src/VBox/HostDrivers/Support/solaris \
658 src/VBox/HostDrivers/Support/win \
659 src/VBox/HostDrivers/VBoxNetFlt \
660 src/VBox/HostDrivers/VBoxNetFlt/darwin \
661 src/VBox/HostDrivers/VBoxNetFlt/linux \
662 src/VBox/HostDrivers/VBoxNetFlt/solaris \
663 src/VBox/HostDrivers/VBoxNetFlt/win \
664 src/VBox/HostDrivers/VBoxNetNat \
665 src/VBox/HostDrivers/VBoxNetNat/darwin \
666 src/VBox/HostDrivers/VBoxNetNat/linux \
667 src/VBox/HostDrivers/VBoxNetNat/solaris \
668 src/VBox/HostDrivers/VBoxNetNat/win \
669 src/VBox/HostDrivers/VBoxNetAdp \
670 src/VBox/HostDrivers/VBoxNetAdp/darwin \
671 src/VBox/HostDrivers/VBoxNetAdp/linux \
672 src/VBox/HostDrivers/VBoxNetAdp/solaris \
673 src/VBox/HostDrivers/VBoxNetAdp/win \
674 src/VBox/HostDrivers/VBoxPci \
675 src/VBox/HostDrivers/VBoxPci/darwin \
676 src/VBox/HostDrivers/VBoxPci/linux \
677 src/VBox/HostDrivers/VBoxPci/solaris \
678 src/VBox/HostDrivers/VBoxPci/win \
679 src/VBox/HostDrivers/VBoxUSB \
680 src/VBox/HostDrivers/VBoxUSB/darwin \
681 src/VBox/HostDrivers/VBoxUSB/os2 \
682 src/VBox/HostDrivers/VBoxUSB/solaris \
683 src/VBox/HostDrivers/VBoxUSB/win \
684 src/VBox/HostDrivers/VBoxUSB/win/Device \
685 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
686 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
687 src/VBox/HostDrivers/VBoxUSB/win/Filter \
688 src/VBox/HostDrivers/VBoxUSB/win/Install \
689 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
690 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
691 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
692 src/VBox/HostDrivers/VBoxUSB/win/usbd \
693 src/VBox/Additions \
694 src/VBox/Additions/WINNT \
695 src/VBox/Additions/WINNT/Graphics \
696 src/VBox/Additions/WINNT/Graphics/Video \
697 src/VBox/Additions/WINNT/Graphics/Video/common \
698 src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
699 src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
700 src/VBox/Additions/WINNT/Graphics/Video/disp \
701 src/VBox/Additions/WINNT/Graphics/Video/disp/common \
702 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
703 src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
704 src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
705 src/VBox/Additions/WINNT/Graphics/Video/mp \
706 src/VBox/Additions/WINNT/Graphics/Video/mp/common \
707 src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
708 src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
709 src/VBox/Additions/WINNT/Graphics/Wine_new \
710 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
711 src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
712 src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
713 src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
714 src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
715 src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
716 src/VBox/Additions/WINNT/Installer \
717 src/VBox/Additions/WINNT/Installer/ISO \
718 src/VBox/Additions/WINNT/Installer/InstallHelper \
719 src/VBox/Additions/WINNT/Installer/Languages \
720 src/VBox/Additions/WINNT/Installer/Loader \
721 src/VBox/Additions/WINNT/Mouse \
722 src/VBox/Additions/WINNT/Mouse/NT5 \
723 src/VBox/Additions/WINNT/Mouse/common \
724 src/VBox/Additions/WINNT/SharedFolders \
725 src/VBox/Additions/WINNT/SharedFolders/redirector \
726 src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
727 src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
728 src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
729 src/VBox/Additions/WINNT/VBoxCredProv \
730 src/VBox/Additions/WINNT/VBoxGINA \
731 src/VBox/Additions/WINNT/VBoxHook \
732 src/VBox/Additions/WINNT/VBoxTray \
733 src/VBox/Additions/WINNT/VBoxUSB \
734 src/VBox/Additions/WINNT/i8042prt \
735 src/VBox/Additions/WINNT/i8042prt/i386 \
736 src/VBox/Additions/WINNT/i8042prt/include \
737 src/VBox/Additions/WINNT/include \
738 src/VBox/Additions/common \
739 src/VBox/Additions/common/VBoxControl \
740 src/VBox/Additions/common/VBoxGuest \
741 src/VBox/Additions/common/VBoxGuest/freebsd \
742 src/VBox/Additions/common/VBoxGuest/linux \
743 src/VBox/Additions/common/VBoxGuest/win \
744 src/VBox/Additions/common/VBoxGuestLib \
745 src/VBox/Additions/common/VBoxService \
746 src/VBox/Additions/common/VBoxVideo \
747 src/VBox/Additions/common/crOpenGL \
748 src/VBox/Additions/common/crOpenGL/array \
749 src/VBox/Additions/common/crOpenGL/feedback \
750 src/VBox/Additions/common/crOpenGL/pack \
751 src/VBox/Additions/common/crOpenGL/passthrough \
752 src/VBox/Additions/common/pam \
753 src/VBox/Additions/darwin \
754 src/VBox/Additions/freebsd \
755 src/VBox/Additions/freebsd/Installer \
756 src/VBox/Additions/freebsd/drm \
757 src/VBox/Additions/freebsd/vboxvfs \
758 src/VBox/Additions/linux \
759 src/VBox/Additions/linux/drm \
760 src/VBox/Additions/linux/installer \
761 src/VBox/Additions/linux/selinux-fedora \
762 src/VBox/Additions/linux/sharedfolders \
763 src/VBox/Additions/os2 \
764 src/VBox/Additions/os2/VBoxGradd \
765 src/VBox/Additions/os2/VBoxGradd/graddlib \
766 src/VBox/Additions/os2/VBoxGrext \
767 src/VBox/Additions/os2/VBoxMouse \
768 src/VBox/Additions/os2/VBoxSF \
769 src/VBox/Additions/solaris \
770 src/VBox/Additions/solaris/DRM \
771 src/VBox/Additions/solaris/Installer \
772 src/VBox/Additions/solaris/SharedFolders \
773 src/VBox/Additions/solaris/SharedFolders/solaris10 \
774 src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
775 src/VBox/Additions/solaris/Virtio \
776 src/VBox/Additions/x11 \
777 src/VBox/Additions/x11/Installer \
778 src/VBox/Additions/x11/VBoxClient \
779 src/VBox/Additions/x11/vboxmouse \
780 src/VBox/Additions/x11/vboxmouse/xorg70 \
781 src/VBox/Additions/x11/vboxmouse/xorg71 \
782 src/VBox/Additions/x11/vboxvideo \
783 src/VBox/NetworkServices \
784 src/VBox/NetworkServices/Dhcpd \
785 src/VBox/NetworkServices/NAT \
786 src/VBox/NetworkServices/NetLib \
787 src/VBox/Storage \
788 src/VBox/ValidationKit/ \
789 src/VBox/ValidationKit/docs/ \
790 src/VBox/ValidationKit/testdriver/ \
791 src/VBox/ValidationKit/bootsectors/ \
792 src/VBox/ValidationKit/bootsectors/bs3kit/ \
793 src/VBox/ValidationKit/tests/ \
794 src/VBox/ValidationKit/tests/additions/ \
795 src/VBox/ValidationKit/tests/api/ \
796 src/VBox/ValidationKit/tests/autostart/ \
797 src/VBox/ValidationKit/tests/benchmarks/ \
798 src/VBox/ValidationKit/tests/cpu/ \
799 src/VBox/ValidationKit/tests/installation/ \
800 src/VBox/ValidationKit/tests/network/ \
801 src/VBox/ValidationKit/tests/selftests/ \
802 src/VBox/ValidationKit/tests/smoketests/ \
803 src/VBox/ValidationKit/tests/storage/ \
804 src/VBox/ValidationKit/tests/teleportation/ \
805 src/VBox/ValidationKit/tests/unittests/ \
806 src/VBox/ValidationKit/tests/usb/ \
807 src/VBox/ValidationKit/common/ \
808 src/VBox/ValidationKit/utils/ \
809 src/VBox/ValidationKit/utils/TestExecServ/ \
810 src/VBox/ValidationKit/utils/cpu/ \
811 src/VBox/ValidationKit/utils/misc/ \
812 src/VBox/ValidationKit/utils/network/ \
813 src/VBox/ValidationKit/utils/nt/ \
814 src/VBox/ValidationKit/utils/usb/ \
815 src/VBox/ValidationKit/vms/ \
816 src/VBox/ValidationKit/testmanager/ \
817 src/VBox/ValidationKit/testmanager/core/ \
818 src/VBox/ValidationKit/testmanager/db/ \
819 src/VBox/ValidationKit/testmanager/debug/ \
820 src/VBox/ValidationKit/testmanager/cgi/ \
821 src/VBox/ValidationKit/testmanager/webui/ \
822 src/VBox/ValidationKit/testboxscript/ \
823
824# These must come first in order to make things look nice.
825VBOX_CORE_DOXYFILE_INPUT_FIRST =\
826 $(PATH_ROOT)/doc/VBox-doc.c \
827 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
828 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
829 $(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
830 $(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
831 $(PATH_ROOT)/include/VBox/cdefs.h \
832 $(PATH_ROOT)/include/VBox/vmm/vmm.h \
833 $(PATH_ROOT)/include/VBox/vmm/vmapi.h \
834 $(PATH_ROOT)/include/VBox/vmm/cpum.h \
835 $(PATH_ROOT)/include/VBox/vmm/mm.h \
836 $(PATH_ROOT)/include/VBox/vmm/pgm.h \
837 $(PATH_ROOT)/include/VBox/vmm/selm.h \
838 $(PATH_ROOT)/include/VBox/vmm/trpm.h \
839 $(PATH_ROOT)/include/VBox/vmm/dbgf.h \
840 $(PATH_ROOT)/include/VBox/vmm/stam.h \
841 $(PATH_ROOT)/include/VBox/vmm/em.h \
842 $(PATH_ROOT)/include/VBox/vmm/hm.h \
843 $(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
844 $(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
845 $(PATH_ROOT)/include/VBox/vmm/iem.h \
846 $(PATH_ROOT)/include/VBox/vmm/nem.h \
847 $(PATH_ROOT)/include/VBox/vmm/pdm.h \
848 $(PATH_ROOT)/include/VBox/vmm/pdmifs.h \
849 $(PATH_ROOT)/include/VBox/vmm/pdmaudioifs.h \
850 $(PATH_ROOT)/include/VBox/vmm/pdmnetifs.h \
851 $(PATH_ROOT)/include/VBox/vmm/pdmserialifs.h \
852 $(PATH_ROOT)/include/VBox/vmm/pdmstorageifs.h \
853 $(PATH_ROOT)/include/VBox/vmm/iom.h \
854 $(PATH_ROOT)/include/VBox/vmm/cfgm.h \
855 $(PATH_ROOT)/include/VBox/vmm/gim.h \
856 $(PATH_ROOT)/include/VBox/vmm/tm.h \
857 $(PATH_ROOT)/include/VBox/vmm/ssm.h \
858 \
859 $(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
860 $(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
861 $(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
862 $(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
863 $(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
864 $(PATH_ROOT)/src/VBox/VMM/include/IEMInternal.h \
865 $(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
866 $(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
867 $(PATH_ROOT)/src/VBox/VMM/include/NEMInternal.h \
868 $(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
869 $(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
870 $(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
871 $(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
872 $(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
873 $(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
874 $(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
875 $(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
876 $(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
877 $(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
878 \
879 $(PATH_ROOT)/include/VBox/vmm/vm.h \
880 \
881 $(PATH_ROOT)/include/VBox/sup.h \
882 $(PATH_ROOT)/include/VBox/vd.h \
883 $(PATH_ROOT)/include/VBox/types.h \
884 $(PATH_ROOT)/include/VBox/err.h \
885 $(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
886 $(PATH_ROOT)/include/VBox/dbggui.h \
887 $(PATH_ROOT)/include/VBox/dis.h \
888 $(PATH_ROOT)/include/VBox/disopcode.h \
889 $(PATH_ROOT)/include/VBox/intnet.h \
890 $(PATH_ROOT)/include/VBox/settings.h \
891 $(PATH_ROOT)/include/VBox/pci.h \
892 $(PATH_ROOT)/include/VBox/scsi.h \
893 $(PATH_ROOT)/include/VBox/shflsvc.h \
894 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
895 $(PATH_ROOT)/include/VBox/usb.h \
896 $(PATH_ROOT)/include/VBox/vusb.h \
897 \
898 $(PATH_ROOT)/include/VBox/log.h \
899 $(PATH_ROOT)/include/VBox/param.h \
900 $(PATH_ROOT)/include/VBox/version.h \
901 \
902 $(PATH_ROOT)/include/VBox/com/com.h \
903 $(PATH_ROOT)/include/VBox/com/utils.h
904
905VBOX_CORE_DOXYFILE_INPUT := \
906 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
907 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS) \
908 , $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/*.m $(dir)/*.mm $(dir)/*.py $(dir)/.asm))
909VBOX_CORE_DOXYFILE_INPUT := \
910 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
911 $(sort $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT)))
912
913includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
914
915# Generate the Doxyfile
916$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
917 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
918 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
919 | $$(dir $$@)
920 $(QUIET)$(RM) -f $@ [email protected] [email protected]
921 $(QUIET)$(CP) -f Doxyfile.Core [email protected]
922 $(QUIET)$(APPEND) [email protected]
923 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
924 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
925 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
926 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
927 $(QUIET)$(APPEND) [email protected] "EXCLUDE = " \
928 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
929 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
930 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
931 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
932 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c"
933 $(QUIET)$(APPEND) [email protected]
934 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
935 $(QUIET)$(APPEND) [email protected]
936 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
937 $(QUIET)$(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
938 $(QUIET)$(APPEND) [email protected]
939 $(QUIET)$(MV) -f [email protected] $@
940 @$(APPEND) [email protected] "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
941 @$(APPEND) [email protected] "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
942
943# Do the actual job.
944$(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
945 | $(VBOX_CORE_DOXYFILE_OUTPUT)/
946 $(QUIET)$(RM) -f $@
947 $(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
948 doxygen $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
949 $(SED) -n \
950 -e ':nextwarning' \
951 -e '/^ *$(DOLLAR)/d' \
952 -e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
953 -e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
954 -e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
955 -e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
956 -e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
957 -e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
958 \
959 -e '/unable to resolve link to .dtrace_pops_t./b ignore' \
960 \
961 -e 'b end' \
962 -e ':ignore' \
963 -e 'n' \
964 -e '/^[[:space:]]/b ignore' \
965 -e '/^Possible candidates/b ignore' \
966 -e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
967 -e 'b nextwarning' \
968 -e ':end' \
969 -e 'p' \
970 --output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
971 $(VBOX_CORE_DOXYFILE_OUTPUT)/errors
972 $(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
973 $(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
974 $(APPEND) $@
975
976docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
977
978#
979# This is a bit odd, but we attach the optional scm check run onto the 'docs' pass
980# so the build box output is less confusing on failure.
981#
982ifeq ($(KBUILD_HOST),$(KBUILD_TARGET))
983 ifdef VBOX_WITH_SCM_CHECK_RUN
984 docs: scm.check.run
985 endif
986 .PHONY: scm.check.run
987 scm.check.run: $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE)
988 $(REDIRECT) -E VBOX_LOG_FLAGS="disabled" -E VBOX_LOG_DEST="nofile" \
989 $(if-expr "$(KBUILD_HOST)" == "darwin",-E DYLD_FALLBACK_LIBRARY_PATH="$(VBOX_PATH_TOOLS)/..",) -- \
990 $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE) -qvv --check-run $(PATH_ROOT)
991endif
992
993
994#
995# Combined package build (windows only).
996#
997# The combined package is created by the x86 environment, so we do the amd64
998# packaging in the build phase since it's just a few very slow jobs. We hold
999# back the x86 build until the amd64 packaging starts, to try encourage
1000# parallel execution.
1001#
1002# Note! VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1 is required because the additions
1003# packing must be done in amd64 mode as it picks files from the x86 build.
1004#
1005
1006VBOX_COMBINED_PACKAGE_DEFS := \
1007 VBOX_WITH_COMBINED_PACKAGE=1 \
1008 VBOX_WITH_ALL_DOXYGEN_TARGETS= \
1009 VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1
1010
1011combined-package-fetch:
1012 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1013 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1014
1015combined-package-build-amd64:
1016 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1017
1018combined-package-build-amd64-packing: combined-package-build-amd64
1019 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1020
1021combined-package-build-x86: combined-package-build-amd64
1022 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1023
1024combined-package-build: combined-package-build-amd64-packing combined-package-build-x86
1025
1026combined-package-packing:
1027 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1028
1029
1030
1031#
1032# Common rsync bits.
1033#
1034
1035
1036## Overridable ssh name.
1037# On windows build boxes install https://github.com/PowerShell/Win32-OpenSSH/releases
1038# and point to it in LocalConfig. (The cygwin ssh frequently segfaults due to
1039# termination race or something along those lines.)
1040VBOX_SSH ?= ssh
1041VBOX_SSH_FOR_RSYNC ?= $(VBOX_SSH)
1042
1043## Overridable rsh name.
1044VBOX_RSYNC ?= rsync --rsh="$(VBOX_SSH_FOR_RSYNC)"
1045VBOX_RSYNC_NOSSH ?= rsync
1046
1047##
1048# The basic rsync invocation for syncing the tree into a VM; the source and
1049# target specs are missing.
1050#
1051# @param 1 os name.
1052# @param 2 arch or *.
1053# @param 3 nossh or empty
1054#
1055VBOX_RSYNC_IN_FN = $(if-expr "$(3)" != "nossh",$(VBOX_RSYNC),$(VBOX_RSYNC_NOSSH))\
1056 -a -v --delete --delete-excluded --prune-empty-dirs \
1057 --exclude=*.pyc \
1058 --exclude=.svn/ \
1059 --exclude=doc/Devices/ \
1060 --exclude=doc/tg/ \
1061 --exclude=doc/vp/ \
1062 --exclude=tinderclient.log \
1063 --exclude=tools/FetchDir/ \
1064 --exclude=webtools/ \
1065 --exclude=out/ \
1066 $(foreach os,$(filter-out $(1), darwin freebsd linux solaris os2 win), \
1067 --exclude=tools/$(os).x86/ \
1068 --exclude=tools/$(os).amd64/ )
1069
1070#
1071# VM IP addresses.
1072#
1073VBOX_BLD_VM_LNX_IP := 192.168.27.2
1074VBOX_BLD_VM_OS2_IP := 192.168.27.3
1075VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
1076VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
1077VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
1078VBOX_BLD_VM_DARWIN_109_AMD64_IP := 192.168.27.18
1079VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
1080VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
1081VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
1082VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
1083
1084VBOX_WITH_OS2_ADD_BUILD=1
1085
1086#
1087# For profiling the VM building steps.
1088#
1089if 0
1090 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
1091 VBOX_BLD_VM_MSG_END__ =
1092else
1093 VBOX_BLD_VM_MSG_BEGIN = @echo "$(date ) - Start building $1."
1094 VBOX_BLD_VM_MSG_END__ = @echo "$(date ) - Done building $1."
1095endif
1096
1097#
1098# For killing old build jobs in the OS/2 VM before rsyncing.
1099#
1100VBOX_BLD_VM_OS2_KKILL_STUFF = $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "kkill -All -Tree kmk.exe gcc.exe & sleep.exe 1 & kkill -All gcc.exe emxomfld.exe as.exe kmk.exe "
1101
1102
1103#
1104# Build the additions, all of them.
1105#
1106# This is currently tailored (hardcoded) for the additions
1107# build box. Can make it pretty and configurable later.
1108#
1109# The fetching must be done in serial fashion, while the building
1110# should be more flexible wrt to -jN.
1111#
1112additions-fetch:
1113 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
1114 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 VBOX_DEF_MACOSX_VERSION_MIN=10.7
1115 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 #VBOX_DEF_MACOSX_VERSION_MIN=10.5
1116 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1117 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1118ifdef VBOX_WITH_OS2_ADD_BUILD
1119 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
1120endif
1121 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1122 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1123 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1124 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1125
1126
1127## @todo Currently combined solaris additions building assumes that amd64 is
1128# built first. The windows amd64 additions need some x86 files, so don't change
1129# the order of the windows builds. TODO: Split building and packing for these two VMs.
1130additions-build: \
1131 additions-build-rsync-into-vms \
1132 additions-build-win.x86 \
1133 additions-build-win.amd64 \
1134 additions-build-solaris.amd64 \
1135 additions-build-solaris.x86 \
1136 additions-build-os2.x86 \
1137 additions-build-linux \
1138 additions-build-darwin.x86 \
1139 additions-build-darwin.amd64
1140
1141additions-build-rsync-into-vms: \
1142 additions-build-solaris.rsync-into-vm \
1143 additions-build-os2.rsync-into-vm \
1144 additions-build-darwin.x86.rsync-into-vm \
1145 additions-build-darwin.amd64.rsync-into-vm \
1146 additions-build-linux.rsync-into-vm
1147 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1148.NOTPARALLEL: additions-build-rsync-into-vms
1149.PHONY: additions-build-rsync-into-vms
1150
1151
1152VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1153 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1154
1155VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1156 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1157
1158# Automatically determine the additions build subdir name. Used for figuring
1159# out directory names inside the additions building VMs.
1160VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1161
1162# When building in parallel on a Windows host, make sure we finish the host
1163# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1164ifeq ($(KBUILD_TARGET),win)
1165VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
1166else
1167VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
1168endif
1169
1170# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1171ifeq ($(KBUILD_TARGET),win)
1172additions-build-win.amd64-just-build:
1173 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1174additions-build-win.amd64: additions-build-win.x86 additions-build-win.amd64-just-build
1175 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1176else
1177additions-build-win.amd64: additions-build-win.x86
1178 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
1179 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
1180 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
1181endif
1182
1183ifeq ($(KBUILD_TARGET),win)
1184additions-build-win.x86:
1185 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1186 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1187else
1188additions-build-win.x86:
1189 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
1190 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing '
1191 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
1192endif
1193
1194# ASSUMES the 64-bit edition are built first. This also serializes VM access.
1195ifeq ($(KBUILD_TARGET),solaris)
1196additions-build-solaris.amd64:
1197 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1198 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1199
1200additions-build-solaris.x86: additions-build-solaris.amd64
1201 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
1202 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
1203
1204additions-build-solaris.rsync-into-vm:
1205else
1206additions-build-solaris.rsync-into-vm:
1207 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1208 '--exclude=src/VBox/Additions/WINNT/**' \
1209 '--exclude=src/VBox/Frontends/**' \
1210 '--exclude=src/VBox/VMM/**' \
1211 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1212
1213additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
1214 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
1215 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
1216 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
1217 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
1218 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' 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 '
1219 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
1220
1221additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
1222 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1223 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1224
1225.NOTPARALLEL: additions-build-solaris.rsync-into-vm
1226.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
1227
1228additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
1229additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
1230endif
1231
1232ifdef VBOX_WITH_OS2_ADD_BUILD
1233 ifeq ($(KBUILD_TARGET),os2)
1234additions-build-os2.x86:
1235 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1236 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1237
1238additions-build-os2.rsync-into-vm:
1239 else
1240additions-build-os2.rsync-into-vm:
1241 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1242 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh)\
1243 '--exclude=src/VBox/Additions/x11/**' \
1244 '--exclude=src/VBox/Additions/WINNT/**' \
1245 '--exclude=src/VBox/Frontends/**' \
1246 '--exclude=src/VBox/VMM/**' \
1247 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1248
1249additions-build-os2.build-it: #additions-build-os2.rsync-into-vm
1250 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
1251 $(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
1252 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
1253
1254additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
1255 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1256 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1257
1258.NOTPARALLEL: additions-build-os2.rsync-into-vm
1259.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
1260
1261additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
1262 endif
1263#
1264else
1265additions-build-os2.x86:
1266# Dummy
1267endif
1268
1269# Linux
1270ifeq ($(KBUILD_TARGET),linux)
1271additions-build-linux.amd64:
1272 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1273 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1274
1275additions-build-linux.x86:
1276 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1277 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1278
1279additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1280 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1281 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1282else
1283additions-build-linux.rsync-into-vm:
1284 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1285 '--exclude=src/VBox/Additions/WINNT/**' \
1286 '--exclude=src/VBox/Frontends/**' \
1287 '--exclude=src/VBox/VMM/**' \
1288 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1289
1290additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1291 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1292 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1293 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c ubuntu-11.10-amd64 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter " '
1294 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1295 endif
1296 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1297 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "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 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING) " '
1298 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1299 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1300 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1301 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c ubuntu-11.10-i386 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=x86 tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter " '
1302 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1303 endif
1304 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1305 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "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 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING) " '
1306 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1307 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1308 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "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 " '
1309 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1310
1311additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1312 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1313 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1314
1315.NOTPARALLEL: additions-build-linux.rsync-into-vm
1316.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1317
1318additions-build-linux: additions-build-linux.rsync-out-of-vm
1319endif
1320
1321# Darwin
1322ifeq ($(KBUILD_TARGET),darwin)
1323additions-build-darwin.amd64:
1324 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1325 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1326
1327additions-build-darwin.x86:
1328 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1329 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1330
1331additions-build-darwin: additions-build-darwin.amd64 additions-build-darwin.x86
1332.PHONY: additions-build-darwin.amd64 additions-build-darwin.x86
1333else
1334additions-build-darwin.amd64.rsync-into-vm:
1335 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1336 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1337 '--exclude=src/libs/xpcom18a4/**' \
1338 '--exclude=src/libs/curl*/**' \
1339 '--exclude=src/libs/libxml*/**' \
1340 '--exclude=src/libs/libvpx*/**' \
1341 '--exclude=src/libs/libopus*/**' \
1342 '--exclude=src/VBox/Additions/WINNT/**' \
1343 '--exclude=src/VBox/Additions/x11/**' \
1344 '--exclude=src/VBox/Artwork/x11/**' \
1345 '--exclude=src/VBox/Devices/**' \
1346 '--exclude=src/VBox/Disassembler/**' \
1347 '--exclude=src/VBox/ExtPacks/**' \
1348 '--exclude=src/VBox/Frontends/**' \
1349 '--exclude=src/VBox/HostDriver/**' \
1350 '--exclude=src/VBox/HostService/**' \
1351 '--exclude=src/VBox/ImageMounter/**' \
1352 '--exclude=src/VBox/Installer/win/**' \
1353 '--exclude=src/VBox/Main/**' \
1354 '--exclude=src/VBox/NetworkService/**' \
1355 '--exclude=src/VBox/RDP/**' \
1356 '--exclude=src/VBox/Storage/**' \
1357 '--exclude=src/VBox/ValidationKit/**' \
1358 '--exclude=src/VBox/VMM/**' \
1359 '--exclude=src/apps/**' \
1360 '--exclude=src/recompiler/**' \
1361 . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1362
1363additions-build-darwin.x86.rsync-into-vm:
1364 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1365 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1366 '--exclude=src/libs/xpcom18a4/**' \
1367 '--exclude=src/libs/curl*/**' \
1368 '--exclude=src/libs/libxml*/**' \
1369 '--exclude=src/libs/libvpx*/**' \
1370 '--exclude=src/libs/libopus*/**' \
1371 '--exclude=src/VBox/Additions/WINNT/**' \
1372 '--exclude=src/VBox/Additions/x11/**' \
1373 '--exclude=src/VBox/Artwork/x11/**' \
1374 '--exclude=src/VBox/Devices/**' \
1375 '--exclude=src/VBox/Disassembler/**' \
1376 '--exclude=src/VBox/ExtPacks/**' \
1377 '--exclude=src/VBox/Frontends/**' \
1378 '--exclude=src/VBox/HostDriver/**' \
1379 '--exclude=src/VBox/HostService/**' \
1380 '--exclude=src/VBox/ImageMounter/**' \
1381 '--exclude=src/VBox/Installer/win/**' \
1382 '--exclude=src/VBox/Main/**' \
1383 '--exclude=src/VBox/NetworkService/**' \
1384 '--exclude=src/VBox/RDP/**' \
1385 '--exclude=src/VBox/Storage/**' \
1386 '--exclude=src/VBox/ValidationKit/**' \
1387 '--exclude=src/VBox/VMM/**' \
1388 '--exclude=src/apps/**' \
1389 '--exclude=src/recompiler/**' \
1390 . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1391
1392additions-build-darwin.amd64.build-it: additions-build-darwin.amd64.rsync-into-vm
1393 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Additions)
1394 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
1395 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
1396 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Additions)
1397
1398additions-build-darwin.x86.build-it: additions-build-darwin.x86.rsync-into-vm
1399 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Additions)
1400 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
1401# no pkgbuild # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
1402 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Additions)
1403
1404additions-build-darwin.amd64.rsync-out-of-vm: additions-build-darwin.amd64.build-it
1405 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1406
1407additions-build-darwin.x86.rsync-out-of-vm: additions-build-darwin.x86.build-it
1408 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1409
1410additions-build-darwin.amd64: additions-build-darwin.amd64.rsync-out-of-vm
1411additions-build-darwin.x86: additions-build-darwin.x86.rsync-out-of-vm
1412additions-build-darwin: additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.amd64.rsync-out-of-vm
1413
1414.PHONY: additions-build-darwin.amd64.rsync-into-vm additions-build-darwin.amd64.rsync-out-of-vm additions-build-darwin.amd64.build-it \
1415 additions-build-darwin.x86.rsync-into-vm additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.x86.build-it
1416endif
1417
1418
1419additions-packing:
1420 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1421 VBOX_WITH_ADDITIONS_ISO.darwin.amd64=1 \
1422 VBOX_WITH_ADDITIONS_ISO.darwin.x86= \
1423 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1424 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1425 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1426 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1427 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1428 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1429 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1430 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1431 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1432 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1433 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1434 -C src/VBox/Additions \
1435 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1436
1437.PHONY: \
1438 additions-build-win.x86 \
1439 additions-build-win.amd64 \
1440 additions-build-solaris.amd64 \
1441 additions-build-solaris.x86 \
1442 additions-build-os2.x86 \
1443 additions-build-linux \
1444 additions-build-linux.amd64 \
1445 additions-build-linux.x86 \
1446 additions-build-linux.x86.combined \
1447 additions-build-darwin \
1448 additions-build-darwin.x86 \
1449 additions-build-darwin.amd64 \
1450 additions-packing
1451
1452
1453#
1454# Build the extension packs, all of them.
1455#
1456# This is tailored (hardcoded) for the extension pack build box.
1457#
1458# The fetching must be done in serial fashion, while the building should be
1459# more flexible wrt to -jN.
1460#
1461extpacks-fetch:
1462 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1463 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1464# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1465 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1466 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1467 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1468if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1469 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1470# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1471 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1472# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1473 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1474endif
1475
1476
1477extpacks-build: \
1478 extpacks-build-win.amd64 \
1479 extpacks-build-win.x86 \
1480 extpacks-build-solaris.amd64 \
1481 extpacks-build-os2.x86 \
1482 extpacks-build-linux \
1483 extpacks-build-darwin.amd64 \
1484 extpacks-build-freebsd.amd64 \
1485 extpacks-build-freebsd.x86
1486
1487VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
1488 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1489
1490VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
1491 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1492
1493# Automatically determine the extpack build subdir name. Used for figuring out
1494# directory names inside the extension pack building VMs.
1495VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1496
1497# When building in parallel on a Windows host, make sure we finish the host
1498# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1499ifeq ($(KBUILD_TARGET),win)
1500VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1501else
1502VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1503endif
1504
1505extpacks-build-win.amd64:
1506ifeq ($(KBUILD_TARGET),win)
1507 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1508else
1509 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1510 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1511 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1512endif
1513
1514extpacks-build-win.x86:
1515if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1516 ifeq ($(KBUILD_TARGET),win)
1517 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1518 else
1519 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1520 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all '
1521 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1522 endif
1523else
1524 @$(ECHO) "nothing to do for unsupported host $@"
1525endif
1526
1527ifeq ($(KBUILD_TARGET),solaris)
1528extpacks-build-solaris.amd64:
1529 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1530
1531else
1532# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1533extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1534 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1535
1536extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1537 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1538 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1539 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1540
1541extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1542 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1543
1544#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1545.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1546
1547extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1548endif
1549
1550extpacks-build-os2.x86:
1551#ifeq ($(KBUILD_TARGET),os2)
1552# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1553#else
1554# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_OS2_IP) ' cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) '
1555#endif
1556
1557ifeq ($(KBUILD_TARGET),linux)
1558extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1559 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1560
1561extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1562 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1563 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1564 else
1565 @$(ECHO) "nothing to do for unsupported host $@"
1566 endif
1567
1568extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1569else
1570# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1571extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1572 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1573
1574extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1575 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1576 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all " '
1577 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1578 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1579 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1580 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c debian-4.0-i386 "cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all " '
1581 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1582 endif
1583
1584extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1585 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1586 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1587 endif
1588 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1589
1590#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1591.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1592
1593extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1594endif
1595
1596extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1597#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1598# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1599#else
1600# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1601# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1602# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1603#endif
1604
1605extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1606#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1607# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1608#else
1609# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1610# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all '
1611# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1612#endif
1613
1614extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1615ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1616 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1617else
1618 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1619 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1620 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=amd64 tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
1621 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1622 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1623endif
1624
1625extpacks-packing:
1626if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1627 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1628 VBOX_ONLY_EXTPACKS=1 packing
1629else
1630 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 solaris.amd64 win.amd64" \
1631 VBOX_ONLY_EXTPACKS=1 packing
1632endif
1633# +++ freebsd.amd64 ^^^
1634
1635.PHONY: \
1636 extpacks-build-win.x86 \
1637 extpacks-build-win.amd64 \
1638 extpacks-build-solaris.amd64 \
1639 extpacks-build-os2.x86 \
1640 extpacks-build-linux \
1641 extpacks-build-linux.amd64 \
1642 extpacks-build-linux.x86 \
1643 extpacks-build-freebsd.amd64 \
1644 extpacks-build-freebsd.x86 \
1645 extpacks-build-darwin.amd64 \
1646 extpacks-packing
1647
1648
1649#
1650# Build the test suite, all of it.
1651#
1652# This is currently tailored (hardcoded) for the additions build box just like
1653# the additions build above, which it in fact is a copy of.
1654#
1655validationkit-fetch:
1656 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1657 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1658 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1659# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1660# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1661 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1662 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1663 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1664 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1665 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1666 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1667 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1668
1669
1670validationkit-build: \
1671 validationkit-build-rsync-into-vms \
1672 validationkit-build-solaris.amd64 \
1673 validationkit-build-solaris.x86 \
1674 validationkit-build-win.x86 \
1675 validationkit-build-win.amd64 \
1676 validationkit-build-os2.x86 \
1677 validationkit-build-linux \
1678 validationkit-build-freebsd.amd64 \
1679 validationkit-build-freebsd.x86 \
1680 validationkit-build-darwin.amd64 \
1681 validationkit-build-darwin.x86
1682
1683validationkit-build-rsync-into-vms: \
1684 validationkit-build-solaris.rsync-into-vm \
1685 validationkit-build-os2.rsync-into-vm \
1686 validationkit-build-linux.rsync-into-vm
1687 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1688.NOTPARALLEL: validationkit-build-rsync-into-vms
1689.PHONY: validationkit-build-rsync-into-vms
1690
1691
1692VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1693 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1694
1695VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1696 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1697
1698# Automatically determine the Validation Kit build subdir name. Used for figuring
1699# out directory names inside the test suite building VMs.
1700VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1701
1702# When building in parallel on a Windows host, make sure we finish the host
1703# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1704ifeq ($(KBUILD_TARGET),win)
1705VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1706else
1707VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1708endif
1709
1710validationkit-build-win.amd64:
1711ifeq ($(KBUILD_TARGET),win)
1712 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1713else
1714 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1715 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1716 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1717endif
1718
1719validationkit-build-win.x86:
1720ifeq ($(KBUILD_TARGET),win)
1721 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1722else
1723 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1724 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1725 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1726endif
1727
1728ifeq ($(KBUILD_TARGET),solaris)
1729validationkit-build-solaris.amd64:
1730 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1731
1732validationkit-build-solaris.x86:
1733 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1734
1735else
1736validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1737 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1738 '--exclude=src/VBox/Additions/WINNT/**' \
1739 '--exclude=src/VBox/Frontends/**' \
1740 '--exclude=src/VBox/VMM/**' \
1741 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1742
1743validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1744 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1745 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1746 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1747 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1748 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1749 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1750
1751validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1752 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1753 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1754
1755.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1756
1757validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1758validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1759endif
1760
1761ifeq ($(KBUILD_TARGET),os2)
1762validationkit-build-os2.x86:
1763 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1764validationkit-build-os2.rsync-into-vm:
1765else # !OS/2
1766validationkit-build-os2.rsync-into-vm:
1767 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1768 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh) \
1769 '--exclude=src/VBox/Additions/x11/**' \
1770 '--exclude=src/VBox/Additions/WINNT/**' \
1771 '--exclude=src/VBox/Frontends/**' \
1772 '--exclude=src/VBox/VMM/**' \
1773 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1774
1775validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1776 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1777 $(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
1778 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1779
1780validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1781 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1782 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1783
1784.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1785
1786validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1787endif # !OS/2
1788
1789ifeq ($(KBUILD_TARGET),linux)
1790validationkit-build-linux.amd64:
1791 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1792
1793validationkit-build-linux.x86:
1794 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1795
1796validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1797else
1798validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1799 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1800 '--exclude=src/VBox/Additions/WINNT/**' \
1801 '--exclude=src/VBox/Frontends/**' \
1802 '--exclude=src/VBox/VMM/**' \
1803 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1804
1805validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1806 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1807 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all " '
1808 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1809 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1810 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all " '
1811 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1812
1813validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1814 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1815 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1816
1817.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1818
1819validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1820endif
1821
1822validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1823#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1824# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1825#else
1826# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1827# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1828# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1829#endif
1830
1831validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1832#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1833# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1834#else
1835# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1836# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1837# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1838#endif
1839
1840validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1841ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1842 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1843else
1844 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1845 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1846 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
1847 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1848 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1849endif
1850
1851validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1852ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1853 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1854else
1855 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1856 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1857 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
1858 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1859 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1860endif
1861
1862
1863validationkit-packing:
1864 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1865 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1866 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1867 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1868 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1869 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1870 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1871 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1872 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1873 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1874 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1875 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1876 -C src/VBox/ValidationKit \
1877 $(PATH_OUT)/VBoxValidationKit.zip \
1878 $(PATH_OUT)/VBoxTestBoxScript.zip
1879
1880.PHONY: \
1881 validationkit-build-win.x86 \
1882 validationkit-build-win.amd64 \
1883 validationkit-build-solaris.amd64 \
1884 validationkit-build-solaris.x86 \
1885 validationkit-build-os2.x86 \
1886 validationkit-build-linux \
1887 validationkit-build-linux.amd64 \
1888 validationkit-build-linux.x86 \
1889 validationkit-build-freebsd.amd64 \
1890 validationkit-build-freebsd.x86 \
1891 validationkit-build-darwin.amd64 \
1892 validationkit-build-darwin.x86 \
1893 validationkit-packing
1894
1895
1896#
1897# Build the EFI firmware, all of it.
1898#
1899efi-fetch:
1900 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1901
1902efi-build: $(VBOX_VERSION_HEADER)
1903 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
1904
1905efi-packing:
1906 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
1907
1908
1909#
1910# Generate VirtualBox-x.x.x.zip (PUEL) snapshot archive for internal use only
1911# - includes kBuild
1912# - must be executed on an PUEL checkout
1913#
1914
1915# the path where to store the zip archive
1916ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
1917# the root directory inside the zip archive
1918ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
1919# the name of the zip archive
1920ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
1921snapshot-puel:
1922 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
1923 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
1924 echo; \
1925 echo "Did not find RDP stuff, is this an OSE branch?"; \
1926 echo; \
1927 exit 1; \
1928 fi
1929 @if [ -z "$(PASSWORD)" ]; then \
1930 echo; \
1931 echo "Please specify a password with PASSWORD=..."; \
1932 echo; \
1933 exit 1; \
1934 fi
1935 $(QUIET)$(MKDIR) -p $(ZIPPATH)
1936 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
1937 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
1938 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
1939 $(QUIET)(cd $(ZIPPATH); 7z a \
1940 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
1941 -xr!.svn \
1942 -i!$(ZIPROOT)/Config.kmk \
1943 -i!$(ZIPROOT)/Doxyfile.Core \
1944 -i!$(ZIPROOT)/Makefile.kmk \
1945 -i!$(ZIPROOT)/configure \
1946 -i!$(ZIPROOT)/configure.vbs \
1947 -i!$(ZIPROOT)/doc \
1948 -i!$(ZIPROOT)/include \
1949 -i!$(ZIPROOT)/kBuild \
1950 -i!$(ZIPROOT)/src \
1951 -i!$(ZIPROOT)/tools/env.sh \
1952 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
1953 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
1954 -x!$(ZIPROOT)/doc/Devices \
1955 -x!$(ZIPROOT)/doc/\*pdf \
1956 -x!$(ZIPROOT)/doc/VMM \
1957 -x!$(ZIPROOT)/doc/licenses_old \
1958 -x!$(ZIPROOT)/doc/manual/de_DE \
1959 -x!$(ZIPROOT)/doc/manual/fr_FR \
1960 -x!$(ZIPROOT)/src/tests \
1961 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
1962 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
1963 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
1964 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
1965 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
1966 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
1967 $(ZIPPATH)/$(ZIPNAME))
1968 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
1969
1970
1971#
1972# Generate VirtualBox-x.x.x.tar.bz2 (OSE) snapshot archive
1973# - includes kBuild
1974#
1975
1976snapshot-ose:
1977ifndef VBOX_OSE
1978 $(QUIET)$(RM) -Rf $(wildcard $(PATH_OUT)/vbox-ose-snap-*) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
1979 $(call MSG_L1,Making OSE snapshot at $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING))
1980 $(KBUILD_DEVTOOLS)/bin/ose-snapshot.sh $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING)
1981 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
1982 $(REDIRECT) -C $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING) -- \
1983 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
1984else
1985 $(QUIET)$(RM) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
1986 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
1987 $(REDIRECT) -C $(PATH_ROOT) -- \
1988 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
1989endif
1990
1991
1992#
1993# Generate ALL the rules.
1994#
1995include $(FILE_KBUILD_SUB_FOOTER)
1996
1997
1998#
1999# Generate x86.mac and err.mac.
2000#
2001incs:
2002 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
2003 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
2004 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
2005 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
2006 $(SED) -f include/VBox/various.sed --output include/iprt/formats/dwarf.mac include/iprt/formats/dwarf.h
2007 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
2008 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
2009 $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
2010 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
2011 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
2012
2013
2014#
2015# Legacy.
2016#
2017vslick.h:
2018 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
2019 exit 1
2020
2021
2022#
2023# Add fetching of the tools to the 'up[date][2]' targets.
2024#
2025up update up2 update2::
2026ifndef VBOX_OSE
2027 +$(MAKE) -C tools fetch
2028else
2029 $(MAKE) -C tools -f Makefile-ose.kmk fetch
2030endif
2031
2032
2033#
2034# Aliases for building the SDK.
2035#
2036.NOTPARALLEL: sdk sdk-fetch
2037sdk:
2038 + $(KMK) VBOX_ONLY_SDK=1 \
2039 pass_bldprogs pass_others pass_installs pass_packing
2040
2041sdk-fetch:
2042 + $(KMK) VBOX_ONLY_SDK=1 -C tools
2043
2044
2045#
2046# Build the essentials to run a VM. Incomplete. Use with care!
2047#
2048quick: \
2049 VBoxRT \
2050 VBoxVMM \
2051 VMMR0 \
2052 VBoxDD \
2053 VBoxDDR0 \
2054 VBoxDD2 \
2055 VBoxDD2R0 \
2056 VBoxC \
2057 VBoxSVC \
2058 $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
2059 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
2060 $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
2061 $(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
2062
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