VirtualBox

source: vbox/trunk/Makefile.kmk@ 99709

Last change on this file since 99709 was 99709, checked in by vboxsync, 19 months ago

*.kmk: Added a VBOX_DOXYGEN variable for controlling which doxygen binary we use. bugref:10442 bugref:10424

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