VirtualBox

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

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

FE/Qt: bugref:9049: Full and heavy cleanup for QIMainDialog and move it to VBoxGlobal library.

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