VirtualBox

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

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

FE/Qt: bugref:9049: Move UIVMLogViewerDialog and UIVMLogViewerWidget to VBoxGlobal library.

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