VirtualBox

source: vbox/trunk/Makefile.kmk@ 99739

Last change on this file since 99739 was 99739, checked in by vboxsync, 13 months ago

*: doxygen corrections (mostly about removing @returns from functions returning void).

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

© 2023 Oracle
ContactPrivacy policyTerms of Use