VirtualBox

source: vbox/trunk/Makefile.kmk@ 13225

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

copy other languages of VirtualBox.chm and UserManual.pdf to PATH_BIN

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 30.7 KB
 
1# $Id: Makefile.kmk 13225 2008-10-13 16:31:01Z 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
41ifndef VBOX_ONLY_DOCS
42ifndef VBOX_ONLY_ADDITIONS
43
44ifndef VBOX_OSE
45 #
46 # Install the license (and misc non-executable stuff).
47 #
48 INSTALLS += nobin
49 nobin_INST = $(INST_BIN)
50 nobin_MODE = 0644
51 nobin_SOURCES =
52 ifdef VBOX_LICENSE_FILE
53 nobin_SOURCES += \
54 $(VBOX_BRAND_LICENSE_HTML)=>$(VBOX_LICENSE_FILE)
55 endif
56endif # !OSE
57
58
59#
60# Install external binaries (mostly redistributable parts of tools we use).
61# This must be done *before* we build the manual.
62#
63# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
64# and .linux property suffixes.
65#
66INSTALLS += bin
67
68bin_INST = $(INST_BIN)
69
70# The SDL DLLs
71if1of ($(KBUILD_TARGET), win os2)
72 ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
73 include $(KBUILD_PATH)/sdks/LIBSDL.kmk
74 bin_SOURCES += \
75 $(DLL_SDK_LIBSDL_SDL)
76 ifdef VBOX_WITH_SECURELABEL
77 bin_SOURCES += \
78 $(DLL_SDK_LIBSDL_SDLTTF)
79 endif
80 ifeq ($(KBUILD_TARGET),os2)
81 bin_SOURCES += \
82 $(DLL_SDK_LIBSDL_FSLIB)
83 endif
84 endif
85endif
86
87
88# The Qt DLLs.
89ifneq ($(VBOX_WITH_QTGUI),)
90 if1of ($(KBUILD_TARGET), win os2)
91 #include $(KBUILD_PATH)/sdks/QT3.kmk
92 #bin_SOURCES += \
93 # $(DLL_SDK_QT3_QT)
94 ifneq ($(strip $(VBOX_DLL_QT)),)
95 bin_SOURCES += \
96 $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT))
97 endif
98 ifdef VBOX_QT_BINARIES
99 bin_SOURCES += $(VBOX_QT_BINARIES)
100 endif
101 else ifeq ($(VBOX_MUST_INSTALL_LIB_QT),1)
102 bin_SOURCES += \
103 $(LIB_QT)
104 endif
105endif
106
107
108# The compiler runtime DLLs.
109ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
110 ifdef VBOX_USE_VCC80
111 include $(KBUILD_PATH)/tools/VCC80X86.kmk
112 include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
113 bin_SOURCES.x86 += \
114 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
115 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
116 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
117 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
118 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
119 $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
120 bin_SOURCES.amd64 += \
121 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
122 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
123 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
124 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
125 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
126 $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
127 endif
128 ifndef VBOX_USE_VCC80
129 VBOX_INSTALL_VCC70_RT = 1
130 endif
131 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
132 VBOX_INSTALL_VCC70_RT = 1
133 endif
134 ifdef VBOX_INSTALL_VCC70_RT
135 include $(KBUILD_PATH)/tools/VCC70.kmk
136 ## @todo Move these defines to VCC70.
137 DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
138 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
139 bin_SOURCES += \
140 $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
141 $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
142 endif
143 DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
144 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
145 bin_SOURCES += \
146 $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
147 $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
148 endif
149 DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
150 ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
151 bin_SOURCES += \
152 $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
153 $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
154 endif
155 endif
156endif
157
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 = \
169 $(VBOX_PATH_QT4)/Frameworks/QtCore.framework/Versions/4/QtCore=>Frameworks/QtCore.framework/Versions/4/QtCore \
170 $(VBOX_PATH_QT4)/Frameworks/QtGui.framework/Versions/4/QtGui=>Frameworks/QtGui.framework/Versions/4/QtGui \
171 $(PATH_qt4-bin)/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
172 qt4-bin_CLEAN = $(PATH_qt4-bin)/libqtaccessiblewidgets.dylib
173$$(PATH_qt4-bin)/libqtaccessiblewidgets.dylib: $$(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib | $$(dir $$@)
174 $(call MSG_TOOL,install_name_tool,accessible,$<,$@)
175 $(QUIET)$(INSTALL) $< $@
176 $(QUIET)install_name_tool \
177 -change QtCore.framework/Versions/4/QtCore \
178 @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore \
179 -change QtGui.framework/Versions/4/QtGui \
180 @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui \
181 $@
182
183 else ifeq ($(KBUILD_TARGET),win)
184 qt4-bin_INST = $(INST_BIN)
185 qt4-bin_SOURCES = \
186 $(VBOX_PATH_QT4_LIB)/VBoxQtCore4.dll \
187 $(VBOX_PATH_QT4_LIB)/VBoxQtGui4.dll \
188 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4.dll=>accessible/qtaccessiblewidgets4.dll
189
190 else
191 qt4-bin_INST = $(INST_BIN)
192 qt4-bin_SOURCES = \
193 $(VBOX_PATH_QT4_LIB)/libVBoxQtCore.so.4 \
194 $(VBOX_PATH_QT4_LIB)/libVBoxQtGui.so.4 \
195 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
196 endif
197endif # VBOX_WITH_QT4_SUN
198
199
200#
201# Install additions iso from the build server.
202# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
203# been added to kBuild.
204#
205## @todo need kmk_builtin_touch!
206ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
207INSTALLS += buildserver-additions
208buildserver-additions_INST = $(INST_ADDITIONS)
209buildserver-additions_MODE = 0644
210buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
211buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
212
213$(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $(call DIRDEP, $(PATH_TARGET))
214 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
215# $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
216 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
217 $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
218 $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
219
220buildserver-additions-affinity-hack:
221 $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
222endif
223
224
225#
226#
227# Install documentation files (at the moment the .chm) from the build server.
228# The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
229# been added to kBuild.
230#
231## @todo need kmk_builtin_touch!
232ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
233INSTALLS += buildserver-docs
234buildserver-docs_INST = $(INST_BIN)
235buildserver-docs_MODE = 0644
236buildserver-docs_SOURCES = \
237 $(wildcard $(PATH_TARGET)/VirtualBox*.chm) \
238 $(wildcard $(PATH_TARGET)/UserManual*.pdf)
239buildserver-docs_CLEANS = \
240 $(PATH_TARGET)/VBoxDocumentation.zip \
241 $(PATH_TARGET)/VBoxDocumentation.zip.tmp \
242 $(wildcard $(PATH_TARGET)/VirtualBox*.chm) \
243 $(wildcard $(PATH_TARGET)/UserManual*.pdf)
244
245## @todo including this directly is a hack, but using the tool variables
246# is simply too tempting. Could all go away once we have plain unzip targets.
247include $(KBUILD_PATH)/tools/ZIP.kmk
248
249## @todo this only applies safely to en_US!
250$(PATH_TARGET)/VirtualBox.chm + $(PATH_TARGET)/UserManual.pdf: $(PATH_TARGET)/VBoxDocumentation.zip
251 $(call MSG_L1,Unpacking documentation)
252 $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
253
254$(PATH_TARGET)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $(call DIRDEP, $(PATH_TARGET))
255 $(RM) -f $(PATH_TARGET)/VBoxDocumentation.zip $(PATH_TARGET)/VBoxDocumentation.zip.tmp
256# $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(PATH_TARGET)/VBoxDocumentation.zip.tmp
257 $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
258 $(CP) -f $(PATH_TARGET)/VBoxDocumentation.zip.tmp $(PATH_TARGET)/VBoxDocumentation.zip
259 $(RM) -f $(PATH_TARGET)/VBoxDocumentation.zip.tmp
260
261buildserver-documentation-affinity-hack:
262 $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(PATH_TARGET)/VBoxDocumentation.zip.tmp
263endif
264
265
266#
267# Install staged binaries on platforms where we can't cross
268# compile things.
269#
270ifn1of ($(KBUILD_TARGET), l4 linux win)
271 VBOX_PATH_STAGED ?= .
272
273 # Additions.
274 ifndef VBOX_WITH_LINUX_ADDITIONS
275 ifndef VBOX_WITH_WIN32_ADDITIONS
276 ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
277 INSTALLS += staged-additions
278 staged-additions_INST = $(INST_ADDITIONS)
279 staged-additions_MODE = 0644
280 staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
281 endif
282 endif
283 endif
284
285 # guesttool.exe
286 ifndef VBOX_WITH_WIN32_ADDITIONS
287 ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
288 INSTALLS += staged-guesttool
289 staged-guesttool_INST = $(INST_BIN)
290 staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
291 endif
292 endif
293
294endif
295
296endif # !VBOX_ONLY_ADDITIONS
297endif # !VBOX_ONLY_DOCS
298
299
300include $(KBUILD_PATH)/subfooter.kmk
301
302
303ifdef VBOX_ONLY_DOCS
304# It may sound a bit odd, but for preparing the documentation package the
305# doxygen documentation isn't needed and increases the build time a lot.
306docs:
307else # !VBOX_ONLY_DOCS
308#
309# Generate documentation.
310# (This should be converted into a separate pass or merged with an existing one later.)
311#
312 ifdef VBOX_SINGLE_MAKEFILE
313 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
314docs: docs.Core
315 endif
316 else # !VBOX_SINGLE_MAKEFILE
317docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGETS),docs.Core)
318 $(KMK) -C src/VBox/Main docs.Main
319 ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
320 $(KMK) -C src/VBox/Runtime docs.iprt
321 endif
322 endif # !VBOX_SINGLE_MAKEFILE
323endif # !VBOX_ONLY_DOCS
324
325docs.Core docs.core: $(PATH_TARGET)/docs.Core
326
327
328
329#
330# The core (VMM+REM+Devices+Main) documentation.
331#
332# This includes so much because we wish to have the complete CFGM
333# and GCFGM lists.
334#
335OTHER_CLEAN += \
336 $(PATH_TARGET)/Doxyfile.Core \
337 $(PATH_TARGET)/Doxyfile.Core.dep
338
339VBOX_CORE_DOXYFILE_INPUT_DIRS = \
340 include/iprt \
341 include/VBox \
342 include/VBox/com \
343 include/VBox/HostServices \
344 src/VBox/VMM \
345 src/VBox/VMM/VMMR0 \
346 src/VBox/VMM/VMMGC \
347 src/VBox/VMM/VMMAll \
348 src/VBox/VMM/PATM \
349 src/VBox/VMM/PATM/VMMR0 \
350 src/VBox/VMM/PATM/VMMGC \
351 src/VBox/VMM/PATM/VMMAll \
352 src/VBox/VMM/VMMSwitcher \
353 src/VBox/Debugger \
354 src/VBox/Devices \
355 src/VBox/Devices/Audio \
356 src/VBox/Devices/Bus \
357 src/VBox/Devices/Graphics \
358 src/VBox/Devices/Graphics/BIOS \
359 src/VBox/Devices/Input \
360 src/VBox/Devices/Networking \
361 src/VBox/Devices/PC \
362 src/VBox/Devices/PC/BIOS \
363 src/VBox/Devices/Parallel \
364 src/VBox/Devices/Serial \
365 src/VBox/Devices/Storage \
366 src/VBox/Devices/VBoxHDDFormats \
367 src/VBox/Devices/VBoxHDDFormats/StorageCraft \
368 src/VBox/Devices/USB \
369 src/VBox/Devices/USB/darwin \
370 src/VBox/Devices/USB/linux \
371 src/VBox/Devices/USB/os2 \
372 src/VBox/Devices/USB/solaris \
373 src/VBox/Devices/USB/vrdp \
374 src/VBox/Devices/USB/win32 \
375 src/VBox/Devices/VMMDev \
376 src/VBox/Main/include \
377 src/VBox/Main/include/hgcm \
378 src/VBox/Main \
379 src/VBox/Main/glue \
380 src/VBox/Main/hgcm \
381 src/VBox/Main/webservice \
382 src/VBox/Main/xml \
383 src/VBox/Main/darwin \
384 src/VBox/Main/linux \
385 src/VBox/Main/os2 \
386 src/VBox/Main/solaris \
387 src/VBox/Main/win \
388 src/VBox/Main/xpcom \
389 src/VBox/HostServices \
390 src/VBox/HostServices/SharedClipboard \
391 src/VBox/HostServices/SharedFolders \
392 src/VBox/HostServices/SharedInfoServices \
393 src/VBox/HostServices/SharedOpenGL \
394 src/VBox/HostDrivers/Support \
395 src/VBox/HostDrivers/Support/darwin \
396 src/VBox/HostDrivers/Support/freebsd \
397 src/VBox/HostDrivers/Support/l4 \
398 src/VBox/HostDrivers/Support/linux \
399 src/VBox/HostDrivers/Support/os2 \
400 src/VBox/HostDrivers/Support/solaris \
401 src/VBox/HostDrivers/Support/win \
402 src/VBox/HostDrivers/VBoxNetFlt \
403 src/VBox/HostDrivers/VBoxNetFlt/darwin \
404 src/VBox/HostDrivers/VBoxNetFlt/linux \
405 src/VBox/HostDrivers/VBoxNetFlt/solaris \
406 src/VBox/HostDrivers/VBoxNetFlt/win \
407 src/VBox/HostDrivers/VBoxNetNat \
408 src/VBox/HostDrivers/VBoxNetNat/darwin \
409 src/VBox/HostDrivers/VBoxNetNat/linux \
410 src/VBox/HostDrivers/VBoxNetNat/solaris \
411 src/VBox/HostDrivers/VBoxNetNat/win \
412 src/VBox/HostDrivers/VBoxNetTap \
413 src/VBox/HostDrivers/VBoxNetTap/darwin \
414 src/VBox/HostDrivers/VBoxNetTap/linux \
415 src/VBox/HostDrivers/VBoxNetTap/solaris \
416 src/VBox/HostDrivers/VBoxNetTap/win \
417 src/VBox/HostDrivers/VBoxTAP \
418 src/VBox/HostDrivers/VBoxTAP/win \
419 src/VBox/HostDrivers/VBoxUSB \
420 src/VBox/HostDrivers/VBoxUSB/darwin \
421 src/VBox/HostDrivers/VBoxUSB/os2 \
422 src/VBox/HostDrivers/VBoxUSB/solaris \
423 src/VBox/HostDrivers/VBoxUSB/win \
424 src/VBox/HostDrivers/VBoxUSB/win/Device \
425 src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
426 src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
427 src/VBox/HostDrivers/VBoxUSB/win/Filter \
428 src/VBox/HostDrivers/VBoxUSB/win/Install \
429 src/VBox/HostDrivers/VBoxUSB/win/Monitor \
430 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
431 src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
432 src/VBox/HostDrivers/VBoxUSB/win/usbd \
433
434# These must come first in order to make things look nice.
435VBOX_CORE_DOXYFILE_INPUT_FIRST =\
436 $(PATH_ROOT)/doc/VBox-doc.c \
437 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
438 $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
439 $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
440 $(PATH_ROOT)/include/VBox/cdefs.h \
441 $(PATH_ROOT)/include/VBox/vmapi.h \
442 $(PATH_ROOT)/include/VBox/vmm.h \
443 $(PATH_ROOT)/include/VBox/cpum.h \
444 $(PATH_ROOT)/include/VBox/mm.h \
445 $(PATH_ROOT)/include/VBox/pgm.h \
446 $(PATH_ROOT)/include/VBox/selm.h \
447 $(PATH_ROOT)/include/VBox/trpm.h \
448 $(PATH_ROOT)/include/VBox/patm.h \
449 $(PATH_ROOT)/include/VBox/dbgf.h \
450 $(PATH_ROOT)/include/VBox/stam.h \
451 $(PATH_ROOT)/include/VBox/em.h \
452 $(PATH_ROOT)/include/VBox/pdm.h \
453 $(PATH_ROOT)/include/VBox/rem.h \
454 $(PATH_ROOT)/include/VBox/iom.h \
455 $(PATH_ROOT)/include/VBox/cfgm.h \
456 $(PATH_ROOT)/include/VBox/tm.h \
457 $(PATH_ROOT)/include/VBox/csam.h \
458 $(PATH_ROOT)/include/VBox/ssm.h \
459 $(PATH_ROOT)/include/VBox/hwaccm.h \
460 $(PATH_ROOT)/include/VBox/hwacc_svm.h \
461 $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
462 \
463 $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
464 $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
465 $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
466 $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
467 $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
468 $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
469 $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
470 $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
471 $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
472 $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
473 $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
474 $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
475 $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
476 $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
477 $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
478 $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
479 $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
480 $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
481 $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
482 \
483 $(PATH_ROOT)/include/VBox/vm.h \
484 \
485 $(PATH_ROOT)/include/VBox/sup.h \
486 $(PATH_ROOT)/include/VBox/VBoxHDD.h \
487 $(PATH_ROOT)/include/VBox/types.h \
488 $(PATH_ROOT)/include/VBox/err.h \
489 $(PATH_ROOT)/include/VBox/x86.h \
490 $(PATH_ROOT)/include/VBox/cpumdis.h \
491 $(PATH_ROOT)/include/VBox/dbggui.h \
492 $(PATH_ROOT)/include/VBox/dis.h \
493 $(PATH_ROOT)/include/VBox/disopcode.h \
494 $(PATH_ROOT)/include/VBox/intnet.h \
495 $(PATH_ROOT)/include/VBox/settings.h \
496 $(PATH_ROOT)/include/VBox/pci.h \
497 $(PATH_ROOT)/include/VBox/scsi.h \
498 $(PATH_ROOT)/include/VBox/shflsvc.h \
499 $(PATH_ROOT)/include/VBox/hgcmsvc.h \
500 $(PATH_ROOT)/include/VBox/usb.h \
501 $(PATH_ROOT)/include/VBox/vusb.h \
502 \
503 $(PATH_ROOT)/include/VBox/log.h \
504 $(PATH_ROOT)/include/VBox/param.h \
505 $(PATH_ROOT)/include/VBox/version.h
506
507VBOX_CORE_DOXYFILE_INPUT := \
508 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
509 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
510VBOX_CORE_DOXYFILE_INPUT := \
511 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
512 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
513
514# And some some additional stuff.
515VBOX_CORE_DOXYFILE_INPUT += \
516 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
517 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
518
519
520VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
521
522-include $(PATH_TARGET)/Doxyfile.Core.dep
523
524# Generate the Doxyfile
525$(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
526 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
527 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
528 | $(call DIRDEP, $(PATH_TARGET))
529 $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
530 $(CP) -f Doxyfile.Core [email protected]
531 $(APPEND) [email protected]
532 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
533 $(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
534 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
535 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
536 $(APPEND) [email protected]
537 $(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
538 $(APPEND) [email protected]
539 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
540 $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
541 $(APPEND) [email protected]
542 $(MV) -f [email protected] $@
543 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
544 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
545
546# Create the output directory.
547$(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT)):
548 $(MKDIR) -p $@
549
550# Do the actual job.
551$(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $(VBOX_CORE_DOXYFILE_INPUT) | $(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT))
552 $(RM) -f $(PATH_TARGET)/docs.Core
553 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
554 doxygen $(PATH_TARGET)/Doxyfile.Core
555 $(APPEND) $(PATH_TARGET)/docs.Core
556
557
558#
559# Generate x86.mac and err.mac.
560#
561incs:
562 $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
563 $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
564 $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
565 $(SED) \
566 -e '/__VBox_x86_h__/d' \
567 -e '/#define/!d' \
568 -e '/\\$$/d' \
569 -e 's/#define/%define/' \
570 --output include/VBox/x86.mac \
571 include/VBox/x86.h
572
573
574#
575# Generate Visual SlickEdit tagging #defines.
576#
577vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
578 $(RM) -f -- $@ [email protected] [email protected] [email protected]
579 $(APPEND) [email protected] '// autogenerated'
580 #@$(APPEND) [email protected] '#define __BEGIN_DECLS '
581 #@$(APPEND) [email protected] '#define __END_DECLS '
582
583 @$(APPEND) [email protected] '#define ATL_NO_VTABLE '
584 @$(APPEND) [email protected] '#define BEGIN_COM_MAP(a) '
585 @$(APPEND) [email protected] '#define END_COM_MAP(a) '
586
587 @$(APPEND) [email protected] '#define CHECKREADY if(!isReady()) return E_UNEXPECTED; '
588 @$(APPEND) [email protected] '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
589 @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY(a) '
590 @$(APPEND) [email protected] '#define COMGETTER(n) Get##n '
591 @$(APPEND) [email protected] '#define COMSETTER(n) Set##n '
592 @$(APPEND) [email protected] '#define ComSafeArrayIn(t,a) t a[] '
593 @$(APPEND) [email protected] '#define ComSafeArrayOut(t,a) t * a[] '
594 @$(APPEND) [email protected] '#define DECLARE_NOT_AGGREGATABLE(a) '
595 @$(APPEND) [email protected] '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
596 @$(APPEND) [email protected] '#define NS_DECL_ISUPPORTS '
597 @$(APPEND) [email protected] '#define NS_IMETHOD NS_IMETHOD_(nsresult) '
598 @$(APPEND) [email protected] '#define NS_IMETHOD_(type) type '
599 @$(APPEND) [email protected] '#define PARSERS_EXPORT '
600 @$(APPEND) [email protected] '#define STDMETHOD(a) NS_IMETHOD a '
601
602 @$(APPEND) [email protected] '#define CTX_SUFF(var) var##R3 '
603 @$(APPEND) [email protected] '#define CTXAllSUFF(var) var##R3 '
604 @$(APPEND) [email protected] '#define CTXSUFF(var) var##HC '
605 @$(APPEND) [email protected] '#define OTHERCTXSUFF(var) var##GC '
606 @$(APPEND) [email protected] '#define CTXALLMID(first, last) first##R3##last '
607 @$(APPEND) [email protected] '#define CTXMID(first, last) first##HC##last '
608 @$(APPEND) [email protected] '#define OTHERCTXMID(first, last) first##GC##last '
609 @$(APPEND) [email protected] '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
610 @$(APPEND) [email protected] '#define RCTYPE(RCType, HCType) RCType '
611 @$(APPEND) [email protected] '#define GCTYPE(GCType, HCType) GCType '
612 @$(APPEND) [email protected] '#define RCPTRTYPE(RCType) RCType '
613 @$(APPEND) [email protected] '#define GCPTRTYPE(GCType) GCType '
614 @$(APPEND) [email protected] '#define HCPTRTYPE(HCType) HCType '
615 @$(APPEND) [email protected] '#define R3R0PTRTYPE(HCType) HCType '
616 @$(APPEND) [email protected] '#define R0PTRTYPE(R3Type) R3Type '
617 @$(APPEND) [email protected] '#define R3PTRTYPE(R0Type) R0Type '
618 @$(APPEND) [email protected] '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
619 @$(APPEND) [email protected] '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
620 @$(APPEND) [email protected] '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
621 @$(APPEND) [email protected] '#define RTCALL'
622 @$(APPEND) [email protected] '#define DECLINLINE(type) inline type '
623
624 @$(APPEND) [email protected] '#define PDMDEVINSINT_DECLARED 1'
625 @$(APPEND) [email protected] '#define VBOXCALL'
626
627 $(SED) -e '/__cdecl/d' \
628 -e '/^ *# *define.*DECL/!d' \
629 -e '/DECLS/d' \
630 -e '/DECLARE_CLS_/d' \
631 -e '/_SRC_POS_DECL/d' \
632 -e '/declspec/d' \
633 -e '/__attribute__/d' \
634 -e 's/# */#/g' \
635 -e 's/ */ /g' \
636 -e '/(type) DECLEXPORT/d' \
637 -e '/ DECLEXPORT_CLASS/d' \
638 -e 's/ *VBOXCALL//' \
639 -e 's/ *RTCALL//' \
640 -e 's/(type) DECLIMPORT(type)/(type) type/' \
641 -e '/ DECLASM(type) type/d' \
642 -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
643 -e '/define *DECLINLINE(type)/d' \
644 -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
645 \
646 --append [email protected] \
647 $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
648 include/iprt/cdefs.h
649 $(CAT_EXT) [email protected] | sort | $(SED_EXT) -e 's/$$/\n/' --output [email protected]
650 $(MV) -f [email protected] $@
651 $(RM) -f [email protected] [email protected] [email protected]
652ifeq ($(KBUILD_HOST),win)
653 @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
654else
655 @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
656endif
657
658
659#
660# Add fetching of the tools to the 'up[date][2]' targets.
661#
662up update up2 update2::
663ifndef VBOX_OSE
664 +$(MAKE) -C tools fetch
665else
666 $(MAKE) -C tools -f Makefile-ose.kmk fetch
667endif
668
669
670#
671# Build the additions, all of them.
672#
673# This is currently tailored (hardcoded) for the additions
674# build box. Can make it pretty and configurable later.
675#
676# The fetching must be done in serial fashion, while the building
677# should be more flexible wrt to -jN.
678#
679additions-fetch:
680 + $(KMK) -C tools fetch
681 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
682 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux
683# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2
684 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
685 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris
686 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
687 + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win
688
689
690## @todo Currently combined solaris additions building assumes that amd64 is
691# built first. Do not change the order of dependencies here without testing.
692additions-build: \
693 additions-build-win.amd64 \
694 additions-build-win.x86 \
695 additions-build-solaris.amd64 \
696 additions-build-solaris.x86 \
697 additions-build-os2.x86 \
698 additions-build-linux.amd64 \
699 additions-build-linux.x86
700
701VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
702 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
703 KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
704 VBOX_SVN_REV=$(VBOX_SVN_REV) \
705 all packing
706
707VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
708 KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
709 KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
710 VBOX_SVN_REV=$(VBOX_SVN_REV) \
711 all packing
712
713# Automatically determine the additions build subdir name. Used for figuring
714# out directory names inside the additions building VMs.
715VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
716
717# Oh well, this gets really fancy - ms vc8 doesn't work inside ssh due to some
718# session setup issue. So do this indirectly through psexec. The downside is
719# that there is no direct build feedback. Also I couldn't get the share to
720# work via psexec, so rsync over the result of the build.
721additions-build-win.amd64:
722ifeq ($(KBUILD_TARGET),win)
723 + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
724else
725 rsync -av --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
726 ssh [email protected] c:/psexec/psexec.exe \\\\\\\\addvm -u vbox -p $(WIN64PASSWORD) c:\\\\cygwin\\\\bin\\\\bash.exe -c \''PATH=/usr/bin:/bin e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) > e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME).log 2>&1'\'; \
727 rc=$$?; \
728 rsync -av --delete 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/win.amd64/ out/win.amd64; \
729 rsync -a --delete 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME).log out/win.amd64/build.log; \
730 cat out/win.amd64/build.log; \
731 exit $$rc
732endif
733
734additions-build-win.x86:
735ifeq ($(KBUILD_TARGET),win)
736 + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
737else
738 rsync -av --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
739 ssh [email protected] " cd /cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && PATH_OUT_BASE=Z:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
740endif
741
742additions-build-solaris.amd64:
743ifeq ($(KBUILD_TARGET),solaris)
744 + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
745else
746 ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
747endif
748
749# ASSUMES 64-bit is built already. See @todo above.
750additions-build-solaris.x86:
751ifeq ($(KBUILD_TARGET),solaris)
752 + $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1
753else
754 ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
755endif
756
757additions-build-os2.x86:
758#ifeq ($(KBUILD_TARGET),os2)
759# + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
760#else
761# ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
762#endif
763
764additions-build-linux.amd64:
765ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
766 + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
767else
768 ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
769endif
770
771additions-build-linux.x86:
772ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
773 + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
774else
775 ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
776endif
777
778
779additions-packing:
780 + $(KMK) VBOX_ONLY_ADDITIONS=1 \
781 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
782 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
783 VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
784 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
785 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
786 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
787 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
788 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
789 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
790 -C src/VBox/Additions \
791 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
792
793
794
795#
796# Aliases for building the SDK.
797#
798sdk:
799 + $(KMK) VBOX_ONLY_SDK=1 \
800 pass_bldprogs pass_others pass_installs pass_packing
801
802sdk-fetch:
803 + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
804
805
806
807#
808# Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
809#
810# - includes kBuild
811# - must be executed on an OSE checkout
812#
813
814# the path where to store the tarball
815TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
816#TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
817# the root directory inside the tarball
818TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
819# the name of the tarball file
820TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
821snapshot:
822 @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
823 @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
824 $(QUIET)$(MKDIR) -p $(TARBALLPATH)
825 $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
826 $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
827 $(QUIET)tar -cjh --owner 0 --group 0 --totals \
828 --exclude=.svn \
829 --exclude=$(TARBALLROOT)/out \
830 --exclude=$(TARBALLROOT)/env.sh \
831 --exclude=$(TARBALLROOT)/configure.log \
832 --exclude=$(TARBALLROOT)/AutoConfig.kmk \
833 --exclude=$(TARBALLROOT)/LocalConfig.kmk \
834 -C $(TARBALLPATH) \
835 -f $(TARBALLPATH)/$(TARBALLNAME) \
836 $(TARBALLROOT)
837 $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
838
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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