VirtualBox

source: vbox/trunk/Makefile.kmk@ 95288

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

/Makefile.kmk: Skip tools/otheros/ and tools/otheros.arm64/ when rsyncing. bugref:9898

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 96.9 KB
Line 
1# $Id: Makefile.kmk 94894 2022-05-06 12:18:34Z 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=>$(VBOX_QT_FWRK_VER) \
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 -- "$@" "$@.tmp"
384 $(SHELL) $(KBUILD_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
385 $(MV) -f -- "$@.tmp" "$@"
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 -- "$@" "$@.tmp"
441 $(SHELL) $(KBUILD_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
442 $(MV) -f -- "$@.tmp" "$@"
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 -- "$@" "$@.tmp"
502 $(SHELL) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
503 $(MV) -f -- "$@.tmp" "$@"
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 -- "$@.tmp" "$@"
538 $(SHELL) $(KBUILD_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "$@.tmp" --vbox-version "$(VBOX_VERSION_STRING_NO_PUB)" \
539 $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
540 $(MV) -f -- "$@.tmp" "$@"
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
948VBOX_CORE_DOXYFILE_INPUT += \
949 $(wildcard $(PATH_ROOT)/src/VBox/VMM/VMMAll/*.h $(PATH_ROOT)/src/VBox/VMM/VMMR3/*.h $(PATH_ROOT)/src/VBox/VMM/VMMR0/*.h )
950
951
952includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
953
954# Generate the Doxyfile
955$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
956 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
957 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
958 | $$(dir $$@)
959 $(QUIET)$(RM) -f $@ $@.tmp $@.dep
960 $(QUIET)$(CP) -f Doxyfile.Core $@.tmp
961 $(QUIET)$(APPEND) $@.tmp
962 $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
963 $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
964 $(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
965 $(QUIET)$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
966 $(QUIET)$(APPEND) $@.tmp "EXCLUDE = " \
967 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
968 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
969 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
970 "$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
971 "$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c"
972 $(QUIET)$(APPEND) $@.tmp
973 $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
974 $(QUIET)$(APPEND) $@.tmp
975 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
976 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
977 $(QUIET)$(APPEND) $@.tmp
978 $(QUIET)$(APPEND) $@.tmp "PLANTUML_JAR_PATH = $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS)/common/plantuml/v*/plantuml*.jar)))"
979 $(QUIET)$(APPEND) $@.tmp
980 $(QUIET)$(MV) -f $@.tmp $@
981 @$(APPEND) $@.dep "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
982 @$(APPEND) $@.dep "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
983
984# Do the actual job.
985# Note! We must add the VBOX_JAVA dir to the path so doxygen can run plantuml.jar.
986$(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
987 | $(VBOX_CORE_DOXYFILE_OUTPUT)/
988 $(QUIET)$(RM) -f $@
989 $(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
990 $(if-expr $(VBOX_JAVA_VERSION)+0 >= 70000, $(REDIRECT) -E "PATH=$(VBOX_JAVA_BIN_PATH)$(HOST_PATH_SEP)$(PATH)" --,) \
991 doxygen $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
992 $(SED) -n \
993 -e ':nextwarning' \
994 -e '/^ *$(DOLLAR)/d' \
995 -e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
996 -e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
997 -e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
998 -e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
999 -e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
1000 -e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
1001 \
1002 -e '/unable to resolve link to .dtrace_pops_t./b ignore' \
1003 \
1004 -e 'b end' \
1005 -e ':ignore' \
1006 -e 'n' \
1007 -e '/^[[:space:]]/b ignore' \
1008 -e '/^Possible candidates/b ignore' \
1009 -e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
1010 -e 'b nextwarning' \
1011 -e ':end' \
1012 -e 'p' \
1013 --output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
1014 $(VBOX_CORE_DOXYFILE_OUTPUT)/errors
1015 $(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
1016 $(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
1017 $(APPEND) $@
1018
1019docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
1020
1021#
1022# This is a bit odd, but we attach the optional scm check run onto the 'docs' pass
1023# so the build box output is less confusing on failure.
1024#
1025ifeq ($(KBUILD_HOST),$(KBUILD_TARGET))
1026 ifdef VBOX_WITH_SCM_CHECK_RUN
1027 docs: scm.check.run
1028 endif
1029 .PHONY: scm.check.run
1030 scm.check.run: $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE)
1031 $(REDIRECT) -E VBOX_LOG_FLAGS="disabled" -E VBOX_LOG_DEST="nofile" \
1032 $(if-expr "$(KBUILD_HOST)" == "darwin",-E DYLD_FALLBACK_LIBRARY_PATH="$(VBOX_PATH_TOOLS)/..",) -- \
1033 $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE) -qvv --check-run $(PATH_ROOT)
1034endif
1035
1036
1037#
1038# Combined package build (windows only).
1039#
1040# The combined package is created by the x86 environment, so we do the amd64
1041# packaging in the build phase since it's just a few very slow jobs. We hold
1042# back the x86 build until the amd64 packaging starts, to try encourage
1043# parallel execution.
1044#
1045# Note! VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1 is required because the additions
1046# packing must be done in amd64 mode as it picks files from the x86 build.
1047#
1048
1049VBOX_COMBINED_PACKAGE_DEFS := \
1050 VBOX_WITH_COMBINED_PACKAGE=1 \
1051 VBOX_WITH_ALL_DOXYGEN_TARGETS= \
1052 VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1
1053
1054combined-package-fetch:
1055 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1056 + $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1057
1058combined-package-build-amd64:
1059 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1060
1061combined-package-build-amd64-packing: combined-package-build-amd64
1062 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
1063
1064combined-package-build-x86: combined-package-build-amd64
1065 + $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1066
1067combined-package-build: combined-package-build-amd64-packing combined-package-build-x86
1068
1069combined-package-packing:
1070 + $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
1071
1072
1073
1074#
1075# Common rsync bits.
1076#
1077
1078
1079## Overridable ssh name.
1080# On windows build boxes install https://github.com/PowerShell/Win32-OpenSSH/releases
1081# and point to it in LocalConfig. (The cygwin ssh frequently segfaults due to
1082# termination race or something along those lines.)
1083VBOX_SSH ?= ssh
1084VBOX_SSH_FOR_RSYNC ?= $(VBOX_SSH)
1085
1086## Overridable rsh name.
1087VBOX_RSYNC ?= rsync --rsh="$(VBOX_SSH_FOR_RSYNC)"
1088VBOX_RSYNC_NOSSH ?= rsync
1089
1090##
1091# The basic rsync invocation for syncing the tree into a VM; the source and
1092# target specs are missing.
1093#
1094# @param 1 os name.
1095# @param 2 arch or *.
1096# @param 3 nossh or empty
1097#
1098VBOX_RSYNC_IN_FN = $(if-expr "$(3)" != "nossh",$(VBOX_RSYNC),$(VBOX_RSYNC_NOSSH))\
1099 -a -v --delete --delete-excluded --prune-empty-dirs \
1100 --exclude=*.pyc \
1101 --exclude=.svn/ \
1102 --exclude=doc/Devices/ \
1103 --exclude=doc/tg/ \
1104 --exclude=doc/vp/ \
1105 --exclude=tinderclient.log \
1106 --exclude=tools/FetchDir/ \
1107 --exclude=webtools/ \
1108 --exclude=out/ \
1109 --exclude=tools/common/plantuml/ \
1110 $(if-expr "$1" == "solaris",--exclude=tools/common/openwatcom/,) \
1111 $(foreach os,$(filter-out $(1), darwin freebsd linux solaris os2 win), \
1112 --exclude=tools/$(os)/ \
1113 --exclude=tools/$(os).x86/ \
1114 --exclude=tools/$(os).amd64/ \
1115 --exclude=tools/$(os).arm64/ )
1116
1117#
1118# VM IP addresses.
1119#
1120VBOX_BLD_VM_LNX_IP := 192.168.27.2
1121VBOX_BLD_VM_OS2_IP := 192.168.27.3
1122VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
1123VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
1124VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
1125VBOX_BLD_VM_DARWIN_109_AMD64_IP := 192.168.27.18
1126VBOX_BLD_VM_DARWIN_ARM64_IP := 192.168.27.25
1127VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
1128VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
1129VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
1130VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
1131
1132VBOX_WITH_OS2_ADD_BUILD=1
1133
1134#
1135# For profiling the VM building steps.
1136#
1137if 0
1138 VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
1139 VBOX_BLD_VM_MSG_END__ =
1140else
1141 VBOX_BLD_VM_MSG_BEGIN = @echo "$(date ) - Start building $1."
1142 VBOX_BLD_VM_MSG_END__ = @echo "$(date ) - Done building $1."
1143endif
1144
1145#
1146# For killing old build jobs in the OS/2 VM before rsyncing.
1147#
1148VBOX_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 "
1149
1150
1151#
1152# Build the additions, all of them.
1153#
1154# This is currently tailored (hardcoded) for the additions
1155# build box. Can make it pretty and configurable later.
1156#
1157# The fetching must be done in serial fashion, while the building
1158# should be more flexible wrt to -jN.
1159#
1160additions-fetch:
1161 + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
1162 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 VBOX_DEF_MACOSX_VERSION_MIN=10.7
1163 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 #VBOX_DEF_MACOSX_VERSION_MIN=10.5
1164 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1165 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
1166ifdef VBOX_WITH_OS2_ADD_BUILD
1167 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
1168endif
1169 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1170 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
1171 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1172 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
1173
1174
1175## @todo Currently combined solaris additions building assumes that amd64 is
1176# built first. The windows amd64 additions need some x86 files, so don't change
1177# the order of the windows builds. TODO: Split building and packing for these two VMs.
1178additions-build: \
1179 additions-build-rsync-into-vms \
1180 additions-build-win.x86 \
1181 additions-build-win.amd64 \
1182 additions-build-solaris.amd64 \
1183 additions-build-solaris.x86 \
1184 additions-build-os2.x86 \
1185 additions-build-linux \
1186 additions-build-darwin.x86 \
1187 additions-build-darwin.amd64
1188
1189additions-build-rsync-into-vms: \
1190 additions-build-solaris.rsync-into-vm \
1191 additions-build-os2.rsync-into-vm \
1192 additions-build-darwin.x86.rsync-into-vm \
1193 additions-build-darwin.amd64.rsync-into-vm \
1194 additions-build-linux.rsync-into-vm
1195 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1196.NOTPARALLEL: additions-build-rsync-into-vms
1197.PHONY: additions-build-rsync-into-vms
1198
1199
1200VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1201 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1202
1203VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
1204 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1205
1206# Automatically determine the additions build subdir name. Used for figuring
1207# out directory names inside the additions building VMs.
1208VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1209
1210# When building in parallel on a Windows host, make sure we finish the host
1211# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1212ifeq ($(KBUILD_TARGET),win)
1213VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = #additions-build-win.x86 additions-build-win.amd64
1214else
1215VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
1216endif
1217
1218# ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
1219ifeq ($(KBUILD_TARGET),win)
1220additions-build-win.amd64-just-build:
1221 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1222additions-build-win.amd64: additions-build-win.x86 additions-build-win.amd64-just-build
1223 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1224else
1225additions-build-win.amd64: additions-build-win.x86
1226 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
1227 $(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 '
1228 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
1229endif
1230
1231ifeq ($(KBUILD_TARGET),win)
1232additions-build-win.x86:
1233 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1234 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1235else
1236additions-build-win.x86:
1237 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
1238 $(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 '
1239 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
1240endif
1241
1242# ASSUMES the 64-bit edition are built first. This also serializes VM access.
1243ifeq ($(KBUILD_TARGET),solaris)
1244additions-build-solaris.amd64:
1245 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1246 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1247
1248additions-build-solaris.x86: additions-build-solaris.amd64
1249 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
1250 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
1251
1252additions-build-solaris.rsync-into-vm:
1253else
1254additions-build-solaris.rsync-into-vm:
1255 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1256 '--exclude=src/VBox/Additions/WINNT/**' \
1257 '--exclude=src/VBox/Frontends/**' \
1258 '--exclude=src/VBox/VMM/**' \
1259 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1260
1261additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
1262 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
1263 $(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 '
1264 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
1265 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
1266 $(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 '
1267 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
1268
1269additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
1270 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1271 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1272
1273.NOTPARALLEL: additions-build-solaris.rsync-into-vm
1274.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
1275
1276additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
1277additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
1278endif
1279
1280ifdef VBOX_WITH_OS2_ADD_BUILD
1281 ifeq ($(KBUILD_TARGET),os2)
1282additions-build-os2.x86:
1283 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1284 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1285
1286additions-build-os2.rsync-into-vm:
1287 else
1288additions-build-os2.rsync-into-vm:
1289 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1290 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh)\
1291 '--exclude=src/VBox/Additions/x11/**' \
1292 '--exclude=src/VBox/Additions/WINNT/**' \
1293 '--exclude=src/VBox/Frontends/**' \
1294 '--exclude=src/VBox/VMM/**' \
1295 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1296
1297additions-build-os2.build-it: #additions-build-os2.rsync-into-vm
1298 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
1299 $(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"
1300 $(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
1301
1302additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
1303 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1304 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1305
1306.NOTPARALLEL: additions-build-os2.rsync-into-vm
1307.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
1308
1309additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
1310 endif
1311#
1312else
1313additions-build-os2.x86:
1314# Dummy
1315endif
1316
1317# Linux
1318ifeq ($(KBUILD_TARGET),linux)
1319additions-build-linux.amd64:
1320 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1321 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1322
1323additions-build-linux.x86:
1324 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1325 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
1326
1327additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
1328 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1329 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
1330else
1331additions-build-linux.rsync-into-vm:
1332 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1333 '--exclude=src/VBox/Additions/WINNT/**' \
1334 '--exclude=src/VBox/Frontends/**' \
1335 '--exclude=src/VBox/VMM/**' \
1336 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1337
1338additions-build-linux.build-it: additions-build-linux.rsync-into-vm
1339 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1340 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
1341 $(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 " '
1342 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
1343 endif
1344 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
1345 $(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) " '
1346 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
1347 ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
1348 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
1349 $(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 " '
1350 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
1351 endif
1352 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
1353 $(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) " '
1354 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
1355 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
1356 $(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 " '
1357 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
1358
1359additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
1360 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1361 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1362
1363.NOTPARALLEL: additions-build-linux.rsync-into-vm
1364.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
1365
1366additions-build-linux: additions-build-linux.rsync-out-of-vm
1367endif
1368
1369# Darwin
1370ifeq ($(KBUILD_TARGET),darwin)
1371additions-build-darwin.amd64:
1372 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1373 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
1374
1375additions-build-darwin.x86:
1376 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
1377 + $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
1378
1379additions-build-darwin: additions-build-darwin.amd64 additions-build-darwin.x86
1380.PHONY: additions-build-darwin.amd64 additions-build-darwin.x86
1381else
1382additions-build-darwin.amd64.rsync-into-vm:
1383 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1384 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1385 '--exclude=src/libs/xpcom18a4/**' \
1386 '--exclude=src/libs/curl*/**' \
1387 '--exclude=src/libs/libxml*/**' \
1388 '--exclude=src/libs/libvpx*/**' \
1389 '--exclude=src/libs/libopus*/**' \
1390 '--exclude=src/VBox/Additions/WINNT/**' \
1391 '--exclude=src/VBox/Additions/x11/**' \
1392 '--exclude=src/VBox/Artwork/x11/**' \
1393 '--include=src/VBox/Devices/' \
1394 '--include=src/VBox/Devices/Audio/' \
1395 '--include=src/VBox/Devices/Audio/**' \
1396 '--include=src/VBox/Devices/build/' \
1397 '--include=src/VBox/Devices/build/**' \
1398 '--exclude=src/VBox/Devices/**' \
1399 '--exclude=src/VBox/Disassembler/**' \
1400 '--exclude=src/VBox/ExtPacks/**' \
1401 '--exclude=src/VBox/Frontends/**' \
1402 '--exclude=src/VBox/HostDriver/**' \
1403 '--exclude=src/VBox/HostService/**' \
1404 '--exclude=src/VBox/ImageMounter/**' \
1405 '--exclude=src/VBox/Installer/win/**' \
1406 '--exclude=src/VBox/Main/**' \
1407 '--exclude=src/VBox/NetworkService/**' \
1408 '--exclude=src/VBox/RDP/**' \
1409 '--exclude=src/VBox/Storage/**' \
1410 '--include=src/VBox/ValidationKit/' \
1411 '--include=src/VBox/ValidationKit/Config.kmk' \
1412 '--include=src/VBox/ValidationKit/utils/' \
1413 '--include=src/VBox/ValidationKit/utils/audio/' \
1414 '--include=src/VBox/ValidationKit/utils/audio/**' \
1415 '--exclude=src/VBox/ValidationKit/**' \
1416 '--exclude=src/VBox/VMM/**' \
1417 '--exclude=src/apps/**' \
1418 '--exclude=src/recompiler/**' \
1419 . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1420
1421additions-build-darwin.x86.rsync-into-vm:
1422 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
1423 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
1424 '--exclude=src/libs/xpcom18a4/**' \
1425 '--exclude=src/libs/curl*/**' \
1426 '--exclude=src/libs/libxml*/**' \
1427 '--exclude=src/libs/libvpx*/**' \
1428 '--exclude=src/libs/libopus*/**' \
1429 '--exclude=src/VBox/Additions/WINNT/**' \
1430 '--exclude=src/VBox/Additions/x11/**' \
1431 '--exclude=src/VBox/Artwork/x11/**' \
1432 '--include=src/VBox/Devices/' \
1433 '--include=src/VBox/Devices/Audio/' \
1434 '--include=src/VBox/Devices/Audio/**' \
1435 '--include=src/VBox/Devices/build/' \
1436 '--include=src/VBox/Devices/build/**' \
1437 '--exclude=src/VBox/Devices/**' \
1438 '--exclude=src/VBox/Disassembler/**' \
1439 '--exclude=src/VBox/ExtPacks/**' \
1440 '--exclude=src/VBox/Frontends/**' \
1441 '--exclude=src/VBox/HostDriver/**' \
1442 '--exclude=src/VBox/HostService/**' \
1443 '--exclude=src/VBox/ImageMounter/**' \
1444 '--exclude=src/VBox/Installer/win/**' \
1445 '--exclude=src/VBox/Main/**' \
1446 '--exclude=src/VBox/NetworkService/**' \
1447 '--exclude=src/VBox/RDP/**' \
1448 '--exclude=src/VBox/Storage/**' \
1449 '--include=src/VBox/ValidationKit/' \
1450 '--include=src/VBox/ValidationKit/Config.kmk' \
1451 '--include=src/VBox/ValidationKit/utils/' \
1452 '--include=src/VBox/ValidationKit/utils/audio/' \
1453 '--include=src/VBox/ValidationKit/utils/audio/**' \
1454 '--exclude=src/VBox/ValidationKit/**' \
1455 '--exclude=src/VBox/VMM/**' \
1456 '--exclude=src/apps/**' \
1457 '--exclude=src/recompiler/**' \
1458 . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
1459
1460additions-build-darwin.amd64.build-it: additions-build-darwin.amd64.rsync-into-vm
1461 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Additions)
1462 $(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
1463 $(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
1464 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Additions)
1465
1466additions-build-darwin.x86.build-it: additions-build-darwin.x86.rsync-into-vm
1467 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Additions)
1468 $(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
1469# 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
1470 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Additions)
1471
1472additions-build-darwin.amd64.rsync-out-of-vm: additions-build-darwin.amd64.build-it
1473 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1474
1475additions-build-darwin.x86.rsync-out-of-vm: additions-build-darwin.x86.build-it
1476 $(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1477
1478additions-build-darwin.amd64: additions-build-darwin.amd64.rsync-out-of-vm
1479additions-build-darwin.x86: additions-build-darwin.x86.rsync-out-of-vm
1480additions-build-darwin: additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.amd64.rsync-out-of-vm
1481
1482.PHONY: additions-build-darwin.amd64.rsync-into-vm additions-build-darwin.amd64.rsync-out-of-vm additions-build-darwin.amd64.build-it \
1483 additions-build-darwin.x86.rsync-into-vm additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.x86.build-it
1484endif
1485
1486
1487additions-packing:
1488 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
1489 VBOX_WITH_ADDITIONS_ISO.darwin.amd64=1 \
1490 VBOX_WITH_ADDITIONS_ISO.darwin.x86= \
1491 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
1492 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
1493 VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
1494 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
1495 VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
1496 VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
1497 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
1498 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
1499 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
1500 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
1501 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
1502 -C src/VBox/Additions \
1503 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
1504
1505.PHONY: \
1506 additions-build-win.x86 \
1507 additions-build-win.amd64 \
1508 additions-build-solaris.amd64 \
1509 additions-build-solaris.x86 \
1510 additions-build-os2.x86 \
1511 additions-build-linux \
1512 additions-build-linux.amd64 \
1513 additions-build-linux.x86 \
1514 additions-build-linux.x86.combined \
1515 additions-build-darwin \
1516 additions-build-darwin.x86 \
1517 additions-build-darwin.amd64 \
1518 additions-packing
1519
1520
1521#
1522# Build the extension packs, all of them.
1523#
1524# This is tailored (hardcoded) for the extension pack build box.
1525#
1526# The fetching must be done in serial fashion, while the building should be
1527# more flexible wrt to -jN.
1528#
1529extpacks-fetch:
1530 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1531 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1532# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1533 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1534 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
1535 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1536 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=arm64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1537if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1538 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
1539# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
1540 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
1541# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
1542 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
1543endif
1544
1545
1546extpacks-build: \
1547 extpacks-build-win.amd64 \
1548 extpacks-build-win.x86 \
1549 extpacks-build-solaris.amd64 \
1550 extpacks-build-os2.x86 \
1551 extpacks-build-linux \
1552 extpacks-build-darwin.amd64 \
1553 extpacks-build-darwin.arm64 \
1554 extpacks-build-freebsd.amd64 \
1555 extpacks-build-freebsd.x86
1556
1557VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
1558 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1559
1560VBOX_EXTPACKS_BUILD.arm64 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
1561 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=arm64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1562
1563VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
1564 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1565
1566ifdef VBOX_WITH_PUEL_NLS
1567 VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
1568else
1569 VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
1570endif
1571
1572# Automatically determine the extpack build subdir name. Used for figuring out
1573# directory names inside the extension pack building VMs.
1574VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1575
1576# When building in parallel on a Windows host, make sure we finish the host
1577# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1578ifeq ($(KBUILD_TARGET),win)
1579VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
1580else
1581VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
1582endif
1583
1584extpacks-build-win.amd64:
1585ifeq ($(KBUILD_TARGET),win)
1586 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1587else
1588 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
1589 $(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 '
1590 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
1591endif
1592
1593extpacks-build-win.x86:
1594if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1595 ifeq ($(KBUILD_TARGET),win)
1596 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1597 else
1598 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
1599 $(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 '
1600 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
1601 endif
1602else
1603 @$(ECHO) "nothing to do for unsupported host $@"
1604endif
1605
1606ifeq ($(KBUILD_TARGET),solaris)
1607extpacks-build-solaris.amd64:
1608 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1609
1610else
1611# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1612extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1613 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1614
1615extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
1616 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
1617 $(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 '
1618 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
1619
1620extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
1621 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1622
1623#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
1624.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
1625
1626extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
1627endif
1628
1629extpacks-build-os2.x86:
1630#ifeq ($(KBUILD_TARGET),os2)
1631# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1632#else
1633# $(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) '
1634#endif
1635
1636ifeq ($(KBUILD_TARGET),linux)
1637extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1638 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1639
1640extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1641 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1642 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1643 else
1644 @$(ECHO) "nothing to do for unsupported host $@"
1645 endif
1646
1647extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
1648else
1649# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
1650extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1651 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1652
1653extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
1654 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
1655 $(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 " '
1656 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
1657 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1658 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
1659 $(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 " '
1660 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
1661 endif
1662
1663extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
1664 if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1665 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
1666 endif
1667 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1668
1669#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
1670.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
1671
1672extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
1673endif
1674
1675extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1676#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1677# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1678#else
1679# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
1680# $(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 '
1681# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
1682#endif
1683
1684extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1685#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1686# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1687#else
1688# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
1689# $(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 '
1690# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
1691#endif
1692
1693extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1694ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1695 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1696else
1697 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
1698 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1699 $(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 '
1700 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1701 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
1702endif
1703
1704extpacks-build-darwin.arm64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
1705ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.arm64)
1706 + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.arm64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
1707else
1708 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/arm64 extension packs)
1709 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,arm64) . $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
1710 $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_ARM64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=arm64 tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.arm64) all '
1711 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.arm64 out/
1712 $(call VBOX_BLD_VM_MSG_END__,Darwin/arm64 extension packs)
1713endif
1714
1715extpacks-packing:
1716if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
1717 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
1718 VBOX_ONLY_EXTPACKS=1 packing
1719else
1720 + $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.arm64 linux.amd64 solaris.amd64 win.amd64" \
1721 VBOX_ONLY_EXTPACKS=1 packing
1722endif
1723# +++ freebsd.amd64 ^^^
1724
1725.PHONY: \
1726 extpacks-build-win.x86 \
1727 extpacks-build-win.amd64 \
1728 extpacks-build-solaris.amd64 \
1729 extpacks-build-os2.x86 \
1730 extpacks-build-linux \
1731 extpacks-build-linux.amd64 \
1732 extpacks-build-linux.x86 \
1733 extpacks-build-freebsd.amd64 \
1734 extpacks-build-freebsd.x86 \
1735 extpacks-build-darwin.amd64 \
1736 extpacks-packing
1737
1738
1739#
1740# Build the test suite, all of it.
1741#
1742# This is currently tailored (hardcoded) for the additions build box just like
1743# the additions build above, which it in fact is a copy of.
1744#
1745validationkit-fetch:
1746 + $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
1747 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1748 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
1749# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1750# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
1751 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1752 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
1753 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
1754 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1755 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
1756 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1757 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
1758
1759
1760validationkit-build: \
1761 validationkit-build-rsync-into-vms \
1762 validationkit-build-solaris.amd64 \
1763 validationkit-build-solaris.x86 \
1764 validationkit-build-win.x86 \
1765 validationkit-build-win.amd64 \
1766 validationkit-build-os2.x86 \
1767 validationkit-build-linux \
1768 validationkit-build-freebsd.amd64 \
1769 validationkit-build-freebsd.x86 \
1770 validationkit-build-darwin.amd64 \
1771 validationkit-build-darwin.x86
1772
1773validationkit-build-rsync-into-vms: \
1774 validationkit-build-solaris.rsync-into-vm \
1775 validationkit-build-os2.rsync-into-vm \
1776 validationkit-build-linux.rsync-into-vm
1777 $(call MSG_L1,Rsynced the sources + tools into the VMs.)
1778.NOTPARALLEL: validationkit-build-rsync-into-vms
1779.PHONY: validationkit-build-rsync-into-vms
1780
1781
1782VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
1783 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
1784
1785VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
1786 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
1787
1788# Automatically determine the Validation Kit build subdir name. Used for figuring
1789# out directory names inside the test suite building VMs.
1790VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
1791
1792# When building in parallel on a Windows host, make sure we finish the host
1793# bit before kicking off any UNIX guest or we'll run into file sharing issues.
1794ifeq ($(KBUILD_TARGET),win)
1795VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
1796else
1797VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
1798endif
1799
1800validationkit-build-win.amd64:
1801ifeq ($(KBUILD_TARGET),win)
1802 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1803else
1804 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
1805 $(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 '
1806 $(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
1807endif
1808
1809validationkit-build-win.x86:
1810ifeq ($(KBUILD_TARGET),win)
1811 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1812else
1813 $(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
1814 $(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 '
1815 $(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
1816endif
1817
1818ifeq ($(KBUILD_TARGET),solaris)
1819validationkit-build-solaris.amd64:
1820 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1821
1822validationkit-build-solaris.x86:
1823 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1824
1825else
1826validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1827 $(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
1828 '--exclude=src/VBox/Additions/WINNT/**' \
1829 '--exclude=src/VBox/Frontends/**' \
1830 '--exclude=src/VBox/VMM/**' \
1831 . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1832
1833validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
1834 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
1835 $(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 '
1836 $(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
1837 $(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
1838 $(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 '
1839 $(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
1840
1841validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
1842 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
1843 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
1844
1845.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
1846
1847validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
1848validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
1849endif
1850
1851ifeq ($(KBUILD_TARGET),os2)
1852validationkit-build-os2.x86:
1853 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1854validationkit-build-os2.rsync-into-vm:
1855else # !OS/2
1856validationkit-build-os2.rsync-into-vm:
1857 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1858 $(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh) \
1859 '--exclude=src/VBox/Additions/x11/**' \
1860 '--exclude=src/VBox/Additions/WINNT/**' \
1861 '--exclude=src/VBox/Frontends/**' \
1862 '--exclude=src/VBox/VMM/**' \
1863 . rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1864
1865validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
1866 $(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
1867 $(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"
1868 $(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
1869
1870validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
1871 -$(VBOX_BLD_VM_OS2_KKILL_STUFF)
1872 $(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
1873
1874.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
1875
1876validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
1877endif # !OS/2
1878
1879ifeq ($(KBUILD_TARGET),linux)
1880validationkit-build-linux.amd64:
1881 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1882
1883validationkit-build-linux.x86:
1884 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1885
1886validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
1887else
1888validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1889 $(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
1890 '--exclude=src/VBox/Additions/WINNT/**' \
1891 '--exclude=src/VBox/Frontends/**' \
1892 '--exclude=src/VBox/VMM/**' \
1893 . $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1894
1895validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
1896 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
1897 $(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 " '
1898 $(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
1899 $(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
1900 $(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 " '
1901 $(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
1902
1903validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
1904 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
1905 $(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
1906
1907.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
1908
1909validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
1910endif
1911
1912validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1913#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
1914# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1915#else
1916# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
1917# $(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 '
1918# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
1919#endif
1920
1921validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1922#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
1923# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1924#else
1925# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
1926# $(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 '
1927# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
1928#endif
1929
1930validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1931ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
1932 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1933else
1934 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
1935 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1936 $(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 '
1937 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
1938 $(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
1939endif
1940
1941validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
1942ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
1943 + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
1944else
1945 $(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
1946 $(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
1947 $(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 '
1948 $(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
1949 $(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
1950endif
1951
1952
1953validationkit-packing:
1954 + $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
1955 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
1956 VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
1957 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
1958 VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
1959 VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
1960 VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
1961 VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
1962 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
1963 VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
1964 VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
1965 VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
1966 -C src/VBox/ValidationKit \
1967 $(PATH_OUT)/VBoxValidationKit.zip \
1968 $(PATH_OUT)/VBoxTestBoxScript.zip
1969
1970.PHONY: \
1971 validationkit-build-win.x86 \
1972 validationkit-build-win.amd64 \
1973 validationkit-build-solaris.amd64 \
1974 validationkit-build-solaris.x86 \
1975 validationkit-build-os2.x86 \
1976 validationkit-build-linux \
1977 validationkit-build-linux.amd64 \
1978 validationkit-build-linux.x86 \
1979 validationkit-build-freebsd.amd64 \
1980 validationkit-build-freebsd.x86 \
1981 validationkit-build-darwin.amd64 \
1982 validationkit-build-darwin.x86 \
1983 validationkit-packing
1984
1985
1986#
1987# Build the EFI firmware, all of it.
1988#
1989efi-fetch:
1990 + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
1991
1992efi-build: $(VBOX_VERSION_HEADER)
1993 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
1994
1995efi-packing:
1996 + $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip
1997
1998
1999#
2000# Generate VirtualBox-x.x.x.zip (PUEL) snapshot archive for internal use only
2001# - includes kBuild
2002# - must be executed on an PUEL checkout
2003#
2004
2005# the path where to store the zip archive
2006ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
2007# the root directory inside the zip archive
2008ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
2009# the name of the zip archive
2010ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
2011snapshot-puel:
2012 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
2013 @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
2014 echo; \
2015 echo "Did not find RDP stuff, is this an OSE branch?"; \
2016 echo; \
2017 exit 1; \
2018 fi
2019 @if [ -z "$(PASSWORD)" ]; then \
2020 echo; \
2021 echo "Please specify a password with PASSWORD=..."; \
2022 echo; \
2023 exit 1; \
2024 fi
2025 $(QUIET)$(MKDIR) -p $(ZIPPATH)
2026 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
2027 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
2028 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
2029 $(QUIET)(cd $(ZIPPATH); 7z a \
2030 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
2031 -xr!.svn \
2032 -i!$(ZIPROOT)/Config.kmk \
2033 -i!$(ZIPROOT)/Doxyfile.Core \
2034 -i!$(ZIPROOT)/Makefile.kmk \
2035 -i!$(ZIPROOT)/configure \
2036 -i!$(ZIPROOT)/configure.vbs \
2037 -i!$(ZIPROOT)/doc \
2038 -i!$(ZIPROOT)/include \
2039 -i!$(ZIPROOT)/kBuild \
2040 -i!$(ZIPROOT)/src \
2041 -i!$(ZIPROOT)/tools/env.sh \
2042 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
2043 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
2044 -x!$(ZIPROOT)/doc/Devices \
2045 -x!$(ZIPROOT)/doc/\*pdf \
2046 -x!$(ZIPROOT)/doc/VMM \
2047 -x!$(ZIPROOT)/doc/licenses_old \
2048 -x!$(ZIPROOT)/doc/manual/de_DE \
2049 -x!$(ZIPROOT)/doc/manual/fr_FR \
2050 -x!$(ZIPROOT)/src/tests \
2051 -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
2052 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
2053 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
2054 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
2055 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
2056 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
2057 $(ZIPPATH)/$(ZIPNAME))
2058 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
2059
2060
2061#
2062# Generate VirtualBox-x.x.x.tar.bz2 (OSE) snapshot archive
2063# - includes kBuild
2064#
2065
2066snapshot-ose:
2067ifndef VBOX_OSE
2068 $(QUIET)$(RM) -Rf $(wildcard $(PATH_OUT)/vbox-ose-snap-*) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
2069 $(call MSG_L1,Making OSE snapshot at $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING))
2070 $(KBUILD_DEVTOOLS)/bin/ose-snapshot.sh $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING)
2071 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
2072 $(REDIRECT) -C $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING) -- \
2073 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
2074else
2075 $(QUIET)$(RM) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
2076 $(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
2077 $(REDIRECT) -C $(PATH_ROOT) -- \
2078 $(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
2079endif
2080
2081
2082#
2083# Generate ALL the rules.
2084#
2085include $(FILE_KBUILD_SUB_FOOTER)
2086
2087
2088#
2089# Generate x86.mac and err.mac.
2090#
2091incs:
2092 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
2093 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
2094 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
2095 $(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
2096 $(SED) -f include/VBox/various.sed --output include/iprt/formats/dwarf.mac include/iprt/formats/dwarf.h
2097 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
2098 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
2099 $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
2100 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
2101 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
2102
2103
2104#
2105# Legacy.
2106#
2107vslick.h:
2108 $(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
2109 exit 1
2110
2111
2112#
2113# Add fetching of the tools to the 'up[date][2]' targets.
2114#
2115up update up2 update2::
2116ifndef VBOX_OSE
2117 +$(MAKE) -C tools fetch
2118else
2119 $(MAKE) -C tools -f Makefile-ose.kmk fetch
2120endif
2121
2122
2123#
2124# Aliases for building the SDK.
2125#
2126.NOTPARALLEL: sdk sdk-fetch
2127sdk:
2128 + $(KMK) VBOX_ONLY_SDK=1 \
2129 pass_bldprogs pass_others pass_installs pass_packing
2130
2131sdk-fetch:
2132 + $(KMK) VBOX_ONLY_SDK=1 -C tools
2133
2134
2135#
2136# Build the essentials to run a VM. Incomplete. Use with care!
2137#
2138quick: \
2139 VBoxRT \
2140 VBoxVMM \
2141 VMMR0 \
2142 VBoxDD \
2143 VBoxDDR0 \
2144 VBoxDD2 \
2145 VBoxDD2R0 \
2146 VBoxC \
2147 VBoxSVC \
2148 $(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
2149 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
2150 $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
2151 $(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