VirtualBox

source: vbox/trunk/Makefile.kmk@ 22383

最後變更 在這個檔案從22383是 22383,由 vboxsync 提交於 16 年 前

qgl framebuffer: make QtOpenGL lib be properly installed to bin dir on build

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 34.3 KB
 
1# $Id: Makefile.kmk 22383 2009-08-21 12:39:36Z vboxsync $
2## @file
3# Top level makefile.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.alldomusa.eu.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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = .
23include $(KBUILD_PATH)/subheader.kmk
24
25#
26# Sub-makefiles / Sub-directories.
27#
28ifdef VBOX_SINGLE_MAKEFILE
29 if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS)
30 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
31 endif
32 include $(PATH_SUB_CURRENT)/src/Makefile.kmk
33else
34 if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS)
35 SUBDIRS = doc/manual
36 endif
37 SUBDIRS += src
38endif
39
40
41#
42# Clean up global stuff that Config.kmk generates.
43#
44OTHER_CLEAN += \
45 $(VBOX_PACKAGE_HEADER) \
46 $(VBOX_LICENSE_VER_KMK) \
47 $(VBOX_VERSION_MK) \
48 $(VBOX_VERSION_HEADER) \
49 $(VBOX_VERSION_STAMP) \
50 $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
51 $(VBOX_SVN_REV_KMK).ts \
52 $(VBOX_SVN_REV_KMK) \
53 $(PATH_OUT)/GCCConfig.kmk
54
55
56ifndef VBOX_ONLY_DOCS
57ifndef VBOX_ONLY_ADDITIONS
58
59ifndef VBOX_OSE
60 #
61 # Install the license (and misc non-executable stuff).
62 #
63 INSTALLS += nobin
64 nobin_INST = $(INST_BIN)
65 nobin_MODE = 0644
66 nobin_SOURCES =
67 ifdef VBOX_LICENSE_FILES
68 nobin_SOURCES += \
69 $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
70 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
71 endif
72endif # !OSE
73
74
75#
76# Install external binaries (mostly redistributable parts of tools we use).
77# This must be done *before* we build the manual.
78#
79# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
80# and .linux property suffixes.
81#
82INSTALLS += bin
83
84bin_INST = $(INST_BIN)
85
86# The SDL DLLs
87if1of ($(KBUILD_TARGET), win os2)
88 ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
89 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
90 bin_SOURCES += \
91 $(DLL_SDK_LIBSDL_SDL)
92 ifdef VBOX_WITH_SECURELABEL
93 bin_SOURCES += \
94 $(DLL_SDK_LIBSDL_SDLTTF)
95 endif
96 ifeq ($(KBUILD_TARGET),os2)
97 bin_SOURCES += \
98 $(DLL_SDK_LIBSDL_FSLIB)
99 endif
100 endif
101endif
102
103
104# The compiler runtime DLLs.
105ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
106 ifdef VBOX_USE_VCC80
107 include $(KBUILD_PATH)/tools/VCC80X86.kmk
108 include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
109 bin_SOURCES.x86 += \
110 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
111 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
112 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
113 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
114 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
115 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
116 bin_SOURCES.amd64 += \
117 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
118 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
119 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
120 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
121 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
122 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
123 endif
124 ifndef VBOX_USE_VCC80
125 VBOX_INSTALL_VCC70_RT = 1
126 endif
127 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
128 VBOX_INSTALL_VCC70_RT = 1
129 endif
130 ifdef VBOX_INSTALL_VCC70_RT
131 include $(KBUILD_PATH)/tools/VCC70.kmk
132 ## @todo Move these defines to VCC70.
133 DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
134 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
135 bin_SOURCES += \
136 $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
137 $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
138 endif
139 DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
140 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
141 bin_SOURCES += \
142 $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
143 $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
144 endif
145 DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
146 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
147 bin_SOURCES += \
148 $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
149 $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
150 endif
151 endif
152endif
153
154ifdef VBOX_WITH_VIDEOHWACCEL
155# QGL framebuffer is required
156 VBOX_GUI_USE_QGL=1
157endif
158
159ifdef VBOX_WITH_QT4_SUN
160#
161# Install our Qt DLLs / Shared Objects / Frameworks.
162# Note: The installer fixes the darwin .dylibs when hardening is enabled.
163#
164 INSTALLS += qt4-bin
165 qt4-bin_MODE = 755
166 ifeq ($(KBUILD_TARGET),darwin)
167 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
168 qt4-bin_SOURCES = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
169 ,$(VBOX_PATH_QT4)/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox=>Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox)
170 ifdef VBOX_WITH_COCOA_QT
171 qt4-bin_SOURCES += \
172 $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib \
173 $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib \
174 $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
175 endif
176 qt4-bin_SOURCES += \
177 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
178 qt4-bin_SYMLINKS = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
179 ,Frameworks/$(qtmod)VBox.framework/$(qtmod)VBox=>Versions/4/$(qtmod)VBox)
180 ifdef VBOX_WITH_COCOA_QT
181 qt4-bin_SYMLINKS += \
182 Frameworks/QtGuiVBox.framework/Resources=>Versions/4/Resources/
183 endif
184 else ifeq ($(KBUILD_TARGET),win)
185 qt4-bin_INST = $(INST_BIN)
186 qt4-bin_SOURCES = \
187 $(VBOX_PATH_QT4_LIB)/QtCoreVBox4.dll \
188 $(VBOX_PATH_QT4_LIB)/QtGuiVBox4.dll \
189 $(VBOX_PATH_QT4_LIB)/QtNetworkVBox4.dll \
190 $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/QtOpenGLVBox4.dll,) \
191 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4.dll=>accessible/qtaccessiblewidgets4.dll
192 else
193 qt4-bin_INST = $(INST_BIN)
194 qt4-bin_SOURCES = \
195 $(VBOX_PATH_QT4_LIB)/libQtCoreVBox.so.4 \
196 $(VBOX_PATH_QT4_LIB)/libQtGuiVBox.so.4 \
197 $(VBOX_PATH_QT4_LIB)/libQtNetworkVBox.so.4 \
198 $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/libQtOpenGLVBox.so.4,) \
199 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
200 endif
201endif # VBOX_WITH_QT4_SUN
202
203
204#
205# For building the combined package, just get the additions .ISO
206# once for amd64 to prevent version inconsistences. In all other
207# cases we get the .ISO per target architecture.
208#
209ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
210 ifdef VBOX_WITH_COMBINED_PACKAGE
211 ifeq ($(KBUILD_TARGET_ARCH),amd64)
212 INSTALLS += buildserver-additions
213 endif
214 else
215 INSTALLS += buildserver-additions
216 endif
217
218#
219# Install additions iso from the build server.
220# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
221# been added to kBuild.
222#
223buildserver-additions_INST = $(INST_ADDITIONS_ISO)
224buildserver-additions_MODE = 0644
225buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
226buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
227
228$(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
229 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
230 ifneq ($(KBUILD_HOST),win)
231 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
232 else
233 $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-additions-affinity-hack
234 endif
235 $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
236 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
237
238 ifeq ($(KBUILD_HOST),win)
239buildserver-additions-affinity-hack:
240 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
241 endif
242endif
243
244
245#
246#
247# Install documentation files (at the moment the .chm) from the build server.
248# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
249# been added to kBuild.
250#
251ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
252## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
253INSTALLS += buildserver-docs
254buildserver-docs_INST = $(INST_BIN)
255buildserver-docs_MODE = 0644
256buildserver-docs_SOURCES = \
257 $(addprefix $(PATH_TARGET)/, \
258 VirtualBox.chm UserManual.pdf \
259 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
260buildserver-docs_CLEANS = \
261 $(buildserver-docs_0_OUTDIR)/unpacked.ts \
262 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
263 $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
264 $(addprefix $(PATH_TARGET)/, \
265 VirtualBox.chm UserManual.pdf \
266 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
267
268## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
269include $(KBUILD_PATH)/tools/ZIP.kmk
270
271$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
272$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
273 $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
274 $(call MSG_L1,Unpacking documentation)
275 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
276 $(APPEND) -t $@ "done"
277
278$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
279 $(RM) -f $@ [email protected]
280 ifneq ($(KBUILD_HOST),win)
281 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename [email protected]
282 else
283 $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-documentation-affinity-hack
284 endif
285 $(CP) -f [email protected] $@
286 $(RM) -f [email protected]
287
288 ifeq ($(KBUILD_HOST),win)
289buildserver-documentation-affinity-hack:
290 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
291 endif
292endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
293
294
295#
296# Install staged binaries on platforms where we can't cross
297# compile things.
298#
299ifn1of ($(KBUILD_TARGET), l4 linux win)
300 VBOX_PATH_STAGED ?= .
301
302 # Additions.
303 ifndef VBOX_WITH_LINUX_ADDITIONS
304 ifndef VBOX_WITH_WIN32_ADDITIONS
305 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
306 INSTALLS += staged-additions
307 staged-additions_INST = $(INST_ADDITIONS_ISO)
308 staged-additions_MODE = 0644
309 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
310 endif
311 endif
312 endif
313
314 # guesttool.exe
315 ifndef VBOX_WITH_WIN32_ADDITIONS
316 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
317 INSTALLS += staged-guesttool
318 staged-guesttool_INST = $(INST_BIN)
319 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
320 endif
321 endif
322
323endif
324
325endif # !VBOX_ONLY_ADDITIONS
326endif # !VBOX_ONLY_DOCS
327
328
329ifdef VBOX_ONLY_DOCS
330# It may sound a bit odd, but for preparing the documentation package the
331# doxygen documentation isn't needed and increases the build time a lot.
332docs:
333else # !VBOX_ONLY_DOCS
334#
335# Generate documentation.
336# (This should be converted into a separate pass or merged with an existing one later.)
337#
338 ifdef VBOX_SINGLE_MAKEFILE
339 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
340docs: docs.Core
341 endif
342 else # !VBOX_SINGLE_MAKEFILE
343docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGETS),docs.Core)
344 $(KMK) -C src/VBox/Main docs.Main
345 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
346 $(KMK) -C src/VBox/Runtime docs.iprt
347 endif
348 endif # !VBOX_SINGLE_MAKEFILE
349endif # !VBOX_ONLY_DOCS
350
351docs.Core docs.core: $(PATH_TARGET)/docs.Core
352
353
354
355#
356# The core (VMM+REM+Devices+Main) documentation.
357#
358# This includes so much because we wish to have the complete CFGM
359# and GCFGM lists.
360#
361OTHER_CLEAN += \
362 $(PATH_TARGET)/Doxyfile.Core \
363 $(PATH_TARGET)/Doxyfile.Core.dep
364
365VBOX_CORE_DOXYFILE_INPUT_DIRS = \
366 include/iprt \
367 include/VBox \
368 include/VBox/com \
369 include/VBox/HostServices \
370 src/VBox/VMM \
371 src/VBox/VMM/VMMR0 \
372 src/VBox/VMM/VMMGC \
373 src/VBox/VMM/VMMAll \
374 src/VBox/VMM/PATM \
375 src/VBox/VMM/PATM/VMMR0 \
376 src/VBox/VMM/PATM/VMMGC \
377 src/VBox/VMM/PATM/VMMAll \
378 src/VBox/VMM/VMMSwitcher \
379 src/VBox/Debugger \
380 src/VBox/Devices \
381 src/VBox/Devices/Audio \
382 src/VBox/Devices/Bus \
383 src/VBox/Devices/Graphics \
384 src/VBox/Devices/Graphics/BIOS \
385 src/VBox/Devices/Input \
386 src/VBox/Devices/Networking \
387 src/VBox/Devices/PC \
388 src/VBox/Devices/PC/BIOS \
389 src/VBox/Devices/Parallel \
390 src/VBox/Devices/Serial \
391 src/VBox/Devices/Storage \
392 src/VBox/Devices/VBoxHDDFormats \
393 src/VBox/Devices/VBoxHDDFormats/StorageCraft \
394 src/VBox/Devices/USB \
395 src/VBox/Devices/USB/darwin \
396 src/VBox/Devices/USB/linux \
397 src/VBox/Devices/USB/os2 \
398 src/VBox/Devices/USB/solaris \
399 src/VBox/Devices/USB/vrdp \
400 src/VBox/Devices/USB/win32 \
401 src/VBox/Devices/VMMDev \
402 src/VBox/Main/include \
403 src/VBox/Main/include/hgcm \
404 src/VBox/Main \
405 src/VBox/Main/glue \
406 src/VBox/Main/hgcm \
407 src/VBox/Main/webservice \
408 src/VBox/Main/xml \
409 src/VBox/Main/darwin \
410 src/VBox/Main/linux \
411 src/VBox/Main/os2 \
412 src/VBox/Main/solaris \
413 src/VBox/Main/win \
414 src/VBox/Main/xpcom \
415 src/VBox/HostServices \
416 src/VBox/HostServices/SharedClipboard \
417 src/VBox/HostServices/SharedFolders \
418 src/VBox/HostServices/SharedInfoServices \
419 src/VBox/HostServices/SharedOpenGL \
420 src/VBox/HostDrivers/Support \
421 src/VBox/HostDrivers/Support/darwin \
422 src/VBox/HostDrivers/Support/freebsd \
423 src/VBox/HostDrivers/Support/l4 \
424 src/VBox/HostDrivers/Support/linux \
425 src/VBox/HostDrivers/Support/os2 \
426 src/VBox/HostDrivers/Support/solaris \
427 src/VBox/HostDrivers/Support/win \
428 src/VBox/HostDrivers/VBoxNetFlt \
429 src/VBox/HostDrivers/VBoxNetFlt/darwin \
430 src/VBox/HostDrivers/VBoxNetFlt/linux \
431 src/VBox/HostDrivers/VBoxNetFlt/solaris \
432 src/VBox/HostDrivers/VBoxNetFlt/win \
433 src/VBox/HostDrivers/VBoxNetNat \
434 src/VBox/HostDrivers/VBoxNetNat/darwin \
435 src/VBox/HostDrivers/VBoxNetNat/linux \
436 src/VBox/HostDrivers/VBoxNetNat/solaris \
437 src/VBox/HostDrivers/VBoxNetNat/win \
438 src/VBox/HostDrivers/VBoxNetAdp \
439 src/VBox/HostDrivers/VBoxNetAdp/darwin \
440 src/VBox/HostDrivers/VBoxNetAdp/linux \
441 src/VBox/HostDrivers/VBoxNetAdp/solaris \
442 src/VBox/HostDrivers/VBoxNetAdp/win \
443 src/VBox/HostDrivers/VBoxUSB \
444 src/VBox/HostDrivers/VBoxUSB/darwin \
445 src/VBox/HostDrivers/VBoxUSB/os2 \
446 src/VBox/HostDrivers/VBoxUSB/solaris \
447 src/VBox/HostDrivers/VBoxUSB/win \
448 src/VBox/HostDrivers/VBoxUSB/win/Device \
449 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
450 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
451 src/VBox/HostDrivers/VBoxUSB/win/Filter \
452 src/VBox/HostDrivers/VBoxUSB/win/Install \
453 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
454 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
455 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
456 src/VBox/HostDrivers/VBoxUSB/win/usbd \
457
458# These must come first in order to make things look nice.
459VBOX_CORE_DOXYFILE_INPUT_FIRST =\
460 $(PATH_ROOT)/doc/VBox-doc.c \
461 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
462 $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
463 $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
464 $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
465 $(PATH_ROOT)/include/VBox/cdefs.h \
466 $(PATH_ROOT)/include/VBox/vmapi.h \
467 $(PATH_ROOT)/include/VBox/vmm.h \
468 $(PATH_ROOT)/include/VBox/cpum.h \
469 $(PATH_ROOT)/include/VBox/mm.h \
470 $(PATH_ROOT)/include/VBox/pgm.h \
471 $(PATH_ROOT)/include/VBox/selm.h \
472 $(PATH_ROOT)/include/VBox/trpm.h \
473 $(PATH_ROOT)/include/VBox/patm.h \
474 $(PATH_ROOT)/include/VBox/dbgf.h \
475 $(PATH_ROOT)/include/VBox/stam.h \
476 $(PATH_ROOT)/include/VBox/em.h \
477 $(PATH_ROOT)/include/VBox/pdm.h \
478 $(PATH_ROOT)/include/VBox/rem.h \
479 $(PATH_ROOT)/include/VBox/iom.h \
480 $(PATH_ROOT)/include/VBox/cfgm.h \
481 $(PATH_ROOT)/include/VBox/tm.h \
482 $(PATH_ROOT)/include/VBox/csam.h \
483 $(PATH_ROOT)/include/VBox/ssm.h \
484 $(PATH_ROOT)/include/VBox/hwaccm.h \
485 $(PATH_ROOT)/include/VBox/hwacc_svm.h \
486 $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
487 \
488 $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
489 $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
490 $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
491 $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
492 $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
493 $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
494 $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
495 $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
496 $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
497 $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
498 $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
499 $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
500 $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
501 $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
502 $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
503 $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
504 $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
505 $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
506 $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
507 \
508 $(PATH_ROOT)/include/VBox/vm.h \
509 \
510 $(PATH_ROOT)/include/VBox/sup.h \
511 $(PATH_ROOT)/include/VBox/VBoxHDD.h \
512 $(PATH_ROOT)/include/VBox/types.h \
513 $(PATH_ROOT)/include/VBox/err.h \
514 $(PATH_ROOT)/include/VBox/x86.h \
515 $(PATH_ROOT)/include/VBox/cpumdis.h \
516 $(PATH_ROOT)/include/VBox/dbggui.h \
517 $(PATH_ROOT)/include/VBox/dis.h \
518 $(PATH_ROOT)/include/VBox/disopcode.h \
519 $(PATH_ROOT)/include/VBox/intnet.h \
520 $(PATH_ROOT)/include/VBox/settings.h \
521 $(PATH_ROOT)/include/VBox/pci.h \
522 $(PATH_ROOT)/include/VBox/scsi.h \
523 $(PATH_ROOT)/include/VBox/shflsvc.h \
524 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
525 $(PATH_ROOT)/include/VBox/usb.h \
526 $(PATH_ROOT)/include/VBox/vusb.h \
527 \
528 $(PATH_ROOT)/include/VBox/log.h \
529 $(PATH_ROOT)/include/VBox/param.h \
530 $(PATH_ROOT)/include/VBox/version.h
531
532VBOX_CORE_DOXYFILE_INPUT := \
533 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
534 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
535VBOX_CORE_DOXYFILE_INPUT := \
536 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
537 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
538
539# And some some additional stuff.
540VBOX_CORE_DOXYFILE_INPUT += \
541 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
542 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
543
544
545VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
546BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
547
548-include $(PATH_TARGET)/Doxyfile.Core.dep
549
550# Generate the Doxyfile
551$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
552 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
553 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
554 | $$(dir $$@)
555 $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
556 $(CP) -f Doxyfile.Core [email protected]
557 $(APPEND) [email protected]
558 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
559 $(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
560 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
561 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
562 $(APPEND) [email protected]
563 $(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
564 $(APPEND) [email protected]
565 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
566 $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
567 $(APPEND) [email protected]
568 $(MV) -f [email protected] $@
569 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
570 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
571
572# Do the actual job.
573$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
574 $(RM) -f $(PATH_TARGET)/docs.Core
575 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
576 doxygen $(PATH_TARGET)/Doxyfile.Core
577 $(APPEND) $(PATH_TARGET)/docs.Core
578
579
580
581#
582# Build the additions, all of them.
583#
584# This is currently tailored (hardcoded) for the additions
585# build box. Can make it pretty and configurable later.
586#
587# The fetching must be done in serial fashion, while the building
588# should be more flexible wrt to -jN.
589#
590additions-fetch:
591 + $(KMK) -C tools fetch
592 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
593 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux
594# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2
595 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
596 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris
597 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
598 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win
599
600
601## @todo Currently combined solaris additions building assumes that amd64 is
602# built first. The windows amd64 additions need some x86 files, so don't change
603# the order of the windows builds.
604# Do not change the order of dependencies here without testing.
605additions-build: \
606 additions-build-win.x86 \
607 additions-build-win.amd64 \
608 additions-build-solaris.amd64 \
609 additions-build-solaris.x86 \
610 additions-build-os2.x86 \
611 additions-build-linux.amd64 \
612 additions-build-linux.x86
613
614VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
615 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
616 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
617 VBOX_SVN_REV=$(VBOX_SVN_REV) \
618 all packing
619
620VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
621 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
622 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
623 VBOX_SVN_REV=$(VBOX_SVN_REV) \
624 all packing
625
626# Automatically determine the additions build subdir name. Used for figuring
627# out directory names inside the additions building VMs.
628VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
629
630VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
631
632additions-build-win.amd64:
633ifeq ($(KBUILD_TARGET),win)
634 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
635else
636 $(call MSG_L1,Building Windows/amd64 additions)
637 $(VBOX_KMK_TIME) ssh [email protected] "cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64)"
638endif
639
640additions-build-win.x86:
641ifeq ($(KBUILD_TARGET),win)
642 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
643else
644 $(call MSG_L1,Building Windows/x86 additions)
645 $(VBOX_KMK_TIME) ssh [email protected] " cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
646endif
647
648additions-build-solaris.amd64:
649ifeq ($(KBUILD_TARGET),solaris)
650 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
651else
652 $(call MSG_L1,Building Solaris/amd64 additions)
653 rsync -av --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
654 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
655 rsync -av --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
656endif
657
658# ASSUMES 64-bit is built already. See @todo above.
659additions-build-solaris.x86:
660ifeq ($(KBUILD_TARGET),solaris)
661 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1
662else
663 $(call MSG_L1,Building Solaris/x86 additions)
664 rsync -av --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
665 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
666 rsync -av --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
667endif
668
669additions-build-os2.x86:
670#ifeq ($(KBUILD_TARGET),os2)
671# + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
672#else
673# $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
674#endif
675
676additions-build-linux.amd64:
677ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
678 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
679else
680 $(call MSG_L1,Building Linux/amd64 additions)
681 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
682endif
683
684additions-build-linux.x86:
685ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
686 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
687else
688 $(call MSG_L1,Building Linux/x86 additions)
689 $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
690endif
691
692
693additions-packing:
694 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
695 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
696 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
697 VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
698 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
699 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
700 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
701 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
702 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
703 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
704 -C src/VBox/Additions \
705 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
706
707
708
709#
710# Generate VirtualBox-OSE-x.x.x.tar.bz2 (OSE) tarballs for distribution
711# - includes kBuild
712# - must be executed on an OSE checkout
713#
714
715# the path where to store the tarball
716TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
717# the root directory inside the tarball
718TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
719# the name of the tarball file
720TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
721snapshot-ose:
722 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
723 @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
724 echo; \
725 echo "Found USB stuff, refused to build OSE tarball!"; \
726 echo; \
727 exit 1; \
728 fi; \
729 if [ -z "$(VBOX_OSE)" ]; then \
730 echo; \
731 echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
732 echo; \
733 exit 1; \
734 fi
735 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
736 $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
737 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
738 $(QUIET)tar -cjh --owner 0 --group 0 --totals \
739 --exclude=.svn \
740 --exclude=$(TARBALLROOT)/out \
741 --exclude=$(TARBALLROOT)/env.sh \
742 --exclude=$(TARBALLROOT)/configure.log \
743 --exclude=$(TARBALLROOT)/build.log \
744 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
745 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
746 --exclude=$(TARBALLROOT)/prebuild \
747 -C $(TARBALLPATH) \
748 -f $(TARBALLPATH)/$(TARBALLNAME) \
749 $(TARBALLROOT)
750 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
751
752
753#
754# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
755# - includes kBuild
756# - must be executed on an PUEL checkout
757#
758
759# the path where to store the zip archive
760ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
761# the root directory inside the zip archive
762ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
763# the name of the zip archive
764ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
765snapshot-puel:
766 @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
767 @if [ ! -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
768 echo; \
769 echo "Did not find USB stuff, is this an OSE branch?"; \
770 echo; \
771 exit 1; \
772 fi
773 @if [ -z "$(PASSWORD)" ]; then \
774 echo; \
775 echo "Please specify a password with PASSWORD=..."; \
776 echo; \
777 exit 1; \
778 fi
779 $(QUIET)$(MKDIR) -p $(ZIPPATH)
780 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
781 $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
782 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
783 $(QUIET)(cd $(ZIPPATH); 7z a \
784 -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
785 -xr!.svn \
786 -i!$(ZIPROOT)/Config.kmk \
787 -i!$(ZIPROOT)/Doxyfile.Core \
788 -i!$(ZIPROOT)/Makefile.kmk \
789 -i!$(ZIPROOT)/configure \
790 -i!$(ZIPROOT)/configure.vbs \
791 -i!$(ZIPROOT)/doc \
792 -i!$(ZIPROOT)/include \
793 -i!$(ZIPROOT)/kBuild \
794 -i!$(ZIPROOT)/src \
795 -i!$(ZIPROOT)/tools/env.sh \
796 -i!$(ZIPROOT)/tools/linux.x86/bin/* \
797 -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
798 -x!$(ZIPROOT)/doc/Devices \
799 -x!$(ZIPROOT)/doc/\*pdf \
800 -x!$(ZIPROOT)/doc/L4VM \
801 -x!$(ZIPROOT)/doc/VMM \
802 -x!$(ZIPROOT)/doc/licenses_old \
803 -x!$(ZIPROOT)/doc/manual/de_DE \
804 -x!$(ZIPROOT)/doc/manual/fr_FR \
805 -x!$(ZIPROOT)/src/tests \
806 -x!$(ZIPROOT)/src/VBox/Artwork \
807 -x!$(ZIPROOT)/src/VBox/Installer/AMI \
808 -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
809 -x!$(ZIPROOT)/src/VBox/Installer/Encore \
810 -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
811 -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
812 $(ZIPPATH)/$(ZIPNAME))
813 $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
814
815
816#
817# Generate ALL the rules.
818#
819include $(KBUILD_PATH)/subfooter.kmk
820
821
822#
823# Generate x86.mac and err.mac.
824#
825incs:
826 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
827 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
828 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
829 $(SED) -f include/VBox/various.sed --output include/VBox/x86.mac include/VBox/x86.h
830 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
831
832
833#
834# Generate Visual SlickEdit tagging #defines.
835#
836vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
837 $(RM) -f -- $@ [email protected] [email protected] [email protected]
838 $(APPEND) [email protected] '// autogenerated'
839 @$(APPEND) [email protected] '#define RT_C_DECLS_BEGIN '
840 @$(APPEND) [email protected] '#define RT_C_DECLS_END '
841
842 @$(APPEND) [email protected] '#define ATL_NO_VTABLE '
843 @$(APPEND) [email protected] '#define BEGIN_COM_MAP(a) '
844 @$(APPEND) [email protected] '#define END_COM_MAP(a) '
845
846 @$(APPEND) [email protected] '#define CHECKREADY if(!isReady()) return E_UNEXPECTED; '
847 @$(APPEND) [email protected] '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
848 @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY(a) '
849 @$(APPEND) [email protected] '#define COMGETTER(n) Get##n '
850 @$(APPEND) [email protected] '#define COMSETTER(n) Set##n '
851 @$(APPEND) [email protected] '#define ComSafeArrayIn(t,a) t a[] '
852 @$(APPEND) [email protected] '#define ComSafeArrayOut(t,a) t * a[] '
853 @$(APPEND) [email protected] '#define DECLARE_NOT_AGGREGATABLE(a) '
854 @$(APPEND) [email protected] '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
855 @$(APPEND) [email protected] '#define NS_DECL_ISUPPORTS '
856 @$(APPEND) [email protected] '#define NS_IMETHOD NS_IMETHOD_(nsresult) '
857 @$(APPEND) [email protected] '#define NS_IMETHOD_(type) type '
858 @$(APPEND) [email protected] '#define PARSERS_EXPORT '
859 @$(APPEND) [email protected] '#define STDMETHOD(a) NS_IMETHOD a '
860
861 @$(APPEND) [email protected] '#define CTX_SUFF(var) var##R3 '
862 @$(APPEND) [email protected] '#define CTXAllSUFF(var) var##R3 '
863 @$(APPEND) [email protected] '#define CTXSUFF(var) var##HC '
864 @$(APPEND) [email protected] '#define OTHERCTXSUFF(var) var##GC '
865 @$(APPEND) [email protected] '#define CTXALLMID(first, last) first##R3##last '
866 @$(APPEND) [email protected] '#define CTXMID(first, last) first##HC##last '
867 @$(APPEND) [email protected] '#define OTHERCTXMID(first, last) first##GC##last '
868 @$(APPEND) [email protected] '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
869 @$(APPEND) [email protected] '#define RCTYPE(RCType, HCType) RCType '
870 @$(APPEND) [email protected] '#define GCTYPE(GCType, HCType) GCType '
871 @$(APPEND) [email protected] '#define RCPTRTYPE(RCType) RCType '
872 @$(APPEND) [email protected] '#define GCPTRTYPE(GCType) GCType '
873 @$(APPEND) [email protected] '#define HCPTRTYPE(HCType) HCType '
874 @$(APPEND) [email protected] '#define R3R0PTRTYPE(HCType) HCType '
875 @$(APPEND) [email protected] '#define R0PTRTYPE(R3Type) R3Type '
876 @$(APPEND) [email protected] '#define R3PTRTYPE(R0Type) R0Type '
877 @$(APPEND) [email protected] '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
878 @$(APPEND) [email protected] '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
879 @$(APPEND) [email protected] '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
880 @$(APPEND) [email protected] '#define RTCALL'
881 @$(APPEND) [email protected] '#define DECLINLINE(type) inline type '
882
883 @$(APPEND) [email protected] '#define PDMDEVINSINT_DECLARED 1'
884 @$(APPEND) [email protected] '#define VBOXCALL'
885
886 $(SED) -e '/__cdecl/d' \
887 -e '/^ *# *define.*DECL/!d' \
888 -e '/DECLS/d' \
889 -e '/DECLARE_CLS_/d' \
890 -e '/_SRC_POS_DECL/d' \
891 -e '/declspec/d' \
892 -e '/__attribute__/d' \
893 -e 's/# */#/g' \
894 -e 's/ */ /g' \
895 -e '/(type) DECLEXPORT/d' \
896 -e '/ DECLEXPORT_CLASS/d' \
897 -e 's/ *VBOXCALL//' \
898 -e 's/ *RTCALL//' \
899 -e 's/(type) DECLIMPORT(type)/(type) type/' \
900 -e '/ DECLASM(type) type/d' \
901 -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
902 -e '/define *DECLINLINE(type)/d' \
903 -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
904 \
905 --append [email protected] \
906 $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
907 include/iprt/cdefs.h
908 $(CAT_EXT) [email protected] | sort | $(SED_EXT) -e 's/$$/\n/' --output [email protected]
909 $(MV) -f [email protected] $@
910 $(RM) -f [email protected] [email protected] [email protected]
911ifeq ($(KBUILD_HOST),win)
912 @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
913else
914 @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
915endif
916
917
918#
919# Add fetching of the tools to the 'up[date][2]' targets.
920#
921up update up2 update2::
922ifndef VBOX_OSE
923 +$(MAKE) -C tools fetch
924else
925 $(MAKE) -C tools -f Makefile-ose.kmk fetch
926endif
927
928
929
930#
931# Aliases for building the SDK.
932#
933.NOTPARALLEL: sdk sdk-fetch
934sdk:
935 + $(KMK) VBOX_ONLY_SDK=1 \
936 pass_bldprogs pass_others pass_installs pass_packing
937
938sdk-fetch:
939 + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
940
941
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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