VirtualBox

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

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

FE/Qt: bugref:9049: It actually appeared linking library mocs two times is incorrect (at least on Windows).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 64.9 KB
Line 
1# $Id: Makefile.kmk 71679 2018-04-05 12:13:12Z 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/UITakeSnapshotDialog.h \
433 src/extensions/QIAdvancedSlider.h \
434 src/extensions/QIComboBox.h \
435 src/extensions/QIFlowLayout.h \
436 src/extensions/QILabelSeparator.h \
437 src/extensions/QIMainDialog.h \
438 src/extensions/QIManagerDialog.h \
439 src/extensions/QIMenu.h \
440 src/extensions/QIStatusBar.h \
441 src/extensions/QIStyledItemDelegate.h \
442 src/extensions/QITabWidget.h \
443 src/extensions/QITableView.h \
444 src/extensions/QITreeView.h \
445 src/extensions/QITreeWidget.h \
446 src/extensions/graphics/QIGraphicsView.h \
447 src/extensions/graphics/QIGraphicsWidget.h \
448 src/globals/UIStarter.h \
449 src/hostnetwork/UIHostNetworkDetailsWidget.h \
450 src/hostnetwork/UIHostNetworkManager.h \
451 src/logviewer/UIVMLogPage.h \
452 src/logviewer/UIVMLogViewerBookmarksPanel.h \
453 src/logviewer/UIVMLogViewerDialog.h \
454 src/logviewer/UIVMLogViewerFilterPanel.h \
455 src/logviewer/UIVMLogViewerPanel.h \
456 src/logviewer/UIVMLogViewerSearchPanel.h \
457 src/logviewer/UIVMLogViewerSettingsPanel.h \
458 src/logviewer/UIVMLogViewerTextEdit.h \
459 src/logviewer/UIVMLogViewerWidget.h \
460 src/medium/UIMediumDetailsWidget.h \
461 src/medium/UIMediumManager.h \
462 src/runtime/UIAddDiskEncryptionPasswordDialog.h \
463 src/runtime/UIConsoleEventHandler.h \
464 src/runtime/UIFrameBuffer.h \
465 src/runtime/UIIndicatorsPool.h \
466 src/runtime/UIKeyboardHandler.h \
467 src/runtime/UIMachine.h \
468 src/runtime/UIMachineLogic.h \
469 src/runtime/UIMachineWindow.h \
470 src/runtime/UIMachineView.h \
471 src/runtime/UIMenuBarEditorWindow.h \
472 src/runtime/UIMouseHandler.h \
473 src/runtime/UIMultiScreenLayout.h \
474 src/runtime/UISession.h \
475 src/runtime/UISlidingToolBar.h \
476 src/runtime/UIStatusBarEditorWindow.h \
477 src/runtime/UIVMCloseDialog.h \
478 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
479 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
480 src/runtime/fullscreen/UIMachineViewFullscreen.h \
481 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
482 src/runtime/information/UIInformationConfiguration.h \
483 src/runtime/information/UIInformationDataItem.h \
484 src/runtime/information/UIInformationItem.h \
485 src/runtime/information/UIInformationModel.h \
486 src/runtime/information/UIInformationRuntime.h \
487 src/runtime/information/UIInformationView.h \
488 src/runtime/information/UIVMInformationDialog.h \
489 src/runtime/guestctrl/UIGuestControlConsole.h \
490 src/runtime/guestctrl/UIGuestControlFileManager.h \
491 src/runtime/guestctrl/UIGuestControlFileModel.h \
492 src/runtime/guestctrl/UIGuestControlFileTable.h \
493 src/runtime/guestctrl/UIGuestControlInterface.h \
494 src/runtime/guestctrl/UIGuestControlTreeItem.h \
495 src/runtime/guestctrl/UIGuestControlWidget.h \
496 src/runtime/guestctrl/UIGuestFileTable.h \
497 src/runtime/guestctrl/UIHostFileTable.h \
498 src/runtime/normal/UIKeyboardHandlerNormal.h \
499 src/runtime/normal/UIMachineLogicNormal.h \
500 src/runtime/normal/UIMachineViewNormal.h \
501 src/runtime/normal/UIMachineWindowNormal.h \
502 src/runtime/scale/UIKeyboardHandlerScale.h \
503 src/runtime/scale/UIMachineLogicScale.h \
504 src/runtime/scale/UIMachineViewScale.h \
505 src/runtime/scale/UIMachineWindowScale.h \
506 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
507 src/runtime/seamless/UIMachineLogicSeamless.h \
508 src/runtime/seamless/UIMachineViewSeamless.h \
509 src/runtime/seamless/UIMachineWindowSeamless.h \
510 src/selector/UIDesktopPane.h \
511 src/selector/UIVMItem.h \
512 src/selector/UISelectorWindow.h \
513 src/selector/UISnapshotDetailsWidget.h \
514 src/selector/UISnapshotPane.h \
515 src/selector/UIToolsPaneGlobal.h \
516 src/selector/UIToolsPaneMachine.h \
517 src/selector/UIToolsToolbar.h \
518 src/selector/graphics/chooser/UIGChooser.h \
519 src/selector/graphics/chooser/UIGChooserModel.h \
520 src/selector/graphics/chooser/UIGChooserView.h \
521 src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
522 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
523 src/selector/graphics/chooser/UIGChooserItem.h \
524 src/selector/graphics/chooser/UIGChooserItemGroup.h \
525 src/selector/graphics/chooser/UIGChooserItemMachine.h \
526 src/selector/graphics/details/UIGDetails.h \
527 src/selector/graphics/details/UIGDetailsModel.h \
528 src/selector/graphics/details/UIGDetailsView.h \
529 src/selector/graphics/details/UIGDetailsItem.h \
530 src/selector/graphics/details/UIGDetailsGroup.h \
531 src/selector/graphics/details/UIGDetailsSet.h \
532 src/selector/graphics/details/UIGDetailsElement.h \
533 src/selector/graphics/details/UIGDetailsElements.h \
534 src/selector/graphics/details/UIGMachinePreview.h \
535 src/settings/UISettingsDialog.h \
536 src/settings/UISettingsDialogSpecific.h \
537 src/settings/UISettingsPage.h \
538 src/settings/UISettingsSelector.h \
539 src/settings/UISettingsSerializer.h \
540 src/settings/global/UIGlobalSettingsExtension.h \
541 src/settings/global/UIGlobalSettingsGeneral.h \
542 src/settings/global/UIGlobalSettingsInput.h \
543 src/settings/global/UIGlobalSettingsLanguage.h \
544 src/settings/global/UIGlobalSettingsDisplay.h \
545 src/settings/global/UIGlobalSettingsNetwork.h \
546 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
547 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
548 src/settings/machine/UIMachineSettingsAudio.h \
549 src/settings/machine/UIMachineSettingsDisplay.h \
550 src/settings/machine/UIMachineSettingsGeneral.h \
551 src/settings/machine/UIMachineSettingsInterface.h \
552 src/settings/machine/UIMachineSettingsNetwork.h \
553 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
554 src/settings/machine/UIMachineSettingsSF.h \
555 src/settings/machine/UIMachineSettingsSFDetails.h \
556 src/settings/machine/UIMachineSettingsSerial.h \
557 src/settings/machine/UIMachineSettingsStorage.h \
558 src/settings/machine/UIMachineSettingsSystem.h \
559 src/settings/machine/UIMachineSettingsUSB.h \
560 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
561 src/widgets/UIApplianceEditorWidget.h \
562 src/widgets/UIApplianceExportEditorWidget.h \
563 src/widgets/UIApplianceImportEditorWidget.h \
564 src/widgets/UIBootTable.h \
565 src/widgets/UIFilePathSelector.h \
566 src/widgets/UIEmptyFilePathSelector.h \
567 src/widgets/UIHotKeyEditor.h \
568 src/widgets/UILineTextEdit.h \
569 src/widgets/UIMediumSizeEditor.h \
570 src/widgets/UIMenuBar.h \
571 src/widgets/UIPortForwardingTable.h \
572 src/widgets/UISlidingWidget.h \
573 src/widgets/UITabBar.h \
574 src/widgets/VBoxMediaComboBox.h \
575 src/widgets/UIMenuToolBar.h \
576 src/widgets/UIMiniToolBar.h \
577 src/widgets/VBoxOSTypeSelectorButton.h \
578 src/widgets/UINameAndSystemEditor.h \
579 src/widgets/UIWarningPane.h \
580 src/widgets/UIFilmContainer.h \
581 src/widgets/graphics/UIGraphicsButton.h \
582 src/widgets/graphics/UIGraphicsRotatorButton.h \
583 src/widgets/graphics/UIGraphicsZoomButton.h \
584 src/widgets/graphics/UIGraphicsToolBar.h \
585 src/widgets/graphics/UIGraphicsTextPane.h \
586 src/wizards/UIWizard.h \
587 src/wizards/UIWizardPage.h \
588 src/wizards/newvm/UIWizardNewVM.h \
589 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
590 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
591 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
592 src/wizards/newvm/UIWizardNewVMPageExpert.h \
593 src/wizards/newvd/UIWizardNewVD.h \
594 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
595 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
596 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
597 src/wizards/newvd/UIWizardNewVDPageExpert.h \
598 src/wizards/clonevm/UIWizardCloneVM.h \
599 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
600 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
601 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
602 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
603 src/wizards/clonevd/UIWizardCloneVD.h \
604 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
605 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
606 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
607 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
608 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
609 src/wizards/exportappliance/UIWizardExportApp.h \
610 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
611 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
612 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
613 src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
614 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
615 src/wizards/importappliance/UIWizardImportApp.h \
616 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
617 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
618 src/wizards/importappliance/UIWizardImportAppPageExpert.h \
619 src/wizards/firstrun/UIWizardFirstRun.h \
620 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
621
622ifdef VBOX_GUI_WITH_NETWORK_MANAGER
623 VirtualBox_QT_MOCHDRS += \
624 src/settings/global/UIGlobalSettingsProxy.h \
625 src/settings/global/UIGlobalSettingsUpdate.h
626endif
627
628ifdef VBOX_WITH_DRAG_AND_DROP
629 VirtualBox_QT_MOCHDRS += \
630 src/runtime/UIDnDHandler.h
631 ifdef VBOX_WITH_DRAG_AND_DROP_GH
632 VirtualBox_QT_MOCHDRS += \
633 src/runtime/UIDnDMIMEData.h
634 endif
635endif
636
637VirtualBox_QT_MOCHDRS.darwin += \
638 src/platform/darwin/UIWindowMenuManager.h
639
640ifndef VBOX_GUI_WITH_SHARED_LIBRARY
641 VirtualBox_QT_MOCHDRS += \
642 src/VBoxAboutDlg.h \
643 src/VBoxLicenseViewer.h \
644 src/extensions/QIArrowButtonPress.h \
645 src/extensions/QIArrowButtonSwitch.h \
646 src/extensions/QIArrowSplitter.h \
647 src/extensions/QIDialog.h \
648 src/extensions/QIDialogButtonBox.h \
649 src/extensions/QIFileDialog.h \
650 src/extensions/QILabel.h \
651 src/extensions/QIMainWindow.h \
652 src/extensions/QIMessageBox.h \
653 src/extensions/QIProcess.h \
654 src/extensions/QIRichTextLabel.h \
655 src/extensions/QIRichToolButton.h \
656 src/extensions/QISplitter.h \
657 src/extensions/QIStatusBarIndicator.h \
658 src/extensions/QIToolButton.h \
659 src/extensions/QIWidgetValidator.h \
660 src/extradata/UIExtraDataDefs.h \
661 src/extradata/UIExtraDataManager.h \
662 src/globals/UIActionPool.h \
663 src/globals/UIAnimationFramework.h \
664 src/globals/UIDesktopWidgetWatchdog.h \
665 src/globals/UIMainEventListener.h \
666 src/globals/UIMessageCenter.h \
667 src/globals/UIModalWindowManager.h \
668 src/globals/UIPopupCenter.h \
669 src/globals/UIShortcutPool.h \
670 src/globals/UIThreadPool.h \
671 src/globals/VBoxGlobal.h \
672 src/globals/VBoxUtils.h \
673 src/medium/UIMediumEnumerator.h \
674 src/runtime/UIActionPoolRuntime.h \
675 src/selector/UIActionPoolSelector.h \
676 src/selector/UIVirtualBoxEventHandler.h \
677 src/widgets/UIHostComboEditor.h \
678 src/widgets/UIPopupBox.h \
679 src/widgets/UIPopupPane.h \
680 src/widgets/UIPopupPaneButtonPane.h \
681 src/widgets/UIPopupPaneMessage.h \
682 src/widgets/UIPopupPaneDetails.h \
683 src/widgets/UIPopupStack.h \
684 src/widgets/UIPopupStackViewport.h \
685 src/widgets/UIProgressDialog.h \
686 src/widgets/UISpecialControls.h \
687 src/widgets/UIToolBar.h
688
689 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
690 VirtualBox_QT_MOCHDRS += \
691 src/net/UIDownloader.h \
692 src/net/UIDownloaderAdditions.h \
693 src/net/UIDownloaderExtensionPack.h \
694 src/net/UIDownloaderUserManual.h \
695 src/net/UINetworkCustomer.h \
696 src/net/UINetworkManager.h \
697 src/net/UINetworkManagerDialog.h \
698 src/net/UINetworkManagerIndicator.h \
699 src/net/UINetworkRequest.h \
700 src/net/UINetworkRequestWidget.h \
701 src/net/UINetworkReply.h \
702 src/net/UIUpdateManager.h
703 endif
704
705 VirtualBox_QT_MOCHDRS.darwin += \
706 src/platform/darwin/UICocoaSpecialControls.h
707endif
708
709#
710# VirtualBox - GUI Global Shared Library.
711# Headers containing definitions of classes that use the Q_OBJECT macro.
712#
713VBoxGlobal_QT_MOCHDRS = \
714 src/VBoxAboutDlg.h \
715 src/VBoxLicenseViewer.h \
716 src/extensions/QIArrowButtonPress.h \
717 src/extensions/QIArrowButtonSwitch.h \
718 src/extensions/QIArrowSplitter.h \
719 src/extensions/QIDialog.h \
720 src/extensions/QIDialogButtonBox.h \
721 src/extensions/QIFileDialog.h \
722 src/extensions/QILabel.h \
723 src/extensions/QIMainWindow.h \
724 src/extensions/QIMessageBox.h \
725 src/extensions/QIProcess.h \
726 src/extensions/QIRichTextLabel.h \
727 src/extensions/QIRichToolButton.h \
728 src/extensions/QISplitter.h \
729 src/extensions/QIStatusBarIndicator.h \
730 src/extensions/QIToolButton.h \
731 src/extensions/QIWidgetValidator.h \
732 src/extradata/UIExtraDataDefs.h \
733 src/extradata/UIExtraDataManager.h \
734 src/globals/UIActionPool.h \
735 src/globals/UIAnimationFramework.h \
736 src/globals/UIDesktopWidgetWatchdog.h \
737 src/globals/UIMainEventListener.h \
738 src/globals/UIMessageCenter.h \
739 src/globals/UIModalWindowManager.h \
740 src/globals/UIPopupCenter.h \
741 src/globals/UIShortcutPool.h \
742 src/globals/UIThreadPool.h \
743 src/globals/VBoxGlobal.h \
744 src/globals/VBoxUtils.h \
745 src/medium/UIMediumEnumerator.h \
746 src/runtime/UIActionPoolRuntime.h \
747 src/selector/UIActionPoolSelector.h \
748 src/selector/UIVirtualBoxEventHandler.h \
749 src/widgets/UIHostComboEditor.h \
750 src/widgets/UIPopupBox.h \
751 src/widgets/UIPopupPane.h \
752 src/widgets/UIPopupPaneButtonPane.h \
753 src/widgets/UIPopupPaneMessage.h \
754 src/widgets/UIPopupPaneDetails.h \
755 src/widgets/UIPopupStack.h \
756 src/widgets/UIPopupStackViewport.h \
757 src/widgets/UIProgressDialog.h \
758 src/widgets/UISpecialControls.h \
759 src/widgets/UIToolBar.h
760
761ifdef VBOX_GUI_WITH_NETWORK_MANAGER
762 VBoxGlobal_QT_MOCHDRS += \
763 src/net/UIDownloader.h \
764 src/net/UIDownloaderAdditions.h \
765 src/net/UIDownloaderExtensionPack.h \
766 src/net/UIDownloaderUserManual.h \
767 src/net/UINetworkCustomer.h \
768 src/net/UINetworkManager.h \
769 src/net/UINetworkManagerDialog.h \
770 src/net/UINetworkManagerIndicator.h \
771 src/net/UINetworkRequest.h \
772 src/net/UINetworkRequestWidget.h \
773 src/net/UINetworkReply.h \
774 src/net/UIUpdateManager.h
775endif
776
777VBoxGlobal_QT_MOCHDRS.darwin += \
778 src/platform/darwin/UICocoaSpecialControls.h
779
780
781#
782# VirtualBox - GUI Application.
783# Sources containing local definitions of classes that use the Q_OBJECT macro.
784#
785VirtualBox_QT_MOCSRCS = \
786 src/logviewer/UIVMLogViewerFilterPanel.cpp \
787 src/logviewer/UIVMLogViewerSearchPanel.cpp \
788 src/logviewer/UIVMLogViewerTextEdit.cpp \
789 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
790 src/runtime/UIConsoleEventHandler.cpp \
791 src/runtime/UIFrameBuffer.cpp \
792 src/runtime/UIIndicatorsPool.cpp \
793 src/runtime/UIStatusBarEditorWindow.cpp \
794 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
795 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
796 src/runtime/guestctrl/UIGuestControlWidget.cpp \
797 src/runtime/guestctrl/UIGuestFileTable.cpp \
798 src/runtime/guestctrl/UIHostFileTable.cpp \
799 src/selector/UIDesktopPane.cpp \
800 src/selector/UISnapshotDetailsWidget.cpp \
801 src/selector/UISnapshotPane.cpp \
802 src/settings/global/UIGlobalSettingsInput.cpp \
803 src/settings/machine/UIMachineSettingsNetwork.cpp \
804 src/settings/machine/UIMachineSettingsSerial.cpp \
805 src/settings/machine/UIMachineSettingsStorage.cpp \
806 src/settings/machine/UIMachineSettingsUSB.cpp \
807 src/widgets/UIHotKeyEditor.cpp \
808 src/widgets/UIMenuToolBar.cpp \
809 src/widgets/UIMiniToolBar.cpp \
810 src/widgets/UIPortForwardingTable.cpp \
811 src/widgets/UITabBar.cpp \
812 src/wizards/importappliance/UIWizardImportApp.cpp
813
814VirtualBox_QT_MOCSRCS.darwin += \
815 src/platform/darwin/UIWindowMenuManager.cpp
816
817ifndef VBOX_GUI_WITH_SHARED_LIBRARY
818 VirtualBox_QT_MOCSRCS += \
819 src/extensions/QISplitter.cpp \
820 src/extensions/QIArrowSplitter.cpp \
821 src/extradata/UIExtraDataManager.cpp \
822 src/globals/UIActionPool.cpp \
823 src/globals/UIMainEventListener.cpp \
824 src/globals/UIThreadPool.cpp \
825 src/medium/UIMediumEnumerator.cpp \
826 src/runtime/UIActionPoolRuntime.cpp \
827 src/selector/UIActionPoolSelector.cpp \
828 src/selector/UIVirtualBoxEventHandler.cpp \
829 src/widgets/UIProgressDialog.cpp
830
831 VirtualBox_QT_MOCSRCS.linux += \
832 src/globals/UIDesktopWidgetWatchdog.cpp
833 VirtualBox_QT_MOCSRCS.solaris += \
834 src/globals/UIDesktopWidgetWatchdog.cpp
835 VirtualBox_QT_MOCSRCS.freebsd += \
836 src/globals/UIDesktopWidgetWatchdog.cpp
837
838 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
839 VirtualBox_QT_MOCSRCS += \
840 src/net/UINetworkReply.cpp \
841 src/net/UIUpdateManager.cpp
842 endif
843
844 ifdef VBOX_WITH_XPCOM
845 VirtualBox_QT_MOCSRCS += \
846 src/globals/COMDefs.cpp
847 endif
848endif
849
850
851#
852# VirtualBox - GUI Global Shared Library.
853# Sources.
854#
855VBoxGlobal_QT_MOCSRCS = \
856 src/extensions/QISplitter.cpp \
857 src/extensions/QIArrowSplitter.cpp \
858 src/extradata/UIExtraDataManager.cpp \
859 src/globals/UIActionPool.cpp \
860 src/globals/UIMainEventListener.cpp \
861 src/globals/UIThreadPool.cpp \
862 src/medium/UIMediumEnumerator.cpp \
863 src/runtime/UIActionPoolRuntime.cpp \
864 src/selector/UIActionPoolSelector.cpp \
865 src/selector/UIVirtualBoxEventHandler.cpp \
866 src/widgets/UIProgressDialog.cpp
867
868VBoxGlobal_QT_MOCSRCS.linux += \
869 src/globals/UIDesktopWidgetWatchdog.cpp
870VBoxGlobal_QT_MOCSRCS.solaris += \
871 src/globals/UIDesktopWidgetWatchdog.cpp
872VBoxGlobal_QT_MOCSRCS.freebsd += \
873 src/globals/UIDesktopWidgetWatchdog.cpp
874
875ifdef VBOX_GUI_WITH_NETWORK_MANAGER
876 VBoxGlobal_QT_MOCSRCS += \
877 src/net/UINetworkReply.cpp \
878 src/net/UIUpdateManager.cpp
879endif
880
881ifdef VBOX_WITH_XPCOM
882 VBoxGlobal_QT_MOCSRCS += \
883 src/globals/COMDefs.cpp
884endif
885
886
887#
888# VirtualBox - GUI Application.
889# Sources.
890#
891VirtualBox_SOURCES = \
892 src/main.cpp \
893 src/UITakeSnapshotDialog.cpp \
894 src/extensions/QIAdvancedSlider.cpp \
895 src/extensions/QIComboBox.cpp \
896 src/extensions/QIFlowLayout.cpp \
897 src/extensions/QILabelSeparator.cpp \
898 src/extensions/QILineEdit.cpp \
899 src/extensions/QIMainDialog.cpp \
900 src/extensions/QIManagerDialog.cpp \
901 src/extensions/QIMenu.cpp \
902 src/extensions/QIStatusBar.cpp \
903 src/extensions/QITableView.cpp \
904 src/extensions/QITreeView.cpp \
905 src/extensions/QITreeWidget.cpp \
906 src/extensions/graphics/QIGraphicsView.cpp \
907 src/extensions/graphics/QIGraphicsWidget.cpp \
908 src/globals/UIImageTools.cpp \
909 src/globals/UIStarter.cpp \
910 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
911 src/hostnetwork/UIHostNetworkManager.cpp \
912 src/hostnetwork/UIHostNetworkUtils.cpp \
913 src/logviewer/UIVMLogPage.cpp \
914 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
915 src/logviewer/UIVMLogViewerDialog.cpp \
916 src/logviewer/UIVMLogViewerFilterPanel.cpp \
917 src/logviewer/UIVMLogViewerPanel.cpp \
918 src/logviewer/UIVMLogViewerSearchPanel.cpp \
919 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
920 src/logviewer/UIVMLogViewerTextEdit.cpp \
921 src/logviewer/UIVMLogViewerWidget.cpp \
922 src/medium/UIMediumDetailsWidget.cpp \
923 src/medium/UIMediumManager.cpp \
924 src/objects/UIRichTextString.cpp \
925 src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
926 src/runtime/UIConsoleEventHandler.cpp \
927 src/runtime/UIFrameBuffer.cpp \
928 src/runtime/UIIndicatorsPool.cpp \
929 src/runtime/UIKeyboardHandler.cpp \
930 src/runtime/UIMachine.cpp \
931 src/runtime/UIMachineLogic.cpp \
932 src/runtime/UIMachineView.cpp \
933 src/runtime/UIMachineWindow.cpp \
934 src/runtime/UIMenuBarEditorWindow.cpp \
935 src/runtime/UIMouseHandler.cpp \
936 src/runtime/UIMultiScreenLayout.cpp \
937 src/runtime/UISession.cpp \
938 src/runtime/UISlidingToolBar.cpp \
939 src/runtime/UIStatusBarEditorWindow.cpp \
940 src/runtime/UIVMCloseDialog.cpp \
941 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
942 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
943 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
944 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
945 src/runtime/information/UIInformationConfiguration.cpp \
946 src/runtime/information/UIInformationDataItem.cpp \
947 src/runtime/information/UIInformationItem.cpp \
948 src/runtime/information/UIInformationModel.cpp \
949 src/runtime/information/UIInformationRuntime.cpp \
950 src/runtime/information/UIInformationView.cpp \
951 src/runtime/information/UIVMInformationDialog.cpp \
952 src/runtime/guestctrl/UIGuestControlConsole.cpp \
953 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
954 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
955 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
956 src/runtime/guestctrl/UIGuestControlInterface.cpp \
957 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
958 src/runtime/guestctrl/UIGuestControlWidget.cpp \
959 src/runtime/guestctrl/UIGuestFileTable.cpp \
960 src/runtime/guestctrl/UIHostFileTable.cpp \
961 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
962 src/runtime/normal/UIMachineLogicNormal.cpp \
963 src/runtime/normal/UIMachineViewNormal.cpp \
964 src/runtime/normal/UIMachineWindowNormal.cpp \
965 src/runtime/scale/UIKeyboardHandlerScale.cpp \
966 src/runtime/scale/UIMachineLogicScale.cpp \
967 src/runtime/scale/UIMachineViewScale.cpp \
968 src/runtime/scale/UIMachineWindowScale.cpp \
969 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
970 src/runtime/seamless/UIMachineLogicSeamless.cpp \
971 src/runtime/seamless/UIMachineViewSeamless.cpp \
972 src/runtime/seamless/UIMachineWindowSeamless.cpp \
973 src/selector/UIDesktopPane.cpp \
974 src/selector/UIVMItem.cpp \
975 src/selector/UISelectorWindow.cpp \
976 src/selector/UISnapshotDetailsWidget.cpp \
977 src/selector/UISnapshotPane.cpp \
978 src/selector/UIToolsPaneGlobal.cpp \
979 src/selector/UIToolsPaneMachine.cpp \
980 src/selector/UIToolsToolbar.cpp \
981 src/selector/graphics/chooser/UIGChooser.cpp \
982 src/selector/graphics/chooser/UIGChooserModel.cpp \
983 src/selector/graphics/chooser/UIGChooserView.cpp \
984 src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
985 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
986 src/selector/graphics/chooser/UIGChooserItem.cpp \
987 src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
988 src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
989 src/selector/graphics/details/UIGDetails.cpp \
990 src/selector/graphics/details/UIGDetailsModel.cpp \
991 src/selector/graphics/details/UIGDetailsView.cpp \
992 src/selector/graphics/details/UIGDetailsItem.cpp \
993 src/selector/graphics/details/UIGDetailsGroup.cpp \
994 src/selector/graphics/details/UIGDetailsSet.cpp \
995 src/selector/graphics/details/UIGDetailsElement.cpp \
996 src/selector/graphics/details/UIGDetailsElements.cpp \
997 src/selector/graphics/details/UIGMachinePreview.cpp \
998 src/settings/UISettingsDialog.cpp \
999 src/settings/UISettingsDialogSpecific.cpp \
1000 src/settings/UISettingsPage.cpp \
1001 src/settings/UISettingsSelector.cpp \
1002 src/settings/UISettingsSerializer.cpp \
1003 src/settings/global/UIGlobalSettingsExtension.cpp \
1004 src/settings/global/UIGlobalSettingsGeneral.cpp \
1005 src/settings/global/UIGlobalSettingsInput.cpp \
1006 src/settings/global/UIGlobalSettingsLanguage.cpp \
1007 src/settings/global/UIGlobalSettingsDisplay.cpp \
1008 src/settings/global/UIGlobalSettingsNetwork.cpp \
1009 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1010 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1011 src/settings/machine/UIMachineSettingsAudio.cpp \
1012 src/settings/machine/UIMachineSettingsDisplay.cpp \
1013 src/settings/machine/UIMachineSettingsGeneral.cpp \
1014 src/settings/machine/UIMachineSettingsInterface.cpp \
1015 src/settings/machine/UIMachineSettingsNetwork.cpp \
1016 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1017 src/settings/machine/UIMachineSettingsSF.cpp \
1018 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1019 src/settings/machine/UIMachineSettingsSerial.cpp \
1020 src/settings/machine/UIMachineSettingsStorage.cpp \
1021 src/settings/machine/UIMachineSettingsSystem.cpp \
1022 src/settings/machine/UIMachineSettingsUSB.cpp \
1023 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1024 src/widgets/UIApplianceEditorWidget.cpp \
1025 src/widgets/UIApplianceExportEditorWidget.cpp \
1026 src/widgets/UIApplianceImportEditorWidget.cpp \
1027 src/widgets/UIBootTable.cpp \
1028 src/widgets/UIFilePathSelector.cpp \
1029 src/widgets/UIEmptyFilePathSelector.cpp \
1030 src/widgets/UIHotKeyEditor.cpp \
1031 src/widgets/UILineTextEdit.cpp \
1032 src/widgets/UIMediumSizeEditor.cpp \
1033 src/widgets/UIMenuBar.cpp \
1034 src/widgets/UIPortForwardingTable.cpp \
1035 src/widgets/UISlidingWidget.cpp \
1036 src/widgets/UITabBar.cpp \
1037 src/widgets/VBoxGuestRAMSlider.cpp \
1038 src/widgets/VBoxMediaComboBox.cpp \
1039 src/widgets/UIMenuToolBar.cpp \
1040 src/widgets/UIMiniToolBar.cpp \
1041 src/widgets/VBoxOSTypeSelectorButton.cpp \
1042 src/widgets/UINameAndSystemEditor.cpp \
1043 src/widgets/UIWarningPane.cpp \
1044 src/widgets/UIFilmContainer.cpp \
1045 src/widgets/graphics/UIGraphicsButton.cpp \
1046 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1047 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1048 src/widgets/graphics/UIGraphicsToolBar.cpp \
1049 src/widgets/graphics/UIGraphicsTextPane.cpp \
1050 src/wizards/UIWizard.cpp \
1051 src/wizards/UIWizardPage.cpp \
1052 src/wizards/newvm/UIWizardNewVM.cpp \
1053 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
1054 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
1055 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
1056 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
1057 src/wizards/newvd/UIWizardNewVD.cpp \
1058 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1059 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1060 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1061 src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
1062 src/wizards/clonevm/UIWizardCloneVM.cpp \
1063 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
1064 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
1065 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
1066 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
1067 src/wizards/clonevd/UIWizardCloneVD.cpp \
1068 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
1069 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
1070 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
1071 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
1072 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
1073 src/wizards/exportappliance/UIWizardExportApp.cpp \
1074 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
1075 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
1076 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
1077 src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
1078 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1079 src/wizards/importappliance/UIWizardImportApp.cpp \
1080 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
1081 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
1082 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
1083 src/wizards/firstrun/UIWizardFirstRun.cpp \
1084 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
1085
1086ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1087 VirtualBox_SOURCES += \
1088 src/settings/global/UIGlobalSettingsProxy.cpp \
1089 src/settings/global/UIGlobalSettingsUpdate.cpp
1090endif
1091
1092VirtualBox_SOURCES.darwin += \
1093 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1094 src/platform/darwin/UICocoaDockIconPreview.mm \
1095 src/platform/darwin/UIWindowMenuManager.cpp \
1096
1097if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1098 VirtualBox_SOURCES += \
1099 src/platform/x11/UIDesktopServices_x11.cpp
1100endif
1101
1102VirtualBox_SOURCES.win += \
1103 src/platform/win/VirtualBox.rc \
1104 src/platform/win/UIDesktopServices_win.cpp \
1105 src/platform/win/WinKeyboard.cpp
1106
1107VirtualBox_SOURCES.darwin += \
1108 src/platform/darwin/UIDesktopServices_darwin.cpp \
1109 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1110
1111ifdef VBOX_WITH_ICHAT_THEATER
1112 VirtualBox_SOURCES.darwin += \
1113 src/platform/darwin/VBoxIChatTheaterWrapper.m
1114endif
1115
1116if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1117 VirtualBox_SOURCES += \
1118 src/VBoxFBOverlay.cpp \
1119 src/VBoxGLSupportInfo.cpp
1120endif
1121
1122ifdef VBOX_WITH_DRAG_AND_DROP
1123 VirtualBox_SOURCES += \
1124 src/runtime/UIDnDHandler.cpp
1125 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1126 VirtualBox_SOURCES += \
1127 src/runtime/UIDnDMIMEData.cpp
1128 VirtualBox_SOURCES.win += \
1129 src/runtime/UIDnDDropSource_win.cpp \
1130 src/runtime/UIDnDDataObject_win.cpp \
1131 src/runtime/UIDnDEnumFormat_win.cpp
1132 endif
1133endif
1134
1135ifndef VBOX_GUI_WITH_SHARED_LIBRARY
1136 VirtualBox_SOURCES += \
1137 src/VBoxAboutDlg.cpp \
1138 src/VBoxLicenseViewer.cpp \
1139 src/extensions/QIArrowButtonPress.cpp \
1140 src/extensions/QIArrowButtonSwitch.cpp \
1141 src/extensions/QIArrowSplitter.cpp \
1142 src/extensions/QIDialog.cpp \
1143 src/extensions/QIDialogButtonBox.cpp \
1144 src/extensions/QIFileDialog.cpp \
1145 src/extensions/QILabel.cpp \
1146 src/extensions/QIMainWindow.cpp \
1147 src/extensions/QIMessageBox.cpp \
1148 src/extensions/QIProcess.cpp \
1149 src/extensions/QIRichTextLabel.cpp \
1150 src/extensions/QIRichToolButton.cpp \
1151 src/extensions/QISplitter.cpp \
1152 src/extensions/QIStatusBarIndicator.cpp \
1153 src/extensions/QIToolButton.cpp \
1154 src/extensions/QIWidgetValidator.cpp \
1155 src/extradata/UIExtraDataDefs.cpp \
1156 src/extradata/UIExtraDataManager.cpp \
1157 src/converter/UIConverter.cpp \
1158 src/converter/UIConverterBackendCOM.cpp \
1159 src/converter/UIConverterBackendGlobal.cpp \
1160 src/globals/COMDefs.cpp \
1161 src/globals/UIActionPool.cpp \
1162 src/globals/UIAnimationFramework.cpp \
1163 src/globals/UIDefs.cpp \
1164 src/globals/UIDesktopWidgetWatchdog.cpp \
1165 src/globals/UIErrorString.cpp \
1166 src/globals/UIIconPool.cpp \
1167 src/globals/UIMainEventListener.cpp \
1168 src/globals/UIMessageCenter.cpp \
1169 src/globals/UIModalWindowManager.cpp \
1170 src/globals/UIPopupCenter.cpp \
1171 src/globals/UIShortcutPool.cpp \
1172 src/globals/UIThreadPool.cpp \
1173 src/globals/VBoxGlobal.cpp \
1174 src/medium/UIMedium.cpp \
1175 src/medium/UIMediumDefs.cpp \
1176 src/medium/UIMediumEnumerator.cpp \
1177 src/runtime/UIActionPoolRuntime.cpp \
1178 src/selector/UIActionPoolSelector.cpp \
1179 src/selector/UIVirtualBoxEventHandler.cpp \
1180 src/settings/UISettingsDefs.cpp \
1181 src/widgets/UIHostComboEditor.cpp \
1182 src/widgets/UIPopupBox.cpp \
1183 src/widgets/UIPopupPane.cpp \
1184 src/widgets/UIPopupPaneButtonPane.cpp \
1185 src/widgets/UIPopupPaneMessage.cpp \
1186 src/widgets/UIPopupPaneDetails.cpp \
1187 src/widgets/UIPopupStack.cpp \
1188 src/widgets/UIPopupStackViewport.cpp \
1189 src/widgets/UIProgressDialog.cpp \
1190 src/widgets/UISpecialControls.cpp \
1191 src/widgets/UIToolBar.cpp
1192
1193 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1194 VirtualBox_SOURCES += \
1195 src/net/UIDownloader.cpp \
1196 src/net/UIDownloaderAdditions.cpp \
1197 src/net/UIDownloaderExtensionPack.cpp \
1198 src/net/UIDownloaderUserManual.cpp \
1199 src/net/UINetworkCustomer.cpp \
1200 src/net/UINetworkManager.cpp \
1201 src/net/UINetworkManagerDialog.cpp \
1202 src/net/UINetworkManagerIndicator.cpp \
1203 src/net/UINetworkRequest.cpp \
1204 src/net/UINetworkRequestWidget.cpp \
1205 src/net/UINetworkReply.cpp \
1206 src/net/UIUpdateDefs.cpp \
1207 src/net/UIUpdateManager.cpp
1208 endif
1209
1210 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1211 VirtualBox_SOURCES += \
1212 src/platform/x11/VBoxX11Helper.cpp \
1213 src/platform/x11/XKeyboard-new.cpp
1214 endif
1215
1216 VirtualBox_SOURCES.win += \
1217 src/platform/win/VBoxUtils-win.cpp
1218
1219 VirtualBox_SOURCES.darwin += \
1220 src/platform/darwin/CocoaEventHelper.mm \
1221 src/platform/darwin/DarwinKeyboard.cpp \
1222 src/platform/darwin/UICocoaApplication.mm \
1223 src/platform/darwin/UICocoaSpecialControls.mm \
1224 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1225 src/platform/darwin/VBoxUtils-darwin.cpp
1226
1227endif
1228
1229
1230#
1231# VirtualBox - GUI Global Shared Library.
1232# Sources.
1233#
1234VBoxGlobal_SOURCES = \
1235 src/VBoxAboutDlg.cpp \
1236 src/VBoxLicenseViewer.cpp \
1237 src/extensions/QIArrowButtonPress.cpp \
1238 src/extensions/QIArrowButtonSwitch.cpp \
1239 src/extensions/QIArrowSplitter.cpp \
1240 src/extensions/QIDialog.cpp \
1241 src/extensions/QIDialogButtonBox.cpp \
1242 src/extensions/QIFileDialog.cpp \
1243 src/extensions/QILabel.cpp \
1244 src/extensions/QIMainWindow.cpp \
1245 src/extensions/QIMessageBox.cpp \
1246 src/extensions/QIProcess.cpp \
1247 src/extensions/QIRichTextLabel.cpp \
1248 src/extensions/QIRichToolButton.cpp \
1249 src/extensions/QISplitter.cpp \
1250 src/extensions/QIStatusBarIndicator.cpp \
1251 src/extensions/QIToolButton.cpp \
1252 src/extensions/QIWidgetValidator.cpp \
1253 src/extradata/UIExtraDataDefs.cpp \
1254 src/extradata/UIExtraDataManager.cpp \
1255 src/converter/UIConverter.cpp \
1256 src/converter/UIConverterBackendCOM.cpp \
1257 src/converter/UIConverterBackendGlobal.cpp \
1258 src/globals/COMDefs.cpp \
1259 src/globals/UIActionPool.cpp \
1260 src/globals/UIAnimationFramework.cpp \
1261 src/globals/UIDefs.cpp \
1262 src/globals/UIDesktopWidgetWatchdog.cpp \
1263 src/globals/UIErrorString.cpp \
1264 src/globals/UIIconPool.cpp \
1265 src/globals/UIMainEventListener.cpp \
1266 src/globals/UIMessageCenter.cpp \
1267 src/globals/UIModalWindowManager.cpp \
1268 src/globals/UIPopupCenter.cpp \
1269 src/globals/UIShortcutPool.cpp \
1270 src/globals/UIThreadPool.cpp \
1271 src/globals/VBoxGlobal.cpp \
1272 src/medium/UIMedium.cpp \
1273 src/medium/UIMediumDefs.cpp \
1274 src/medium/UIMediumEnumerator.cpp \
1275 src/runtime/UIActionPoolRuntime.cpp \
1276 src/selector/UIActionPoolSelector.cpp \
1277 src/selector/UIVirtualBoxEventHandler.cpp \
1278 src/settings/UISettingsDefs.cpp \
1279 src/widgets/UIHostComboEditor.cpp \
1280 src/widgets/UIPopupBox.cpp \
1281 src/widgets/UIPopupPane.cpp \
1282 src/widgets/UIPopupPaneButtonPane.cpp \
1283 src/widgets/UIPopupPaneMessage.cpp \
1284 src/widgets/UIPopupPaneDetails.cpp \
1285 src/widgets/UIPopupStack.cpp \
1286 src/widgets/UIPopupStackViewport.cpp \
1287 src/widgets/UIProgressDialog.cpp \
1288 src/widgets/UISpecialControls.cpp \
1289 src/widgets/UIToolBar.cpp
1290
1291ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1292 VBoxGlobal_SOURCES += \
1293 src/net/UIDownloader.cpp \
1294 src/net/UIDownloaderAdditions.cpp \
1295 src/net/UIDownloaderExtensionPack.cpp \
1296 src/net/UIDownloaderUserManual.cpp \
1297 src/net/UINetworkCustomer.cpp \
1298 src/net/UINetworkManager.cpp \
1299 src/net/UINetworkManagerDialog.cpp \
1300 src/net/UINetworkManagerIndicator.cpp \
1301 src/net/UINetworkRequest.cpp \
1302 src/net/UINetworkRequestWidget.cpp \
1303 src/net/UINetworkReply.cpp \
1304 src/net/UIUpdateDefs.cpp \
1305 src/net/UIUpdateManager.cpp
1306endif
1307
1308if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1309 VBoxGlobal_SOURCES += \
1310 src/platform/x11/VBoxX11Helper.cpp \
1311 src/platform/x11/XKeyboard-new.cpp
1312endif
1313
1314VBoxGlobal_SOURCES.win += \
1315 src/platform/win/VBoxUtils-win.cpp
1316
1317VBoxGlobal_SOURCES.darwin += \
1318 src/platform/darwin/CocoaEventHelper.mm \
1319 src/platform/darwin/DarwinKeyboard.cpp \
1320 src/platform/darwin/UICocoaApplication.mm \
1321 src/platform/darwin/UICocoaSpecialControls.mm \
1322 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1323 src/platform/darwin/VBoxUtils-darwin.cpp
1324
1325
1326#
1327# VirtualBox - GUI Application.
1328# Deployment.
1329#
1330if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1331 INSTALLS.linux += VirtualBox.qt.conf
1332 INSTALLS.solaris += VirtualBox.qt.conf
1333 VirtualBox.qt.conf_INST = $(INST_BIN)
1334 VirtualBox.qt.conf_MODE = 644
1335 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1336
1337$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1338 $(QUIET)$(RM) -f $@
1339 $(QUIET)$(APPEND) $@ "[Paths]"
1340 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1341endif
1342
1343
1344#
1345# VirtualBox - GUI Application.
1346# The Qt modules we're using.
1347# (The include directory and lib/framework for each module will be added by the Qt unit.)
1348#
1349VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1350VirtualBox_QT_MODULES.linux += X11Extras
1351VirtualBox_QT_MODULES.solaris += X11Extras
1352VirtualBox_QT_MODULES.freebsd += X11Extras
1353VirtualBox_QT_MODULES.darwin += MacExtras
1354VirtualBox_QT_MODULES.win += WinExtras
1355if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1356 VirtualBox_QT_MODULES += OpenGL
1357endif
1358
1359
1360#
1361# VirtualBox - GUI Global Shared Library.
1362# The Qt modules we're using.
1363# (The include directory and lib/framework for each module will be added by the Qt unit.)
1364#
1365VBoxGlobal_QT_MODULES = Core Gui Widgets
1366VBoxGlobal_QT_MODULES.linux += X11Extras
1367VBoxGlobal_QT_MODULES.solaris += X11Extras
1368VBoxGlobal_QT_MODULES.freebsd += X11Extras
1369VBoxGlobal_QT_MODULES.darwin += MacExtras
1370VBoxGlobal_QT_MODULES.win += WinExtras
1371if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1372 VBoxGlobal_QT_MODULES += OpenGL
1373endif
1374
1375
1376# Pull in the ui files
1377$(eval VirtualBox_SOURCES += $(FORMS))
1378
1379# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1380VirtualBox_SOURCES += VirtualBox1.qrc
1381VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1382VirtualBox_SOURCES += VirtualBox2.qrc
1383VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1384VirtualBox_SOURCES += VirtualBox1_x2.qrc
1385VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1386VirtualBox_SOURCES += VirtualBox2_x2.qrc
1387VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1388VirtualBox_SOURCES += VirtualBox1_x3.qrc
1389VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1390VirtualBox_SOURCES += VirtualBox2_x3.qrc
1391VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1392VirtualBox_SOURCES += VirtualBox1_x4.qrc
1393VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1394VirtualBox_SOURCES += VirtualBox2_x4.qrc
1395VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1396VirtualBox_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1397$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1398if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1399 VirtualBox_SOURCES += VirtualBoxShaders.qrc
1400 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
1401endif
1402
1403# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1404VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1405 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1406# Compress the translation units.
1407VirtualBox_LRCFLAGS = -silent
1408# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1409VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1410
1411
1412## @todo how to detect what tool is used?
1413## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1414# more generic -Wno-extra
1415# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1416ifdef VBOX_WITH_XPCOM
1417 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1418endif
1419
1420
1421#
1422# Generate the COM wrappers.
1423#
1424includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1425VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
1426VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
1427VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
1428
1429#
1430# VirtualBox - GUI Application.
1431# Build generated COM wrappers as part of app.
1432#
1433VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
1434
1435#
1436# VirtualBox - GUI Global Shared Library.
1437# Build generated COM wrappers as part of app.
1438#
1439VBoxGlobal_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
1440
1441## @todo kmk doesn't remake optional outputs when they are missing...
1442$$(VirtualBox_0_OUTDIR)/include/COMWrappers \
1443+ $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
1444+| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
1445, $(VirtualBox_VBOX_COMWRAPPERS) \
1446, $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
1447 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
1448): \
1449 $(VBOX_XIDL_FILE) \
1450 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1451 $(VBOX_FILESPLIT) \
1452 | $$(dir $$@)
1453 $(call MSG_GENERATE,VirtualBox,$<,$@)
1454 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
1455 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1456 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1457 $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
1458 $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
1459 $(APPEND) "$@"
1460
1461# alias for generating the COM Wrappers file.
1462testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
1463
1464
1465#
1466# Generate qrc file with branded icons.
1467#
1468VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1469VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1470$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1471 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1472 $(PATH_ROOT)/Config.kmk \
1473 | $$(dir $$@)
1474 $(call MSG_GENERATE,VirtualBox,$<,$@)
1475 $(QUIET)$(SED) \
1476 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1477 -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
1478 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1479 -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
1480 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1481 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1482 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1483 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1484 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1485 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1486 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1487 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1488 --output $@ \
1489 $<
1490
1491
1492#
1493# Precompiled header - non-functional atm.
1494#
1495ifdef VBOX_WITH_PRECOMPILED_HEADERS
1496 if1of ($(KBUILD_TARGET),win)
1497 VirtualBox_USES += vccprecomp
1498 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1499
1500 else # obsolete experiment
1501 VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
1502 VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
1503 VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
1504 $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
1505 $(VirtualBox_SOURCES) \
1506 $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
1507 $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
1508 )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
1509
1510 TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
1511 define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
1512 $(APPEND) -t $(out)
1513 endef
1514
1515 MISCBINS += VirtualBoxPch
1516 VirtualBoxPch_EXTENDS = VirtualBox
1517 VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
1518 VirtualBoxPch_INSTTYPE = none
1519 VirtualBoxPch_NAME = VirtualBoxPch
1520 VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
1521 VirtualBoxPch_SOURCES = src/precomp.h
1522 VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
1523 VirtualBoxPch_CXXOBJSUFF = .h.gch
1524 VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
1525 VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
1526 VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
1527 VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
1528 VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
1529 VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
1530 VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
1531 VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
1532 endif # obsolete experiment
1533endif
1534
1535ifeq ($(KBUILD_TARGET),win)
1536#
1537# On Windows we'll have to generate/edit part of the resource file.
1538# The IDI_ICON1 name is Qt specific.
1539#
1540src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1541src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1542src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1543
1544$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1545 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1546
1547endif # win
1548
1549
1550#
1551# Unset everything that was loaded from VBoxUI.pro.
1552#
1553FORMS :=
1554TRANSLATIONS :=
1555
1556
1557ifeq ($(KBUILD_TARGET),darwin)
1558#
1559# Create directories for each approved language or the application
1560# menu won't be translated.
1561#
1562INSTALLS += VirtualBox.lproj
1563VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1564VirtualBox.lproj_MODE = 755
1565VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1566
1567#
1568# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1569# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1570#
1571INSTALLS += VirtualBox.app
1572VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1573VirtualBox.app_MODE = 644
1574VirtualBox.app_SOURCES = \
1575 src/platform/darwin/PkgInfo \
1576 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1577 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1578 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1579 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1580 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1581 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1582 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1583 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1584 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1585 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1586 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1587
1588 # Qt5 requires qt.conf on Mac OS X:
1589 VirtualBox.app_SOURCES += \
1590 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1591
1592 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1593 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1594 $(QUIET)$(RM) -f $@
1595 $(QUIET)$(SED) \
1596 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1597 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1598 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1599 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1600 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1601 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1602 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1603 $< > $@
1604
1605 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1606 $(QUIET)$(RM) -f $@
1607 $(QUIET)$(APPEND) $@ "[Paths]"
1608 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1609
1610 INSTALLS += VirtualBoxVM.app
1611 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1612 VirtualBoxVM.app_MODE = 644
1613 VirtualBoxVM.app_SOURCES = \
1614 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1615 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1616 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1617 VirtualBoxVM.app_SYMLINKS = \
1618 MacOS=>../../../MacOS/
1619
1620 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1621 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1622 $(QUIET)$(RM) -f $@
1623 $(QUIET)$(SED) \
1624 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1625 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1626 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1627 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1628 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1629 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1630 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1631 --output $@ $<
1632
1633 PROGRAMS += vmstarter
1634 vmstarter_TEMPLATE = VBOXR3EXE
1635 ifdef VBOX_WITH_NEW_XCODE
1636 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1637 else
1638 vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
1639 endif
1640 vmstarter_LDFLAGS += -framework AppKit
1641 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1642 vmstarter_INST = $(INST_BIN)vmstarter
1643
1644 INSTALLS += vmstarter.app
1645 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1646 vmstarter.app_MODE = 644
1647 vmstarter.app_SOURCES = \
1648 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1649 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1650 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1651 vmstarter.app_SYMLINKS = \
1652 MacOS=>../../../MacOS \
1653
1654 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1655 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1656 $(QUIET)$(RM) -f $@
1657 $(QUIET)$(SED) \
1658 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1659 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1660 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1661 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1662 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1663 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1664 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1665 --output $@ $<
1666endif # darwin
1667
1668#
1669# App for testing GL support
1670#
1671if defined(VBOX_WITH_VIDEOHWACCEL)
1672 if1of ($(KBUILD_TARGET), win linux freebsd)
1673 LIBRARIES += VBoxOGL2D
1674 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
1675 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
1676 VBoxOGL2D_QT_MODULES += OpenGL
1677 VBoxOGL2D_SOURCES = \
1678 src/VBoxGLSupportInfo.cpp
1679 VBoxOGL2D_INCS = include
1680 endif
1681endif
1682
1683
1684#
1685# Testcase for the darwin keyboard routines.
1686#
1687ifdef VBOX_WITH_TESTCASES
1688 PROGRAMS.darwin += tstDarwinKeyboard
1689 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1690 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1691 tstDarwinKeyboard_INCS = \
1692 $(VBOX_GUI_INC_DIRS)
1693 tstDarwinKeyboard_SOURCES = \
1694 src/platform/darwin/tstDarwinKeyboard.cpp \
1695 src/platform/darwin/DarwinKeyboard.cpp
1696 tstDarwinKeyboard_SOURCES.amd64 = \
1697 src/platform/darwin/CocoaEventHelper.mm
1698 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1699 tstDarwinKeyboard_LIBS = \
1700 $(LIB_RUNTIME)
1701 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1702 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
1703 endif
1704endif
1705
1706
1707#
1708# Testcase for SSL certificate downloading.
1709#
1710if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
1711 PROGRAMS += tstSSLCertDownloads
1712 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
1713 tstSSLCertDownloads_USES = qt5
1714 tstSSLCertDownloads_QTTOOL = QT5
1715 tstSSLCertDownloads_QT_MODULES = Core Gui
1716 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
1717 tstSSLCertDownloads_INCS = \
1718 $(VBOX_GUI_INC_DIRS)
1719 tstSSLCertDownloads_SOURCES = \
1720 src/net/tstSSLCertDownloads.cpp
1721endif
1722
1723
1724#
1725# Doxygen documentation.
1726#
1727QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1728BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1729OTHER_CLEAN += \
1730 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1731 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
1732 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1733
1734QTGUI_DOXYFILE_INPUT_DIRS := \
1735 $(addprefix $(PATH_SUB_CURRENT)/src/, \
1736 converter \
1737 extensions \
1738 extensions/graphics \
1739 extradata \
1740 globals \
1741 medium \
1742 net \
1743 objects \
1744 platform \
1745 platform/darwin \
1746 platform/os2 \
1747 platform/win \
1748 platform/x11 \
1749 runtime \
1750 runtime/fullscreen \
1751 runtime/information \
1752 runtime/guestctrl \
1753 runtime/normal \
1754 runtime/scale \
1755 runtime/seamless \
1756 selector \
1757 selector/graphics \
1758 selector/graphics/chooser \
1759 selector/graphics/details \
1760 settings \
1761 settings/global \
1762 settings/machine \
1763 widgets \
1764 widgets/graphics \
1765 wizards \
1766 wizards/clonevd \
1767 wizards/clonevm \
1768 wizards/exportappliance \
1769 wizards/firstrun \
1770 wizards/importappliance \
1771 wizards/newvd \
1772 wizards/newvm)
1773
1774QTGUI_DOXYFILE_INPUT := \
1775 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
1776 $(sort $(wildcard $(dir)/*.h)) \
1777 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
1778
1779includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
1780
1781# Generate the Doxyfile
1782$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
1783 $(PATH_SUB_CURRENT)/Doxyfile \
1784 $(PATH_SUB_CURRENT)/Makefile.kmk \
1785 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
1786 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
1787 | $$(dir $$@)
1788 $(QUIET)$(RM) -f $@ [email protected] [email protected]
1789 $(QUIET)$(CP) -f $< [email protected]
1790 $(QUIET)$(APPEND) [email protected]
1791 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
1792 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
1793 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
1794 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1795 $(QUIET)$(APPEND) [email protected]
1796 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
1797 $(QUIET)$(APPEND) [email protected]
1798 $(QUIET)$(MV) -f [email protected] $@
1799 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
1800 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
1801
1802# Do the actual job.
1803$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
1804 | $(QTGUI_DOXYFILE_OUTPUT)/
1805 $(call MSG_L1,doxygen qtgui)
1806 $(QUIET)$(RM) -f $@
1807 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
1808 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
1809 $(APPEND) $@
1810
1811# aliases
1812docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1813if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1814docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1815endif
1816
1817
1818
1819# Commit the magic.
1820# (note: before custom rules that make usage of generated variables!).
1821include $(FILE_KBUILD_SUB_FOOTER)
1822
1823
1824#
1825# Update all known NLS translation (.ts) files in the nls/ subdirectory.
1826#
1827# NOTE: This target is intended to be run only by the GUI maintainer shortly
1828# before a new product release. VirtualBox_xx_YY.ts is a template for new
1829# languages and should never be actually translated or installed.
1830#
1831# Use the checknls target for checking again common mistakes done by the
1832# translators.
1833#
1834# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
1835# lupdate call
1836#
1837#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
1838checknls::
1839 # Check for missing :/ in image paths
1840 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
1841
1842updatenls:: makeallnls nls/VirtualBox_en.ts
1843
1844makeallnls:: \
1845 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1846 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1847 $(call MSG_L1,lupdate all languages (nls/*.ts))
1848 $(QUIET)$(TOOL_QT5_LUPDATE) \
1849 $^ \
1850 -ts \
1851 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
1852 nls/VirtualBox_xx_YY.ts
1853
1854# Create the English translation file. This is something special cause it will
1855# contain the plural forms only.
1856nls/VirtualBox_en.ts: \
1857 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1858 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1859 $(call MSG_L1,lupdate $@)
1860 $(QUIET)$(TOOL_QT5_LUPDATE) \
1861 $^ \
1862 -ts \
1863 $@
1864 $(QUIET)$(SED) -n -i -e \
1865 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
1866 $@
1867
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