VirtualBox

source: vbox/trunk/Makefile.kmk@ 93322

Last change on this file since 93322 was 93322, checked in by vboxsync, 3 years ago

/Config.kmk,*.kmk: Windows ASAN build adjustments. bugref:8489 bugref:9841

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

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