VirtualBox

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

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

FE/Qt: bugref:9049: Large cleanup for UIRichTextString and move it to VBoxGlobal library.

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