VirtualBox

source: vbox/trunk/Makefile.kmk@ 99701

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

*kmk: VBOX_ONLY_SDK_ON_WINDOWS changes and cleanups. bugref:10442

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette