VirtualBox

source: vbox/trunk/Makefile.kmk@ 99040

Last change on this file since 99040 was 99040, checked in by vboxsync, 20 months ago

*.kmk: Applied scm with new indenting of multiline variable/function expansions in variable assignments. bugref:10348

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