VirtualBox

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

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

FE/Qt: bugref:9049: Tiny cleanup for QIGraphicsWidget and move it to VBoxGlobal library.

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