VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk@ 71665

Last change on this file since 71665 was 71665, checked in by vboxsync, 7 years ago

FE/Qt: bugref:9049: VBoxGlobal library fixed for macOS.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 64.7 KB
Line 
1# $Id: Makefile.kmk 71665 2018-04-04 15:46:55Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2018 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#
23# Globals.
24#
25VBOX_VIRTUALBOX_SRC := $(PATH_SUB_CURRENT)
26VBOX_VIRTUALBOX_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
27USES += qt5
28
29
30#
31# Targets.
32#
33ifdef VBOX_WITH_HARDENING
34PROGRAMS += VirtualBoxHardened
35PROGRAMS.darwin += VirtualBoxVM
36DLLS += VirtualBox
37else
38PROGRAMS += VirtualBox
39ifdef VBOX_GUI_WITH_SHARED_LIBRARY
40DLLS += VBoxGlobal
41endif
42endif
43INSTALLS += VirtualBox.nls
44
45
46#
47# Include the language lists.
48#
49include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
50
51
52#
53# Hardened VirtualBox.
54#
55VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
56VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
57VirtualBoxHardened_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
58VirtualBoxHardened_NAME = VirtualBox
59VirtualBoxHardened_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
60src/platform/win/VirtualBoxHardened.rc_INCS = $(VirtualBox_0_OUTDIR)
61src/platform/win/VirtualBoxHardened.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
62
63
64#
65# Hardened VirtualBoxVM.
66#
67ifeq ($(KBUILD_TARGET),darwin)
68 VirtualBoxVM_EXTENDS = VirtualBoxHardened
69 VirtualBoxVM_NAME = VirtualBoxVM
70 VirtualBoxVM_DEFS = $(VirtualBoxHardened_DEFS) VIRTUALBOX_VM
71endif
72
73
74#
75# Include Qt project file, we'll use FORMS and TRANSLATIONS in
76# the VirtualBox setup below.
77#
78# This is a bit messy. We boldly ASSUME that LANGUAGE, IMAGES, FORMS
79# and TRANSLATIONS are all unused by kBuild and the host toolchain.
80#
81SAVED_TEMPLATE := $(TEMPLATE)
82include $(PATH_SUB_CURRENT)/VBoxUI.pro
83TEMPLATE := $(SAVED_TEMPLATE)
84SAVED_TEMPLATE :=
85LANGUAGE :=
86IMAGES :=
87# FORMS and TRANSLATIONS are reset further down.
88
89
90#
91# Perform initial new version check on startup.
92# If this setting is disabled the user can still check using the menu.
93#
94ifndef VBOX_OSE
95VBOX_WITH_UPDATE_REQUEST := 1
96endif
97
98
99#
100# VirtualBox - GUI Application.
101#
102VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
103VirtualBox_NAME = VirtualBox
104ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
105 VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
106endif
107VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
108
109VirtualBox_DEFS =
110VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
111VirtualBox_DEFS.linux = VBOX_WS_X11
112VirtualBox_DEFS.solaris = VBOX_WS_X11
113VirtualBox_DEFS.freebsd = VBOX_WS_X11
114VirtualBox_DEFS.darwin = VBOX_WS_MAC
115VirtualBox_DEFS.win = VBOX_WS_WIN
116VirtualBox_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
117VirtualBox_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
118VirtualBox_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
119VirtualBox_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
120VirtualBox_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
121VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
122VirtualBox_DEFS.win += UNICODE QT_DLL
123VirtualBox_DEFS += \
124 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
125 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
126 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
127 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
128 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
129 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
130 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
131 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
132 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
133 $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
134 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
135 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
136 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
137 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
138 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
139 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
140 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
141 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
142 $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
143 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
144 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
145 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
146 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
147 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
148 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
149ifdef VBOX_WITH_DEBUGGER_GUI
150 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
151 if "$(KBUILD_TYPE)" != "release"
152 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
153 endif
154endif
155ifdef VBOX_WITH_VIDEOHWACCEL
156 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
157else ifdef VBOX_GUI_USE_QGL
158 VirtualBox_DEFS += VBOX_GUI_USE_QGL
159endif
160ifdef VBOX_WITH_LIBCURL
161 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
162 VBOX_GUI_WITH_NETWORK_MANAGER := 1
163endif
164ifneq ($(KBUILD_TYPE),release)
165 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
166endif
167ifdef VBOX_WITH_ICHAT_THEATER
168 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
169endif
170
171
172#
173# VirtualBox - GUI Global Shared Library.
174#
175VBoxGlobal_TEMPLATE = VBOXQTGUI
176VBoxGlobal_NAME = VBoxGlobal
177VBoxGlobal_DEFS =
178VBoxGlobal_DEFS += VBOX_GUI_LIBRARY
179VBoxGlobal_DEFS.darwin = VBOX_WS_MAC
180VBoxGlobal_DEFS.freebsd = VBOX_WS_X11
181VBoxGlobal_DEFS.linux = VBOX_WS_X11
182VBoxGlobal_DEFS.solaris = VBOX_WS_X11
183VBoxGlobal_DEFS.win = VBOX_WS_WIN
184VBoxGlobal_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
185VBoxGlobal_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
186#VBoxGlobal_DEFS.win += UNICODE QT_DLL
187VBoxGlobal_DEFS += \
188 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
189 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
190 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
191 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
192 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
193 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
194 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
195 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
196 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
197 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
198 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
199 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
200 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
201 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
202 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
203 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
204 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
205ifdef VBOX_WITH_DEBUGGER_GUI
206 VBoxGlobal_DEFS += VBOX_WITH_DEBUGGER_GUI
207 if "$(KBUILD_TYPE)" != "release"
208 VBoxGlobal_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
209 endif
210endif
211ifdef VBOX_WITH_VIDEOHWACCEL
212 VBoxGlobal_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
213else ifdef VBOX_GUI_USE_QGL
214 VBoxGlobal_DEFS += VBOX_GUI_USE_QGL
215endif
216ifdef VBOX_WITH_LIBCURL
217 VBoxGlobal_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
218 VBOX_GUI_WITH_NETWORK_MANAGER := 1
219endif
220ifneq ($(KBUILD_TYPE),release)
221 VBoxGlobal_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
222endif
223ifdef VBOX_WITH_ICHAT_THEATER
224 VBoxGlobal_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
225endif
226
227
228#
229# Include folders.
230#
231VBOX_GUI_INC_DIRS = \
232 ./src \
233 ./src/converter \
234 ./src/extensions \
235 ./src/extensions/graphics \
236 ./src/extradata \
237 ./src/globals \
238 ./src/hostnetwork \
239 ./src/logviewer \
240 ./src/medium \
241 ./src/objects \
242 ./src/platform \
243 ./src/platform/darwin \
244 ./src/platform/win \
245 ./src/platform/x11 \
246 ./src/runtime \
247 ./src/runtime/fullscreen \
248 ./src/runtime/normal \
249 ./src/runtime/scale \
250 ./src/runtime/seamless \
251 ./src/runtime/information \
252 ./src/runtime/guestctrl \
253 ./src/selector \
254 ./src/selector/graphics/chooser \
255 ./src/selector/graphics/details \
256 ./src/settings \
257 ./src/settings/global \
258 ./src/settings/machine \
259 ./src/widgets \
260 ./src/widgets/graphics \
261 ./src/wizards \
262 ./src/wizards/newvm \
263 ./src/wizards/newvd \
264 ./src/wizards/clonevm \
265 ./src/wizards/clonevd \
266 ./src/wizards/exportappliance \
267 ./src/wizards/importappliance \
268 ./src/wizards/firstrun
269
270ifdef VBOX_GUI_WITH_NETWORK_MANAGER
271VBOX_GUI_INC_DIRS += \
272 ./src/net
273endif
274
275#
276# VirtualBox - GUI Application.
277# Include folders.
278#
279VirtualBox_INCS = \
280 $(VBOX_GUI_INC_DIRS) \
281 $(VirtualBox_0_OUTDIR)/include \
282 $(VBOX_GRAPHICS_INCS)
283
284#
285# VirtualBox - GUI Global Shared Library.
286# Include folders.
287#
288VBoxGlobal_INCS = \
289 $(VBOX_GUI_INC_DIRS) \
290 $(VirtualBox_0_OUTDIR)/include
291
292
293#
294# VirtualBox - GUI Application.
295# Compiling/linking flags.
296#
297ifneq ($(KBUILD_TARGET),win)
298VirtualBox_CXXFLAGS += -Wno-switch
299endif
300
301## @todo we're using a number of deprecated APIs, please fix and remove these!
302ifdef VBOX_WITH_NEW_XCODE
303 VirtualBox_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
304 VirtualBox_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
305 VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
306else
307 VirtualBox_CXXFLAGS.darwin += -Wno-deprecated-declarations
308 VirtualBox_OBJCFLAGS.darwin += -Wno-deprecated-declarations
309 VirtualBox_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
310endif
311
312ifeq ($(KBUILD_TYPE),release)
313 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
314else
315 VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
316 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
317endif
318
319VirtualBox_LDFLAGS.darwin = \
320 -framework AppKit -framework Carbon -framework IOKit \
321 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
322ifdef VBOX_WITH_ICHAT_THEATER
323 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
324endif
325
326if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
327 VirtualBox_LDFLAGS.darwin += -framework OpenGL
328endif
329
330
331#
332# VirtualBox - GUI Global Shared Library.
333# Compiling/linking flags.
334#
335
336## @todo we're using a number of deprecated APIs, please fix and remove these!
337ifdef VBOX_WITH_NEW_XCODE
338 VBoxGlobal_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
339 VBoxGlobal_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
340 VBoxGlobal_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
341else
342 VBoxGlobal_CXXFLAGS.darwin += -Wno-deprecated-declarations
343 VBoxGlobal_OBJCFLAGS.darwin += -Wno-deprecated-declarations
344 VBoxGlobal_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
345endif
346
347VBoxGlobal_LDFLAGS.darwin = \
348 -framework AppKit -framework Carbon -framework IOKit
349
350if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
351 VBoxGlobal_LDFLAGS.darwin += -framework OpenGL
352endif
353
354
355#
356# VirtualBox - GUI Application.
357# Libraries.
358#
359
360# Library required for the hdd backend enumeration:
361VirtualBox_LIBS = $(LIB_DDU)
362
363# Runtime library loader required on X11 hosts:
364if1of ($(KBUILD_TARGET), linux netbsd openbsd)
365 VirtualBox_LIBS += dl
366endif
367
368# Xinerama library required for multi-monitor support:
369VirtualBox_LIBS.linux += Xinerama
370VirtualBox_LIBS.solaris += Xinerama
371VirtualBox_LIBS.freebsd += Xinerama
372
373# XCB library required for direct XCB native code support:
374VirtualBox_LIBS.linux += xcb
375VirtualBox_LIBS.solaris += xcb
376VirtualBox_LIBS.freebsd += xcb
377
378# Various Windows hosts libraries:
379VirtualBox_LIBS.win = \
380 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
381 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
382 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
383
384# VBox keyboard shared library for X11 hosts:
385if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
386 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
387endif
388
389# These are 2D Video Acceleration and 3D Acceleration related libs:
390if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
391 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
392 VirtualBox_LIBS.solaris += GL
393 VirtualBox_LIBS.linux += GL
394 VirtualBox_LIBS.freebsd += GL
395endif
396ifdef VBOX_WITH_CROGL
397 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
398endif
399
400# This one is global shared GUI library:
401ifdef VBOX_GUI_WITH_SHARED_LIBRARY
402 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
403endif
404
405
406#
407# VirtualBox - GUI Global Shared Library.
408# Libraries.
409#
410
411# Xinerama library required for multi-monitor support:
412VBoxGlobal_LIBS.linux += Xinerama
413VBoxGlobal_LIBS.solaris += Xinerama
414VBoxGlobal_LIBS.freebsd += Xinerama
415
416# VBox keyboard shared library for X11 hosts:
417if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
418 VBoxGlobal_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
419endif
420
421# These are 2D Video Acceleration and 3D Acceleration related libs:
422ifdef VBOX_WITH_CROGL
423 VBoxGlobal_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
424endif
425
426
427#
428# VirtualBox - GUI Application.
429# Headers containing definitions of classes that use the Q_OBJECT macro.
430#
431VirtualBox_QT_MOCHDRS = \
432 src/VBoxAboutDlg.h \
433 src/VBoxLicenseViewer.h \
434 src/UITakeSnapshotDialog.h \
435 src/extensions/QIAdvancedSlider.h \
436 src/extensions/QIArrowButtonPress.h \
437 src/extensions/QIArrowButtonSwitch.h \
438 src/extensions/QIArrowSplitter.h \
439 src/extensions/QIComboBox.h \
440 src/extensions/QIDialog.h \
441 src/extensions/QIDialogButtonBox.h \
442 src/extensions/QIFileDialog.h \
443 src/extensions/QIFlowLayout.h \
444 src/extensions/QILabel.h \
445 src/extensions/QILabelSeparator.h \
446 src/extensions/QIMainDialog.h \
447 src/extensions/QIMainWindow.h \
448 src/extensions/QIManagerDialog.h \
449 src/extensions/QIMenu.h \
450 src/extensions/QIMessageBox.h \
451 src/extensions/QIProcess.h \
452 src/extensions/QIRichTextLabel.h \
453 src/extensions/QIRichToolButton.h \
454 src/extensions/QISplitter.h \
455 src/extensions/QIStatusBar.h \
456 src/extensions/QIStatusBarIndicator.h \
457 src/extensions/QIStyledItemDelegate.h \
458 src/extensions/QITabWidget.h \
459 src/extensions/QITableView.h \
460 src/extensions/QIToolButton.h \
461 src/extensions/QITreeView.h \
462 src/extensions/QITreeWidget.h \
463 src/extensions/QIWidgetValidator.h \
464 src/extensions/graphics/QIGraphicsView.h \
465 src/extensions/graphics/QIGraphicsWidget.h \
466 src/extradata/UIExtraDataDefs.h \
467 src/extradata/UIExtraDataManager.h \
468 src/globals/UIActionPool.h \
469 src/globals/UIAnimationFramework.h \
470 src/globals/UIDesktopWidgetWatchdog.h \
471 src/globals/UIMainEventListener.h \
472 src/globals/UIMessageCenter.h \
473 src/globals/UIModalWindowManager.h \
474 src/globals/UIPopupCenter.h \
475 src/globals/UIShortcutPool.h \
476 src/globals/UIStarter.h \
477 src/globals/UIThreadPool.h \
478 src/globals/VBoxGlobal.h \
479 src/globals/VBoxUtils.h \
480 src/hostnetwork/UIHostNetworkDetailsWidget.h \
481 src/hostnetwork/UIHostNetworkManager.h \
482 src/logviewer/UIVMLogPage.h \
483 src/logviewer/UIVMLogViewerBookmarksPanel.h \
484 src/logviewer/UIVMLogViewerDialog.h \
485 src/logviewer/UIVMLogViewerFilterPanel.h \
486 src/logviewer/UIVMLogViewerPanel.h \
487 src/logviewer/UIVMLogViewerSearchPanel.h \
488 src/logviewer/UIVMLogViewerSettingsPanel.h \
489 src/logviewer/UIVMLogViewerTextEdit.h \
490 src/logviewer/UIVMLogViewerWidget.h \
491 src/medium/UIMediumDetailsWidget.h \
492 src/medium/UIMediumEnumerator.h \
493 src/medium/UIMediumManager.h \
494 src/runtime/UIActionPoolRuntime.h \
495 src/runtime/UIAddDiskEncryptionPasswordDialog.h \
496 src/runtime/UIConsoleEventHandler.h \
497 src/runtime/UIFrameBuffer.h \
498 src/runtime/UIIndicatorsPool.h \
499 src/runtime/UIKeyboardHandler.h \
500 src/runtime/UIMachine.h \
501 src/runtime/UIMachineLogic.h \
502 src/runtime/UIMachineWindow.h \
503 src/runtime/UIMachineView.h \
504 src/runtime/UIMenuBarEditorWindow.h \
505 src/runtime/UIMouseHandler.h \
506 src/runtime/UIMultiScreenLayout.h \
507 src/runtime/UISession.h \
508 src/runtime/UISlidingToolBar.h \
509 src/runtime/UIStatusBarEditorWindow.h \
510 src/runtime/UIVMCloseDialog.h \
511 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
512 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
513 src/runtime/fullscreen/UIMachineViewFullscreen.h \
514 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
515 src/runtime/information/UIInformationConfiguration.h \
516 src/runtime/information/UIInformationDataItem.h \
517 src/runtime/information/UIInformationItem.h \
518 src/runtime/information/UIInformationModel.h \
519 src/runtime/information/UIInformationRuntime.h \
520 src/runtime/information/UIInformationView.h \
521 src/runtime/information/UIVMInformationDialog.h \
522 src/runtime/guestctrl/UIGuestControlConsole.h \
523 src/runtime/guestctrl/UIGuestControlFileManager.h \
524 src/runtime/guestctrl/UIGuestControlFileModel.h \
525 src/runtime/guestctrl/UIGuestControlFileTable.h \
526 src/runtime/guestctrl/UIGuestControlInterface.h \
527 src/runtime/guestctrl/UIGuestControlTreeItem.h \
528 src/runtime/guestctrl/UIGuestControlWidget.h \
529 src/runtime/guestctrl/UIGuestFileTable.h \
530 src/runtime/guestctrl/UIHostFileTable.h \
531 src/runtime/normal/UIKeyboardHandlerNormal.h \
532 src/runtime/normal/UIMachineLogicNormal.h \
533 src/runtime/normal/UIMachineViewNormal.h \
534 src/runtime/normal/UIMachineWindowNormal.h \
535 src/runtime/scale/UIKeyboardHandlerScale.h \
536 src/runtime/scale/UIMachineLogicScale.h \
537 src/runtime/scale/UIMachineViewScale.h \
538 src/runtime/scale/UIMachineWindowScale.h \
539 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
540 src/runtime/seamless/UIMachineLogicSeamless.h \
541 src/runtime/seamless/UIMachineViewSeamless.h \
542 src/runtime/seamless/UIMachineWindowSeamless.h \
543 src/selector/UIActionPoolSelector.h \
544 src/selector/UIDesktopPane.h \
545 src/selector/UIVMItem.h \
546 src/selector/UIVirtualBoxEventHandler.h \
547 src/selector/UISelectorWindow.h \
548 src/selector/UISnapshotDetailsWidget.h \
549 src/selector/UISnapshotPane.h \
550 src/selector/UIToolsPaneGlobal.h \
551 src/selector/UIToolsPaneMachine.h \
552 src/selector/UIToolsToolbar.h \
553 src/selector/graphics/chooser/UIGChooser.h \
554 src/selector/graphics/chooser/UIGChooserModel.h \
555 src/selector/graphics/chooser/UIGChooserView.h \
556 src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
557 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
558 src/selector/graphics/chooser/UIGChooserItem.h \
559 src/selector/graphics/chooser/UIGChooserItemGroup.h \
560 src/selector/graphics/chooser/UIGChooserItemMachine.h \
561 src/selector/graphics/details/UIGDetails.h \
562 src/selector/graphics/details/UIGDetailsModel.h \
563 src/selector/graphics/details/UIGDetailsView.h \
564 src/selector/graphics/details/UIGDetailsItem.h \
565 src/selector/graphics/details/UIGDetailsGroup.h \
566 src/selector/graphics/details/UIGDetailsSet.h \
567 src/selector/graphics/details/UIGDetailsElement.h \
568 src/selector/graphics/details/UIGDetailsElements.h \
569 src/selector/graphics/details/UIGMachinePreview.h \
570 src/settings/UISettingsDialog.h \
571 src/settings/UISettingsDialogSpecific.h \
572 src/settings/UISettingsPage.h \
573 src/settings/UISettingsSelector.h \
574 src/settings/UISettingsSerializer.h \
575 src/settings/global/UIGlobalSettingsExtension.h \
576 src/settings/global/UIGlobalSettingsGeneral.h \
577 src/settings/global/UIGlobalSettingsInput.h \
578 src/settings/global/UIGlobalSettingsLanguage.h \
579 src/settings/global/UIGlobalSettingsDisplay.h \
580 src/settings/global/UIGlobalSettingsNetwork.h \
581 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
582 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
583 src/settings/machine/UIMachineSettingsAudio.h \
584 src/settings/machine/UIMachineSettingsDisplay.h \
585 src/settings/machine/UIMachineSettingsGeneral.h \
586 src/settings/machine/UIMachineSettingsInterface.h \
587 src/settings/machine/UIMachineSettingsNetwork.h \
588 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
589 src/settings/machine/UIMachineSettingsSF.h \
590 src/settings/machine/UIMachineSettingsSFDetails.h \
591 src/settings/machine/UIMachineSettingsSerial.h \
592 src/settings/machine/UIMachineSettingsStorage.h \
593 src/settings/machine/UIMachineSettingsSystem.h \
594 src/settings/machine/UIMachineSettingsUSB.h \
595 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
596 src/widgets/UIApplianceEditorWidget.h \
597 src/widgets/UIApplianceExportEditorWidget.h \
598 src/widgets/UIApplianceImportEditorWidget.h \
599 src/widgets/UIBootTable.h \
600 src/widgets/UIFilePathSelector.h \
601 src/widgets/UIEmptyFilePathSelector.h \
602 src/widgets/UIHostComboEditor.h \
603 src/widgets/UIHotKeyEditor.h \
604 src/widgets/UILineTextEdit.h \
605 src/widgets/UIMediumSizeEditor.h \
606 src/widgets/UIMenuBar.h \
607 src/widgets/UIPopupBox.h \
608 src/widgets/UIPopupPane.h \
609 src/widgets/UIPopupPaneMessage.h \
610 src/widgets/UIPopupPaneDetails.h \
611 src/widgets/UIPopupPaneButtonPane.h \
612 src/widgets/UIPopupStack.h \
613 src/widgets/UIPopupStackViewport.h \
614 src/widgets/UIPortForwardingTable.h \
615 src/widgets/UIProgressDialog.h \
616 src/widgets/UISlidingWidget.h \
617 src/widgets/UISpecialControls.h \
618 src/widgets/UITabBar.h \
619 src/widgets/UIToolBar.h \
620 src/widgets/VBoxMediaComboBox.h \
621 src/widgets/UIMenuToolBar.h \
622 src/widgets/UIMiniToolBar.h \
623 src/widgets/VBoxOSTypeSelectorButton.h \
624 src/widgets/UINameAndSystemEditor.h \
625 src/widgets/UIWarningPane.h \
626 src/widgets/UIFilmContainer.h \
627 src/widgets/graphics/UIGraphicsButton.h \
628 src/widgets/graphics/UIGraphicsRotatorButton.h \
629 src/widgets/graphics/UIGraphicsZoomButton.h \
630 src/widgets/graphics/UIGraphicsToolBar.h \
631 src/widgets/graphics/UIGraphicsTextPane.h \
632 src/wizards/UIWizard.h \
633 src/wizards/UIWizardPage.h \
634 src/wizards/newvm/UIWizardNewVM.h \
635 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
636 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
637 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
638 src/wizards/newvm/UIWizardNewVMPageExpert.h \
639 src/wizards/newvd/UIWizardNewVD.h \
640 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
641 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
642 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
643 src/wizards/newvd/UIWizardNewVDPageExpert.h \
644 src/wizards/clonevm/UIWizardCloneVM.h \
645 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
646 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
647 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
648 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
649 src/wizards/clonevd/UIWizardCloneVD.h \
650 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
651 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
652 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
653 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
654 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
655 src/wizards/exportappliance/UIWizardExportApp.h \
656 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
657 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
658 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
659 src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
660 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
661 src/wizards/importappliance/UIWizardImportApp.h \
662 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
663 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
664 src/wizards/importappliance/UIWizardImportAppPageExpert.h \
665 src/wizards/firstrun/UIWizardFirstRun.h \
666 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
667
668ifdef VBOX_GUI_WITH_NETWORK_MANAGER
669 VirtualBox_QT_MOCHDRS += \
670 src/net/UIDownloader.h \
671 src/net/UIDownloaderAdditions.h \
672 src/net/UIDownloaderExtensionPack.h \
673 src/net/UIDownloaderUserManual.h \
674 src/net/UINetworkManager.h \
675 src/net/UINetworkManagerDialog.h \
676 src/net/UINetworkManagerIndicator.h \
677 src/net/UINetworkRequest.h \
678 src/net/UINetworkRequestWidget.h \
679 src/net/UINetworkReply.h \
680 src/net/UINetworkCustomer.h \
681 src/net/UIUpdateManager.h \
682 src/settings/global/UIGlobalSettingsProxy.h \
683 src/settings/global/UIGlobalSettingsUpdate.h
684endif
685
686ifdef VBOX_WITH_DRAG_AND_DROP
687 VirtualBox_QT_MOCHDRS += \
688 src/runtime/UIDnDHandler.h
689 ifdef VBOX_WITH_DRAG_AND_DROP_GH
690 VirtualBox_QT_MOCHDRS += \
691 src/runtime/UIDnDMIMEData.h
692 endif
693endif
694
695VirtualBox_QT_MOCHDRS.darwin += \
696 src/platform/darwin/UICocoaSpecialControls.h \
697 src/platform/darwin/UIWindowMenuManager.h
698
699
700#
701# VirtualBox - GUI Global Shared Library.
702# Headers containing definitions of classes that use the Q_OBJECT macro.
703#
704VBoxGlobal_QT_MOCHDRS = \
705 src/VBoxAboutDlg.h \
706 src/VBoxLicenseViewer.h \
707 src/extensions/QIArrowButtonPress.h \
708 src/extensions/QIArrowButtonSwitch.h \
709 src/extensions/QIArrowSplitter.h \
710 src/extensions/QIDialog.h \
711 src/extensions/QIDialogButtonBox.h \
712 src/extensions/QIFileDialog.h \
713 src/extensions/QILabel.h \
714 src/extensions/QIMainWindow.h \
715 src/extensions/QIMessageBox.h \
716 src/extensions/QIProcess.h \
717 src/extensions/QIRichTextLabel.h \
718 src/extensions/QIRichToolButton.h \
719 src/extensions/QISplitter.h \
720 src/extensions/QIStatusBarIndicator.h \
721 src/extensions/QIToolButton.h \
722 src/extensions/QIWidgetValidator.h \
723 src/extradata/UIExtraDataDefs.h \
724 src/extradata/UIExtraDataManager.h \
725 src/globals/UIActionPool.h \
726 src/globals/UIAnimationFramework.h \
727 src/globals/UIDesktopWidgetWatchdog.h \
728 src/globals/UIMainEventListener.h \
729 src/globals/UIMessageCenter.h \
730 src/globals/UIModalWindowManager.h \
731 src/globals/UIPopupCenter.h \
732 src/globals/UIShortcutPool.h \
733 src/globals/UIThreadPool.h \
734 src/globals/VBoxGlobal.h \
735 src/globals/VBoxUtils.h \
736 src/medium/UIMediumEnumerator.h \
737 src/runtime/UIActionPoolRuntime.h \
738 src/selector/UIActionPoolSelector.h \
739 src/selector/UIVirtualBoxEventHandler.h \
740 src/widgets/UIHostComboEditor.h \
741 src/widgets/UIPopupBox.h \
742 src/widgets/UIPopupPane.h \
743 src/widgets/UIPopupPaneButtonPane.h \
744 src/widgets/UIPopupPaneMessage.h \
745 src/widgets/UIPopupPaneDetails.h \
746 src/widgets/UIPopupStack.h \
747 src/widgets/UIPopupStackViewport.h \
748 src/widgets/UIProgressDialog.h \
749 src/widgets/UISpecialControls.h \
750 src/widgets/UIToolBar.h
751
752ifdef VBOX_GUI_WITH_NETWORK_MANAGER
753 VBoxGlobal_QT_MOCHDRS += \
754 src/net/UIDownloader.h \
755 src/net/UIDownloaderAdditions.h \
756 src/net/UIDownloaderExtensionPack.h \
757 src/net/UIDownloaderUserManual.h \
758 src/net/UINetworkCustomer.h \
759 src/net/UINetworkManager.h \
760 src/net/UINetworkManagerDialog.h \
761 src/net/UINetworkManagerIndicator.h \
762 src/net/UINetworkRequest.h \
763 src/net/UINetworkRequestWidget.h \
764 src/net/UINetworkReply.h \
765 src/net/UIUpdateManager.h
766endif
767
768VBoxGlobal_QT_MOCHDRS.darwin += \
769 src/platform/darwin/UICocoaSpecialControls.h
770
771
772#
773# VirtualBox - GUI Application.
774# Sources containing local definitions of classes that use the Q_OBJECT macro.
775#
776VirtualBox_QT_MOCSRCS = \
777 src/logviewer/UIVMLogViewerFilterPanel.cpp \
778 src/logviewer/UIVMLogViewerSearchPanel.cpp \
779 src/logviewer/UIVMLogViewerTextEdit.cpp \
780 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
781 src/runtime/UIConsoleEventHandler.cpp \
782 src/runtime/UIFrameBuffer.cpp \
783 src/runtime/UIIndicatorsPool.cpp \
784 src/runtime/UIStatusBarEditorWindow.cpp \
785 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
786 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
787 src/runtime/guestctrl/UIGuestControlWidget.cpp \
788 src/runtime/guestctrl/UIGuestFileTable.cpp \
789 src/runtime/guestctrl/UIHostFileTable.cpp \
790 src/selector/UIDesktopPane.cpp \
791 src/selector/UISnapshotDetailsWidget.cpp \
792 src/selector/UISnapshotPane.cpp \
793 src/settings/global/UIGlobalSettingsInput.cpp \
794 src/settings/machine/UIMachineSettingsNetwork.cpp \
795 src/settings/machine/UIMachineSettingsSerial.cpp \
796 src/settings/machine/UIMachineSettingsStorage.cpp \
797 src/settings/machine/UIMachineSettingsUSB.cpp \
798 src/widgets/UIHotKeyEditor.cpp \
799 src/widgets/UIMenuToolBar.cpp \
800 src/widgets/UIMiniToolBar.cpp \
801 src/widgets/UIPortForwardingTable.cpp \
802 src/widgets/UITabBar.cpp \
803 src/wizards/importappliance/UIWizardImportApp.cpp
804
805VirtualBox_QT_MOCSRCS.darwin += \
806 src/platform/darwin/UIWindowMenuManager.cpp
807
808ifndef VBOX_GUI_WITH_SHARED_LIBRARY
809 VirtualBox_QT_MOCSRCS += \
810 src/extensions/QISplitter.cpp \
811 src/extensions/QIArrowSplitter.cpp \
812 src/extradata/UIExtraDataManager.cpp \
813 src/globals/UIActionPool.cpp \
814 src/globals/UIMainEventListener.cpp \
815 src/globals/UIThreadPool.cpp \
816 src/medium/UIMediumEnumerator.cpp \
817 src/runtime/UIActionPoolRuntime.cpp \
818 src/selector/UIActionPoolSelector.cpp \
819 src/selector/UIVirtualBoxEventHandler.cpp \
820 src/widgets/UIProgressDialog.cpp
821
822 VirtualBox_QT_MOCSRCS.linux += \
823 src/globals/UIDesktopWidgetWatchdog.cpp
824 VirtualBox_QT_MOCSRCS.solaris += \
825 src/globals/UIDesktopWidgetWatchdog.cpp
826 VirtualBox_QT_MOCSRCS.freebsd += \
827 src/globals/UIDesktopWidgetWatchdog.cpp
828
829 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
830 VirtualBox_QT_MOCSRCS += \
831 src/net/UINetworkReply.cpp \
832 src/net/UIUpdateManager.cpp
833 endif
834
835 ifdef VBOX_WITH_XPCOM
836 VirtualBox_QT_MOCSRCS += \
837 src/globals/COMDefs.cpp
838 endif
839endif
840
841
842#
843# VirtualBox - GUI Global Shared Library.
844# Sources.
845#
846VBoxGlobal_QT_MOCSRCS = \
847 src/extensions/QISplitter.cpp \
848 src/extensions/QIArrowSplitter.cpp \
849 src/extradata/UIExtraDataManager.cpp \
850 src/globals/UIActionPool.cpp \
851 src/globals/UIMainEventListener.cpp \
852 src/globals/UIThreadPool.cpp \
853 src/medium/UIMediumEnumerator.cpp \
854 src/runtime/UIActionPoolRuntime.cpp \
855 src/selector/UIActionPoolSelector.cpp \
856 src/selector/UIVirtualBoxEventHandler.cpp \
857 src/widgets/UIProgressDialog.cpp
858
859VBoxGlobal_QT_MOCSRCS.linux += \
860 src/globals/UIDesktopWidgetWatchdog.cpp
861VBoxGlobal_QT_MOCSRCS.solaris += \
862 src/globals/UIDesktopWidgetWatchdog.cpp
863VBoxGlobal_QT_MOCSRCS.freebsd += \
864 src/globals/UIDesktopWidgetWatchdog.cpp
865
866ifdef VBOX_GUI_WITH_NETWORK_MANAGER
867 VBoxGlobal_QT_MOCSRCS += \
868 src/net/UINetworkReply.cpp \
869 src/net/UIUpdateManager.cpp
870endif
871
872ifdef VBOX_WITH_XPCOM
873 VBoxGlobal_QT_MOCSRCS += \
874 src/globals/COMDefs.cpp
875endif
876
877
878#
879# VirtualBox - GUI Application.
880# Sources.
881#
882VirtualBox_SOURCES = \
883 src/main.cpp \
884 src/UITakeSnapshotDialog.cpp \
885 src/extensions/QIAdvancedSlider.cpp \
886 src/extensions/QIComboBox.cpp \
887 src/extensions/QIFlowLayout.cpp \
888 src/extensions/QILabelSeparator.cpp \
889 src/extensions/QILineEdit.cpp \
890 src/extensions/QIMainDialog.cpp \
891 src/extensions/QIManagerDialog.cpp \
892 src/extensions/QIMenu.cpp \
893 src/extensions/QIStatusBar.cpp \
894 src/extensions/QITableView.cpp \
895 src/extensions/QITreeView.cpp \
896 src/extensions/QITreeWidget.cpp \
897 src/extensions/graphics/QIGraphicsView.cpp \
898 src/extensions/graphics/QIGraphicsWidget.cpp \
899 src/globals/UIImageTools.cpp \
900 src/globals/UIStarter.cpp \
901 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
902 src/hostnetwork/UIHostNetworkManager.cpp \
903 src/hostnetwork/UIHostNetworkUtils.cpp \
904 src/logviewer/UIVMLogPage.cpp \
905 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
906 src/logviewer/UIVMLogViewerDialog.cpp \
907 src/logviewer/UIVMLogViewerFilterPanel.cpp \
908 src/logviewer/UIVMLogViewerPanel.cpp \
909 src/logviewer/UIVMLogViewerSearchPanel.cpp \
910 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
911 src/logviewer/UIVMLogViewerTextEdit.cpp \
912 src/logviewer/UIVMLogViewerWidget.cpp \
913 src/medium/UIMediumDetailsWidget.cpp \
914 src/medium/UIMediumManager.cpp \
915 src/objects/UIRichTextString.cpp \
916 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
917 src/runtime/UIConsoleEventHandler.cpp \
918 src/runtime/UIFrameBuffer.cpp \
919 src/runtime/UIIndicatorsPool.cpp \
920 src/runtime/UIKeyboardHandler.cpp \
921 src/runtime/UIMachine.cpp \
922 src/runtime/UIMachineLogic.cpp \
923 src/runtime/UIMachineView.cpp \
924 src/runtime/UIMachineWindow.cpp \
925 src/runtime/UIMenuBarEditorWindow.cpp \
926 src/runtime/UIMouseHandler.cpp \
927 src/runtime/UIMultiScreenLayout.cpp \
928 src/runtime/UISession.cpp \
929 src/runtime/UISlidingToolBar.cpp \
930 src/runtime/UIStatusBarEditorWindow.cpp \
931 src/runtime/UIVMCloseDialog.cpp \
932 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
933 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
934 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
935 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
936 src/runtime/information/UIInformationConfiguration.cpp \
937 src/runtime/information/UIInformationDataItem.cpp \
938 src/runtime/information/UIInformationItem.cpp \
939 src/runtime/information/UIInformationModel.cpp \
940 src/runtime/information/UIInformationRuntime.cpp \
941 src/runtime/information/UIInformationView.cpp \
942 src/runtime/information/UIVMInformationDialog.cpp \
943 src/runtime/guestctrl/UIGuestControlConsole.cpp \
944 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
945 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
946 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
947 src/runtime/guestctrl/UIGuestControlInterface.cpp \
948 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
949 src/runtime/guestctrl/UIGuestControlWidget.cpp \
950 src/runtime/guestctrl/UIGuestFileTable.cpp \
951 src/runtime/guestctrl/UIHostFileTable.cpp \
952 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
953 src/runtime/normal/UIMachineLogicNormal.cpp \
954 src/runtime/normal/UIMachineViewNormal.cpp \
955 src/runtime/normal/UIMachineWindowNormal.cpp \
956 src/runtime/scale/UIKeyboardHandlerScale.cpp \
957 src/runtime/scale/UIMachineLogicScale.cpp \
958 src/runtime/scale/UIMachineViewScale.cpp \
959 src/runtime/scale/UIMachineWindowScale.cpp \
960 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
961 src/runtime/seamless/UIMachineLogicSeamless.cpp \
962 src/runtime/seamless/UIMachineViewSeamless.cpp \
963 src/runtime/seamless/UIMachineWindowSeamless.cpp \
964 src/selector/UIDesktopPane.cpp \
965 src/selector/UIVMItem.cpp \
966 src/selector/UISelectorWindow.cpp \
967 src/selector/UISnapshotDetailsWidget.cpp \
968 src/selector/UISnapshotPane.cpp \
969 src/selector/UIToolsPaneGlobal.cpp \
970 src/selector/UIToolsPaneMachine.cpp \
971 src/selector/UIToolsToolbar.cpp \
972 src/selector/graphics/chooser/UIGChooser.cpp \
973 src/selector/graphics/chooser/UIGChooserModel.cpp \
974 src/selector/graphics/chooser/UIGChooserView.cpp \
975 src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
976 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
977 src/selector/graphics/chooser/UIGChooserItem.cpp \
978 src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
979 src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
980 src/selector/graphics/details/UIGDetails.cpp \
981 src/selector/graphics/details/UIGDetailsModel.cpp \
982 src/selector/graphics/details/UIGDetailsView.cpp \
983 src/selector/graphics/details/UIGDetailsItem.cpp \
984 src/selector/graphics/details/UIGDetailsGroup.cpp \
985 src/selector/graphics/details/UIGDetailsSet.cpp \
986 src/selector/graphics/details/UIGDetailsElement.cpp \
987 src/selector/graphics/details/UIGDetailsElements.cpp \
988 src/selector/graphics/details/UIGMachinePreview.cpp \
989 src/settings/UISettingsDialog.cpp \
990 src/settings/UISettingsDialogSpecific.cpp \
991 src/settings/UISettingsPage.cpp \
992 src/settings/UISettingsSelector.cpp \
993 src/settings/UISettingsSerializer.cpp \
994 src/settings/global/UIGlobalSettingsExtension.cpp \
995 src/settings/global/UIGlobalSettingsGeneral.cpp \
996 src/settings/global/UIGlobalSettingsInput.cpp \
997 src/settings/global/UIGlobalSettingsLanguage.cpp \
998 src/settings/global/UIGlobalSettingsDisplay.cpp \
999 src/settings/global/UIGlobalSettingsNetwork.cpp \
1000 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1001 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1002 src/settings/machine/UIMachineSettingsAudio.cpp \
1003 src/settings/machine/UIMachineSettingsDisplay.cpp \
1004 src/settings/machine/UIMachineSettingsGeneral.cpp \
1005 src/settings/machine/UIMachineSettingsInterface.cpp \
1006 src/settings/machine/UIMachineSettingsNetwork.cpp \
1007 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1008 src/settings/machine/UIMachineSettingsSF.cpp \
1009 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1010 src/settings/machine/UIMachineSettingsSerial.cpp \
1011 src/settings/machine/UIMachineSettingsStorage.cpp \
1012 src/settings/machine/UIMachineSettingsSystem.cpp \
1013 src/settings/machine/UIMachineSettingsUSB.cpp \
1014 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1015 src/widgets/UIApplianceEditorWidget.cpp \
1016 src/widgets/UIApplianceExportEditorWidget.cpp \
1017 src/widgets/UIApplianceImportEditorWidget.cpp \
1018 src/widgets/UIBootTable.cpp \
1019 src/widgets/UIFilePathSelector.cpp \
1020 src/widgets/UIEmptyFilePathSelector.cpp \
1021 src/widgets/UIHotKeyEditor.cpp \
1022 src/widgets/UILineTextEdit.cpp \
1023 src/widgets/UIMediumSizeEditor.cpp \
1024 src/widgets/UIMenuBar.cpp \
1025 src/widgets/UIPortForwardingTable.cpp \
1026 src/widgets/UISlidingWidget.cpp \
1027 src/widgets/UITabBar.cpp \
1028 src/widgets/VBoxGuestRAMSlider.cpp \
1029 src/widgets/VBoxMediaComboBox.cpp \
1030 src/widgets/UIMenuToolBar.cpp \
1031 src/widgets/UIMiniToolBar.cpp \
1032 src/widgets/VBoxOSTypeSelectorButton.cpp \
1033 src/widgets/UINameAndSystemEditor.cpp \
1034 src/widgets/UIWarningPane.cpp \
1035 src/widgets/UIFilmContainer.cpp \
1036 src/widgets/graphics/UIGraphicsButton.cpp \
1037 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1038 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1039 src/widgets/graphics/UIGraphicsToolBar.cpp \
1040 src/widgets/graphics/UIGraphicsTextPane.cpp \
1041 src/wizards/UIWizard.cpp \
1042 src/wizards/UIWizardPage.cpp \
1043 src/wizards/newvm/UIWizardNewVM.cpp \
1044 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
1045 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
1046 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
1047 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
1048 src/wizards/newvd/UIWizardNewVD.cpp \
1049 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1050 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1051 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1052 src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
1053 src/wizards/clonevm/UIWizardCloneVM.cpp \
1054 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
1055 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
1056 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
1057 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
1058 src/wizards/clonevd/UIWizardCloneVD.cpp \
1059 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
1060 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
1061 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
1062 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
1063 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
1064 src/wizards/exportappliance/UIWizardExportApp.cpp \
1065 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
1066 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
1067 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
1068 src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
1069 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1070 src/wizards/importappliance/UIWizardImportApp.cpp \
1071 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
1072 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
1073 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
1074 src/wizards/firstrun/UIWizardFirstRun.cpp \
1075 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
1076
1077ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1078 VirtualBox_SOURCES += \
1079 src/settings/global/UIGlobalSettingsProxy.cpp \
1080 src/settings/global/UIGlobalSettingsUpdate.cpp
1081endif
1082
1083VirtualBox_SOURCES.darwin += \
1084 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1085 src/platform/darwin/UICocoaDockIconPreview.mm \
1086 src/platform/darwin/UIWindowMenuManager.cpp \
1087
1088if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1089 VirtualBox_SOURCES += \
1090 src/platform/x11/UIDesktopServices_x11.cpp
1091endif
1092
1093VirtualBox_SOURCES.win += \
1094 src/platform/win/VirtualBox.rc \
1095 src/platform/win/UIDesktopServices_win.cpp \
1096 src/platform/win/WinKeyboard.cpp
1097
1098VirtualBox_SOURCES.darwin += \
1099 src/platform/darwin/UIDesktopServices_darwin.cpp \
1100 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1101
1102ifdef VBOX_WITH_ICHAT_THEATER
1103 VirtualBox_SOURCES.darwin += \
1104 src/platform/darwin/VBoxIChatTheaterWrapper.m
1105endif
1106
1107if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1108 VirtualBox_SOURCES += \
1109 src/VBoxFBOverlay.cpp \
1110 src/VBoxGLSupportInfo.cpp
1111endif
1112
1113ifdef VBOX_WITH_DRAG_AND_DROP
1114 VirtualBox_SOURCES += \
1115 src/runtime/UIDnDHandler.cpp
1116 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1117 VirtualBox_SOURCES += \
1118 src/runtime/UIDnDMIMEData.cpp
1119 VirtualBox_SOURCES.win += \
1120 src/runtime/UIDnDDropSource_win.cpp \
1121 src/runtime/UIDnDDataObject_win.cpp \
1122 src/runtime/UIDnDEnumFormat_win.cpp
1123 endif
1124endif
1125
1126ifndef VBOX_GUI_WITH_SHARED_LIBRARY
1127 VirtualBox_SOURCES += \
1128 src/VBoxAboutDlg.cpp \
1129 src/VBoxLicenseViewer.cpp \
1130 src/extensions/QIArrowButtonPress.cpp \
1131 src/extensions/QIArrowButtonSwitch.cpp \
1132 src/extensions/QIArrowSplitter.cpp \
1133 src/extensions/QIDialog.cpp \
1134 src/extensions/QIDialogButtonBox.cpp \
1135 src/extensions/QIFileDialog.cpp \
1136 src/extensions/QILabel.cpp \
1137 src/extensions/QIMainWindow.cpp \
1138 src/extensions/QIMessageBox.cpp \
1139 src/extensions/QIProcess.cpp \
1140 src/extensions/QIRichTextLabel.cpp \
1141 src/extensions/QIRichToolButton.cpp \
1142 src/extensions/QISplitter.cpp \
1143 src/extensions/QIStatusBarIndicator.cpp \
1144 src/extensions/QIToolButton.cpp \
1145 src/extensions/QIWidgetValidator.cpp \
1146 src/extradata/UIExtraDataDefs.cpp \
1147 src/extradata/UIExtraDataManager.cpp \
1148 src/converter/UIConverter.cpp \
1149 src/converter/UIConverterBackendCOM.cpp \
1150 src/converter/UIConverterBackendGlobal.cpp \
1151 src/globals/COMDefs.cpp \
1152 src/globals/UIActionPool.cpp \
1153 src/globals/UIAnimationFramework.cpp \
1154 src/globals/UIDefs.cpp \
1155 src/globals/UIDesktopWidgetWatchdog.cpp \
1156 src/globals/UIErrorString.cpp \
1157 src/globals/UIIconPool.cpp \
1158 src/globals/UIMainEventListener.cpp \
1159 src/globals/UIMessageCenter.cpp \
1160 src/globals/UIModalWindowManager.cpp \
1161 src/globals/UIPopupCenter.cpp \
1162 src/globals/UIShortcutPool.cpp \
1163 src/globals/UIThreadPool.cpp \
1164 src/globals/VBoxGlobal.cpp \
1165 src/medium/UIMedium.cpp \
1166 src/medium/UIMediumDefs.cpp \
1167 src/medium/UIMediumEnumerator.cpp \
1168 src/runtime/UIActionPoolRuntime.cpp \
1169 src/selector/UIActionPoolSelector.cpp \
1170 src/selector/UIVirtualBoxEventHandler.cpp \
1171 src/settings/UISettingsDefs.cpp \
1172 src/widgets/UIHostComboEditor.cpp \
1173 src/widgets/UIPopupBox.cpp \
1174 src/widgets/UIPopupPane.cpp \
1175 src/widgets/UIPopupPaneButtonPane.cpp \
1176 src/widgets/UIPopupPaneMessage.cpp \
1177 src/widgets/UIPopupPaneDetails.cpp \
1178 src/widgets/UIPopupStack.cpp \
1179 src/widgets/UIPopupStackViewport.cpp \
1180 src/widgets/UIProgressDialog.cpp \
1181 src/widgets/UISpecialControls.cpp \
1182 src/widgets/UIToolBar.cpp
1183
1184 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1185 VirtualBox_SOURCES += \
1186 src/net/UIDownloader.cpp \
1187 src/net/UIDownloaderAdditions.cpp \
1188 src/net/UIDownloaderExtensionPack.cpp \
1189 src/net/UIDownloaderUserManual.cpp \
1190 src/net/UINetworkCustomer.cpp \
1191 src/net/UINetworkManager.cpp \
1192 src/net/UINetworkManagerDialog.cpp \
1193 src/net/UINetworkManagerIndicator.cpp \
1194 src/net/UINetworkRequest.cpp \
1195 src/net/UINetworkRequestWidget.cpp \
1196 src/net/UINetworkReply.cpp \
1197 src/net/UIUpdateDefs.cpp \
1198 src/net/UIUpdateManager.cpp
1199 endif
1200
1201 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1202 VirtualBox_SOURCES += \
1203 src/platform/x11/VBoxX11Helper.cpp \
1204 src/platform/x11/XKeyboard-new.cpp
1205 endif
1206
1207 VirtualBox_SOURCES.win += \
1208 src/platform/win/VBoxUtils-win.cpp
1209
1210 VirtualBox_SOURCES.darwin += \
1211 src/platform/darwin/CocoaEventHelper.mm \
1212 src/platform/darwin/DarwinKeyboard.cpp \
1213 src/platform/darwin/UICocoaApplication.mm \
1214 src/platform/darwin/UICocoaSpecialControls.mm \
1215 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1216 src/platform/darwin/VBoxUtils-darwin.cpp
1217
1218endif
1219
1220
1221#
1222# VirtualBox - GUI Global Shared Library.
1223# Sources.
1224#
1225VBoxGlobal_SOURCES = \
1226 src/VBoxAboutDlg.cpp \
1227 src/VBoxLicenseViewer.cpp \
1228 src/extensions/QIArrowButtonPress.cpp \
1229 src/extensions/QIArrowButtonSwitch.cpp \
1230 src/extensions/QIArrowSplitter.cpp \
1231 src/extensions/QIDialog.cpp \
1232 src/extensions/QIDialogButtonBox.cpp \
1233 src/extensions/QIFileDialog.cpp \
1234 src/extensions/QILabel.cpp \
1235 src/extensions/QIMainWindow.cpp \
1236 src/extensions/QIMessageBox.cpp \
1237 src/extensions/QIProcess.cpp \
1238 src/extensions/QIRichTextLabel.cpp \
1239 src/extensions/QIRichToolButton.cpp \
1240 src/extensions/QISplitter.cpp \
1241 src/extensions/QIStatusBarIndicator.cpp \
1242 src/extensions/QIToolButton.cpp \
1243 src/extensions/QIWidgetValidator.cpp \
1244 src/extradata/UIExtraDataDefs.cpp \
1245 src/extradata/UIExtraDataManager.cpp \
1246 src/converter/UIConverter.cpp \
1247 src/converter/UIConverterBackendCOM.cpp \
1248 src/converter/UIConverterBackendGlobal.cpp \
1249 src/globals/COMDefs.cpp \
1250 src/globals/UIActionPool.cpp \
1251 src/globals/UIAnimationFramework.cpp \
1252 src/globals/UIDefs.cpp \
1253 src/globals/UIDesktopWidgetWatchdog.cpp \
1254 src/globals/UIErrorString.cpp \
1255 src/globals/UIIconPool.cpp \
1256 src/globals/UIMainEventListener.cpp \
1257 src/globals/UIMessageCenter.cpp \
1258 src/globals/UIModalWindowManager.cpp \
1259 src/globals/UIPopupCenter.cpp \
1260 src/globals/UIShortcutPool.cpp \
1261 src/globals/UIThreadPool.cpp \
1262 src/globals/VBoxGlobal.cpp \
1263 src/medium/UIMedium.cpp \
1264 src/medium/UIMediumDefs.cpp \
1265 src/medium/UIMediumEnumerator.cpp \
1266 src/runtime/UIActionPoolRuntime.cpp \
1267 src/selector/UIActionPoolSelector.cpp \
1268 src/selector/UIVirtualBoxEventHandler.cpp \
1269 src/settings/UISettingsDefs.cpp \
1270 src/widgets/UIHostComboEditor.cpp \
1271 src/widgets/UIPopupBox.cpp \
1272 src/widgets/UIPopupPane.cpp \
1273 src/widgets/UIPopupPaneButtonPane.cpp \
1274 src/widgets/UIPopupPaneMessage.cpp \
1275 src/widgets/UIPopupPaneDetails.cpp \
1276 src/widgets/UIPopupStack.cpp \
1277 src/widgets/UIPopupStackViewport.cpp \
1278 src/widgets/UIProgressDialog.cpp \
1279 src/widgets/UISpecialControls.cpp \
1280 src/widgets/UIToolBar.cpp
1281
1282ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1283 VBoxGlobal_SOURCES += \
1284 src/net/UIDownloader.cpp \
1285 src/net/UIDownloaderAdditions.cpp \
1286 src/net/UIDownloaderExtensionPack.cpp \
1287 src/net/UIDownloaderUserManual.cpp \
1288 src/net/UINetworkCustomer.cpp \
1289 src/net/UINetworkManager.cpp \
1290 src/net/UINetworkManagerDialog.cpp \
1291 src/net/UINetworkManagerIndicator.cpp \
1292 src/net/UINetworkRequest.cpp \
1293 src/net/UINetworkRequestWidget.cpp \
1294 src/net/UINetworkReply.cpp \
1295 src/net/UIUpdateDefs.cpp \
1296 src/net/UIUpdateManager.cpp
1297endif
1298
1299if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1300 VBoxGlobal_SOURCES += \
1301 src/platform/x11/VBoxX11Helper.cpp \
1302 src/platform/x11/XKeyboard-new.cpp
1303endif
1304
1305VBoxGlobal_SOURCES.win += \
1306 src/platform/win/VBoxUtils-win.cpp
1307
1308VBoxGlobal_SOURCES.darwin += \
1309 src/platform/darwin/CocoaEventHelper.mm \
1310 src/platform/darwin/DarwinKeyboard.cpp \
1311 src/platform/darwin/UICocoaApplication.mm \
1312 src/platform/darwin/UICocoaSpecialControls.mm \
1313 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1314 src/platform/darwin/VBoxUtils-darwin.cpp
1315
1316
1317#
1318# VirtualBox - GUI Application.
1319# Deployment.
1320#
1321if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1322 INSTALLS.linux += VirtualBox.qt.conf
1323 INSTALLS.solaris += VirtualBox.qt.conf
1324 VirtualBox.qt.conf_INST = $(INST_BIN)
1325 VirtualBox.qt.conf_MODE = 644
1326 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1327
1328$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1329 $(QUIET)$(RM) -f $@
1330 $(QUIET)$(APPEND) $@ "[Paths]"
1331 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1332endif
1333
1334
1335#
1336# VirtualBox - GUI Application.
1337# The Qt modules we're using.
1338# (The include directory and lib/framework for each module will be added by the Qt unit.)
1339#
1340VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1341VirtualBox_QT_MODULES.linux += X11Extras
1342VirtualBox_QT_MODULES.solaris += X11Extras
1343VirtualBox_QT_MODULES.freebsd += X11Extras
1344VirtualBox_QT_MODULES.darwin += MacExtras
1345VirtualBox_QT_MODULES.win += WinExtras
1346if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1347 VirtualBox_QT_MODULES += OpenGL
1348endif
1349
1350
1351#
1352# VirtualBox - GUI Global Shared Library.
1353# The Qt modules we're using.
1354# (The include directory and lib/framework for each module will be added by the Qt unit.)
1355#
1356VBoxGlobal_QT_MODULES = Core Gui Widgets
1357VBoxGlobal_QT_MODULES.linux += X11Extras
1358VBoxGlobal_QT_MODULES.solaris += X11Extras
1359VBoxGlobal_QT_MODULES.freebsd += X11Extras
1360VBoxGlobal_QT_MODULES.darwin += MacExtras
1361VBoxGlobal_QT_MODULES.win += WinExtras
1362if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1363 VBoxGlobal_QT_MODULES += OpenGL
1364endif
1365
1366
1367# Pull in the ui files
1368$(eval VirtualBox_SOURCES += $(FORMS))
1369
1370# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1371VirtualBox_SOURCES += VirtualBox1.qrc
1372VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1373VirtualBox_SOURCES += VirtualBox2.qrc
1374VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1375VirtualBox_SOURCES += VirtualBox1_x2.qrc
1376VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1377VirtualBox_SOURCES += VirtualBox2_x2.qrc
1378VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1379VirtualBox_SOURCES += VirtualBox1_x3.qrc
1380VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1381VirtualBox_SOURCES += VirtualBox2_x3.qrc
1382VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1383VirtualBox_SOURCES += VirtualBox1_x4.qrc
1384VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1385VirtualBox_SOURCES += VirtualBox2_x4.qrc
1386VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1387VirtualBox_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1388$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1389if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1390 VirtualBox_SOURCES += VirtualBoxShaders.qrc
1391 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
1392endif
1393
1394# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1395VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1396 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1397# Compress the translation units.
1398VirtualBox_LRCFLAGS = -silent
1399# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1400VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1401
1402
1403## @todo how to detect what tool is used?
1404## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1405# more generic -Wno-extra
1406# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1407ifdef VBOX_WITH_XPCOM
1408 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1409endif
1410
1411
1412#
1413# Generate the COM wrappers.
1414#
1415includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1416VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
1417VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
1418VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1419
1420#
1421# VirtualBox - GUI Application.
1422# Build generated COM wrappers as part of app.
1423#
1424VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
1425
1426#
1427# VirtualBox - GUI Global Shared Library.
1428# Build generated COM wrappers as part of app.
1429#
1430VBoxGlobal_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
1431
1432## @todo kmk doesn't remake optional outputs when they are missing...
1433$$(VirtualBox_0_OUTDIR)/include/COMWrappers \
1434+ $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
1435+| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
1436, $(VirtualBox_VBOX_COMWRAPPERS) \
1437, $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
1438 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
1439): \
1440 $(VBOX_XIDL_FILE) \
1441 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1442 $(VBOX_FILESPLIT) \
1443 | $$(dir $$@)
1444 $(call MSG_GENERATE,VirtualBox,$<,$@)
1445 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
1446 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1447 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1448 $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
1449 $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
1450 $(APPEND) "$@"
1451
1452# alias for generating the COM Wrappers file.
1453testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
1454
1455
1456#
1457# Generate qrc file with branded icons.
1458#
1459VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1460VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1461$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1462 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1463 $(PATH_ROOT)/Config.kmk \
1464 | $$(dir $$@)
1465 $(call MSG_GENERATE,VirtualBox,$<,$@)
1466 $(QUIET)$(SED) \
1467 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1468 -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
1469 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1470 -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
1471 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1472 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1473 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1474 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1475 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1476 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1477 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1478 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1479 --output $@ \
1480 $<
1481
1482
1483#
1484# Precompiled header - non-functional atm.
1485#
1486ifdef VBOX_WITH_PRECOMPILED_HEADERS
1487 if1of ($(KBUILD_TARGET),win)
1488 VirtualBox_USES += vccprecomp
1489 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1490
1491 else # obsolete experiment
1492 VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
1493 VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
1494 VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
1495 $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
1496 $(VirtualBox_SOURCES) \
1497 $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
1498 $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
1499 )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
1500
1501 TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
1502 define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
1503 $(APPEND) -t $(out)
1504 endef
1505
1506 MISCBINS += VirtualBoxPch
1507 VirtualBoxPch_EXTENDS = VirtualBox
1508 VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
1509 VirtualBoxPch_INSTTYPE = none
1510 VirtualBoxPch_NAME = VirtualBoxPch
1511 VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
1512 VirtualBoxPch_SOURCES = src/precomp.h
1513 VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
1514 VirtualBoxPch_CXXOBJSUFF = .h.gch
1515 VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
1516 VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
1517 VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
1518 VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
1519 VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
1520 VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
1521 VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
1522 VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
1523 endif # obsolete experiment
1524endif
1525
1526ifeq ($(KBUILD_TARGET),win)
1527#
1528# On Windows we'll have to generate/edit part of the resource file.
1529# The IDI_ICON1 name is Qt specific.
1530#
1531src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1532src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1533src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1534
1535$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1536 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1537
1538endif # win
1539
1540
1541#
1542# Unset everything that was loaded from VBoxUI.pro.
1543#
1544FORMS :=
1545TRANSLATIONS :=
1546
1547
1548ifeq ($(KBUILD_TARGET),darwin)
1549#
1550# Create directories for each approved language or the application
1551# menu won't be translated.
1552#
1553INSTALLS += VirtualBox.lproj
1554VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1555VirtualBox.lproj_MODE = 755
1556VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1557
1558#
1559# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1560# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1561#
1562INSTALLS += VirtualBox.app
1563VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1564VirtualBox.app_MODE = 644
1565VirtualBox.app_SOURCES = \
1566 src/platform/darwin/PkgInfo \
1567 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1568 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1569 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1570 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1571 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1572 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1573 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1574 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1575 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1576 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1577 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1578
1579 # Qt5 requires qt.conf on Mac OS X:
1580 VirtualBox.app_SOURCES += \
1581 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1582
1583 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1584 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1585 $(QUIET)$(RM) -f $@
1586 $(QUIET)$(SED) \
1587 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1588 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1589 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1590 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1591 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1592 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1593 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1594 $< > $@
1595
1596 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1597 $(QUIET)$(RM) -f $@
1598 $(QUIET)$(APPEND) $@ "[Paths]"
1599 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1600
1601 INSTALLS += VirtualBoxVM.app
1602 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1603 VirtualBoxVM.app_MODE = 644
1604 VirtualBoxVM.app_SOURCES = \
1605 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1606 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1607 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1608 VirtualBoxVM.app_SYMLINKS = \
1609 MacOS=>../../../MacOS/
1610
1611 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1612 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1613 $(QUIET)$(RM) -f $@
1614 $(QUIET)$(SED) \
1615 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1616 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1617 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1618 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1619 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1620 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1621 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1622 --output $@ $<
1623
1624 PROGRAMS += vmstarter
1625 vmstarter_TEMPLATE = VBOXR3EXE
1626 ifdef VBOX_WITH_NEW_XCODE
1627 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1628 else
1629 vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
1630 endif
1631 vmstarter_LDFLAGS += -framework AppKit
1632 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1633 vmstarter_INST = $(INST_BIN)vmstarter
1634
1635 INSTALLS += vmstarter.app
1636 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1637 vmstarter.app_MODE = 644
1638 vmstarter.app_SOURCES = \
1639 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1640 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1641 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1642 vmstarter.app_SYMLINKS = \
1643 MacOS=>../../../MacOS \
1644
1645 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1646 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1647 $(QUIET)$(RM) -f $@
1648 $(QUIET)$(SED) \
1649 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1650 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1651 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1652 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1653 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1654 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1655 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1656 --output $@ $<
1657endif # darwin
1658
1659#
1660# App for testing GL support
1661#
1662if defined(VBOX_WITH_VIDEOHWACCEL)
1663 if1of ($(KBUILD_TARGET), win linux freebsd)
1664 LIBRARIES += VBoxOGL2D
1665 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
1666 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
1667 VBoxOGL2D_QT_MODULES += OpenGL
1668 VBoxOGL2D_SOURCES = \
1669 src/VBoxGLSupportInfo.cpp
1670 VBoxOGL2D_INCS = include
1671 endif
1672endif
1673
1674
1675#
1676# Testcase for the darwin keyboard routines.
1677#
1678ifdef VBOX_WITH_TESTCASES
1679 PROGRAMS.darwin += tstDarwinKeyboard
1680 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1681 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1682 tstDarwinKeyboard_INCS = \
1683 $(VBOX_GUI_INC_DIRS)
1684 tstDarwinKeyboard_SOURCES = \
1685 src/platform/darwin/tstDarwinKeyboard.cpp \
1686 src/platform/darwin/DarwinKeyboard.cpp
1687 tstDarwinKeyboard_SOURCES.amd64 = \
1688 src/platform/darwin/CocoaEventHelper.mm
1689 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1690 tstDarwinKeyboard_LIBS = \
1691 $(LIB_RUNTIME)
1692 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1693 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
1694 endif
1695endif
1696
1697
1698#
1699# Testcase for SSL certificate downloading.
1700#
1701if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
1702 PROGRAMS += tstSSLCertDownloads
1703 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
1704 tstSSLCertDownloads_USES = qt5
1705 tstSSLCertDownloads_QTTOOL = QT5
1706 tstSSLCertDownloads_QT_MODULES = Core Gui
1707 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
1708 tstSSLCertDownloads_INCS = \
1709 $(VBOX_GUI_INC_DIRS)
1710 tstSSLCertDownloads_SOURCES = \
1711 src/net/tstSSLCertDownloads.cpp
1712endif
1713
1714
1715#
1716# Doxygen documentation.
1717#
1718QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1719BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1720OTHER_CLEAN += \
1721 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1722 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
1723 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1724
1725QTGUI_DOXYFILE_INPUT_DIRS := \
1726 $(addprefix $(PATH_SUB_CURRENT)/src/, \
1727 converter \
1728 extensions \
1729 extensions/graphics \
1730 extradata \
1731 globals \
1732 medium \
1733 net \
1734 objects \
1735 platform \
1736 platform/darwin \
1737 platform/os2 \
1738 platform/win \
1739 platform/x11 \
1740 runtime \
1741 runtime/fullscreen \
1742 runtime/information \
1743 runtime/guestctrl \
1744 runtime/normal \
1745 runtime/scale \
1746 runtime/seamless \
1747 selector \
1748 selector/graphics \
1749 selector/graphics/chooser \
1750 selector/graphics/details \
1751 settings \
1752 settings/global \
1753 settings/machine \
1754 widgets \
1755 widgets/graphics \
1756 wizards \
1757 wizards/clonevd \
1758 wizards/clonevm \
1759 wizards/exportappliance \
1760 wizards/firstrun \
1761 wizards/importappliance \
1762 wizards/newvd \
1763 wizards/newvm)
1764
1765QTGUI_DOXYFILE_INPUT := \
1766 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
1767 $(sort $(wildcard $(dir)/*.h)) \
1768 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
1769
1770includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
1771
1772# Generate the Doxyfile
1773$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
1774 $(PATH_SUB_CURRENT)/Doxyfile \
1775 $(PATH_SUB_CURRENT)/Makefile.kmk \
1776 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
1777 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
1778 | $$(dir $$@)
1779 $(QUIET)$(RM) -f $@ [email protected] [email protected]
1780 $(QUIET)$(CP) -f $< [email protected]
1781 $(QUIET)$(APPEND) [email protected]
1782 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
1783 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
1784 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
1785 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1786 $(QUIET)$(APPEND) [email protected]
1787 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
1788 $(QUIET)$(APPEND) [email protected]
1789 $(QUIET)$(MV) -f [email protected] $@
1790 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
1791 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
1792
1793# Do the actual job.
1794$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
1795 | $(QTGUI_DOXYFILE_OUTPUT)/
1796 $(call MSG_L1,doxygen qtgui)
1797 $(QUIET)$(RM) -f $@
1798 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
1799 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
1800 $(APPEND) $@
1801
1802# aliases
1803docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1804if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1805docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1806endif
1807
1808
1809
1810# Commit the magic.
1811# (note: before custom rules that make usage of generated variables!).
1812include $(FILE_KBUILD_SUB_FOOTER)
1813
1814
1815#
1816# Update all known NLS translation (.ts) files in the nls/ subdirectory.
1817#
1818# NOTE: This target is intended to be run only by the GUI maintainer shortly
1819# before a new product release. VirtualBox_xx_YY.ts is a template for new
1820# languages and should never be actually translated or installed.
1821#
1822# Use the checknls target for checking again common mistakes done by the
1823# translators.
1824#
1825# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
1826# lupdate call
1827#
1828#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
1829checknls::
1830 # Check for missing :/ in image paths
1831 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
1832
1833updatenls:: makeallnls nls/VirtualBox_en.ts
1834
1835makeallnls:: \
1836 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1837 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1838 $(call MSG_L1,lupdate all languages (nls/*.ts))
1839 $(QUIET)$(TOOL_QT5_LUPDATE) \
1840 $^ \
1841 -ts \
1842 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
1843 nls/VirtualBox_xx_YY.ts
1844
1845# Create the English translation file. This is something special cause it will
1846# contain the plural forms only.
1847nls/VirtualBox_en.ts: \
1848 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1849 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1850 $(call MSG_L1,lupdate $@)
1851 $(QUIET)$(TOOL_QT5_LUPDATE) \
1852 $^ \
1853 -ts \
1854 $@
1855 $(QUIET)$(SED) -n -i -e \
1856 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
1857 $@
1858
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