VirtualBox

source: vbox/trunk/Makefile.kmk@ 94173

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

/Makefile.kmk,/Config.kmk: Adjusted the qt5-bin target for qt6 on darwin. bugref:9898

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