VirtualBox

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

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

FE/Qt: bugref:9049: Initial commit for VBoxGlobal library (for now it works on X11 only).

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