VirtualBox

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

Last change on this file since 95410 was 95363, checked in by vboxsync, 3 years ago

FE/Qt/Ds: bugref:6899: Machine settings: Storage page accessibility improvements (part 1); Moving storage settings stuff into separate UIStorageSettingsEditor widget; Lots of cleanup and fixes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 79.2 KB
Line 
1# $Id: Makefile.kmk 95363 2022-06-24 14:01:08Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2022 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
27ifndef VBOX_WITH_QT6
28 USES += qt5
29else
30 USES += qt6
31endif
32
33
34#
35# Targets.
36#
37ifdef VBOX_WITH_HARDENING
38 PROGRAMS += VirtualBox
39 PROGRAMS += VirtualBoxHardenedVM
40 DLLS += VirtualBoxVM
41 DLLS += UICommon
42else
43 PROGRAMS += VirtualBox
44 PROGRAMS += VirtualBoxVM
45 DLLS += UICommon
46endif
47INSTALLS += VirtualBox.nls
48
49
50#
51# Include the language lists.
52#
53include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
54
55
56#
57# Hardened VirtualBoxVM.
58#
59ifdef VBOX_WITH_HARDENING
60VirtualBoxHardenedVM_TEMPLATE = VBOXR3HARDENEDEXE
61VirtualBoxHardenedVM_INST.darwin = $(INST_VIRTUALBOX)Contents/Resources/VirtualBoxVM.app/Contents/MacOS/
62VirtualBoxHardenedVM_NAME = VirtualBoxVM
63VirtualBoxHardenedVM_DEFS += $(if $(VBOX_WITH_DRIVERLESS_NEM_FALLBACK),VBOX_WITH_DRIVERLESS_NEM_FALLBACK,)
64VirtualBoxHardenedVM_SOURCES = src/hardenedmain.cpp
65VirtualBoxHardenedVM_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
66$(call VBOX_SET_VER_INFO_EXE,VirtualBoxHardenedVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
67endif
68
69
70#
71# Include Qt project file, we'll use FORMS and TRANSLATIONS in
72# the VirtualBox setup below.
73#
74# This is a bit messy. We boldly ASSUME that LANGUAGE, IMAGES, FORMS
75# and TRANSLATIONS are all unused by kBuild and the host toolchain.
76#
77SAVED_TEMPLATE := $(TEMPLATE)
78include $(PATH_SUB_CURRENT)/VBoxUI.pro
79TEMPLATE := $(SAVED_TEMPLATE)
80SAVED_TEMPLATE :=
81LANGUAGE :=
82IMAGES :=
83# FORMS and TRANSLATIONS are reset further down.
84
85
86#
87# Perform initial new version check on startup.
88# If this setting is disabled the user can still check using the menu.
89#
90ifndef VBOX_OSE
91VBOX_WITH_UPDATE_REQUEST := 1
92endif
93
94
95#
96# VirtualBox Manager Application
97#
98VirtualBox_TEMPLATE := VBOXQTGUIEXE
99VirtualBox_NAME = VirtualBox
100VirtualBox_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers
101VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
102VirtualBox_DEFS =
103ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces).
104 VirtualBox_DEFS += VBOX_IS_QT6_OR_LATER
105endif
106VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
107VirtualBox_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS
108VirtualBox_DEFS.solaris = VBOX_WS_X11
109VirtualBox_DEFS.freebsd = VBOX_WS_X11
110VirtualBox_DEFS.darwin = VBOX_WS_MAC
111VirtualBox_DEFS.win = VBOX_WS_WIN
112VirtualBox_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
113VirtualBox_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
114VirtualBox_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
115VirtualBox_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
116VirtualBox_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
117ifndef VBOX_WITH_QT6 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now.
118 VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
119endif
120VirtualBox_DEFS.win += UNICODE QT_DLL
121VirtualBox_DEFS += \
122 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
123 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
124 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
125 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
126 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
127 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
128 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
129 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
130 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
131 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
132 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
133 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
134 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
135 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
136ifdef VBOX_WITH_DEBUGGER_GUI
137 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
138 if "$(KBUILD_TYPE)" != "release"
139 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
140 endif
141endif
142ifdef VBOX_WITH_LIBCURL
143 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
144 VBOX_GUI_WITH_NETWORK_MANAGER := 1
145endif
146if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
147 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
148endif
149ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
150 VirtualBox_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
151endif
152
153
154#
155# VirtualBox Virtual Machine Application
156#
157VirtualBoxVM_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
158VirtualBoxVM_NAME = VirtualBoxVM
159ifndef VBOX_WITH_HARDENING
160VirtualBoxVM_INST.darwin = $(INST_VIRTUALBOX)Contents/Resources/VirtualBoxVM.app/Contents/MacOS/
161endif
162VirtualBoxVM_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers
163VirtualBoxVM_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
164VirtualBoxVM_DEFS = VBOX_RUNTIME_UI
165ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces).
166 VirtualBoxVM_DEFS += VBOX_IS_QT6_OR_LATER
167endif
168VirtualBoxVM_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
169VirtualBoxVM_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS
170VirtualBoxVM_DEFS.solaris = VBOX_WS_X11
171VirtualBoxVM_DEFS.freebsd = VBOX_WS_X11
172VirtualBoxVM_DEFS.darwin = VBOX_WS_MAC
173VirtualBoxVM_DEFS.win = VBOX_WS_WIN
174VirtualBoxVM_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
175VirtualBoxVM_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
176VirtualBoxVM_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
177VirtualBoxVM_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
178VirtualBoxVM_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
179ifdef VBOX_WITH_VMNET
180 VirtualBoxVM_DEFS.darwin += VBOX_WITH_VMNET
181endif
182ifndef VBOX_WITH_QT6 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now.
183 VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
184endif
185VirtualBoxVM_DEFS.win += UNICODE QT_DLL
186VirtualBoxVM_DEFS += \
187 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
188 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
189 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
190 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
191 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
192 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
193 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
194 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
195 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
196 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
197 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
198 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
199 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
200 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
201ifdef VBOX_WITH_DEBUGGER_GUI
202 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI
203 if "$(KBUILD_TYPE)" != "release"
204 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
205 endif
206endif
207ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
208 VirtualBoxVM_DEFS += VBOX_GUI_WITH_QTGLFRAMEBUFFER
209endif
210ifdef VBOX_WITH_LIBCURL
211 VirtualBoxVM_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
212 VBOX_GUI_WITH_NETWORK_MANAGER := 1
213endif
214if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
215 VirtualBoxVM_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
216endif
217ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
218 VirtualBoxVM_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
219endif
220
221
222#
223# VirtualBox - GUI Global Shared Library.
224#
225UICommon_TEMPLATE = VBOXQTGUI
226UICommon_NAME = UICommon
227UICommon_DEFS = VBOX_GUI_LIBRARY
228ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces).
229 UICommon_DEFS += VBOX_IS_QT6_OR_LATER
230endif
231UICommon_DEFS.darwin = VBOX_WS_MAC
232UICommon_DEFS.freebsd = VBOX_WS_X11
233UICommon_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS
234UICommon_DEFS.solaris = VBOX_WS_X11
235UICommon_DEFS.win = VBOX_WS_WIN
236UICommon_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
237ifdef VBOX_WITH_VMNET
238 UICommon_DEFS.darwin += VBOX_WITH_VMNET
239endif
240ifndef VBOX_WITH_QT6 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now.
241 UICommon_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
242endif
243#UICommon_DEFS.win += UNICODE QT_DLL
244UICommon_DEFS += \
245 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
246 $(if $(VBOX_WITH_CLOUD_NET),VBOX_WITH_CLOUD_NET) \
247 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
248 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
249 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
250 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
251 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
252 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
253 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
254 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
255 $(if $(VBOX_WITH_QHELP_VIEWER),VBOX_WITH_QHELP_VIEWER) \
256 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,) \
257 $(if $(VBOX_WITH_UPDATE_AGENT),VBOX_WITH_UPDATE_AGENT)
258ifdef VBOX_WITH_DEBUGGER_GUI
259 UICommon_DEFS += VBOX_WITH_DEBUGGER_GUI
260 if "$(KBUILD_TYPE)" != "release"
261 UICommon_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
262 endif
263endif
264ifdef VBOX_WITH_LIBCURL
265 UICommon_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
266 VBOX_GUI_WITH_NETWORK_MANAGER := 1
267endif
268if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
269 UICommon_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
270endif
271ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
272 UICommon_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
273endif
274
275
276#
277# Include folders.
278#
279VBOX_GUI_INC_DIRS = \
280 ./src \
281 ./src/cloud/consolemanager \
282 ./src/cloud/machinesettings \
283 ./src/cloud/profilemanager \
284 ./src/converter \
285 ./src/extensionpackmanager \
286 ./src/extensions \
287 ./src/extensions/graphics \
288 ./src/extradata \
289 ./src/globals \
290 ./src/helpbrowser \
291 ./src/logviewer \
292 ./src/medium \
293 ./src/medium/viso \
294 ./src/networkmanager \
295 ./src/notificationcenter \
296 ./src/objects \
297 ./src/platform \
298 ./src/platform/darwin \
299 ./src/platform/win \
300 ./src/platform/x11 \
301 ./src/runtime \
302 ./src/runtime/fullscreen \
303 ./src/runtime/normal \
304 ./src/runtime/scale \
305 ./src/runtime/seamless \
306 ./src/runtime/information \
307 ./src/guestctrl \
308 ./src/settings \
309 ./src/settings/editors \
310 ./src/settings/global \
311 ./src/settings/machine \
312 ./src/softkeyboard \
313 ./src/snapshots \
314 ./src/widgets \
315 ./src/widgets/graphics \
316 ./src/wizards \
317 ./src/wizards/addcloudvm \
318 ./src/wizards/newcloudvm \
319 ./src/wizards/newvm \
320 ./src/wizards/newvd \
321 ./src/wizards/clonevm \
322 ./src/wizards/clonevd \
323 ./src/wizards/exportappliance \
324 ./src/wizards/importappliance \
325 ./src/wizards/editors
326
327VBOX_GUI_INC_DIRS += \
328 ./src/manager \
329 ./src/manager/chooser \
330 ./src/manager/details \
331 ./src/manager/tools \
332 ./src/activity \
333 ./src/activity/overview \
334 ./src/activity/vmactivity
335
336ifdef VBOX_GUI_WITH_NETWORK_MANAGER
337VBOX_GUI_INC_DIRS += \
338 ./src/networking
339endif
340
341#
342# VirtualBox Manager Application
343# Include folders.
344#
345VirtualBox_INCS = \
346 $(VBOX_GUI_INC_DIRS) \
347 $(UICommon_0_OUTDIR)/include \
348 $(VBOX_GRAPHICS_INCS)
349
350#
351# VirtualBox Virtual Machine Application
352# Include folders.
353#
354VirtualBoxVM_INCS = \
355 $(VBOX_GUI_INC_DIRS) \
356 $(UICommon_0_OUTDIR)/include \
357 $(VBOX_GRAPHICS_INCS)
358
359#
360# VirtualBox - GUI Global Shared Library.
361# Include folders.
362#
363UICommon_INCS = \
364 $(VBOX_GUI_INC_DIRS) \
365 $(UICommon_0_OUTDIR)/include
366
367
368#
369# VirtualBox Manager Application
370# Compiling/linking flags.
371#
372ifneq ($(KBUILD_TARGET),win)
373VirtualBox_CXXFLAGS += -Wno-switch
374endif
375
376VirtualBox_CXXFLAGS.linux += -Wno-class-memaccess
377
378## @todo we're using a number of deprecated APIs, please fix and remove these!
379VirtualBox_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
380VirtualBox_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
381VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
382
383ifeq ($(KBUILD_TYPE),release)
384 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
385else
386 VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
387 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
388endif
389
390VirtualBox_LDFLAGS.darwin = \
391 $(if $(VBOX_WITH_HARDENING),,-rpath @executable_path/../MacOS -rpath @executable_path/../Frameworks) \
392 -framework AppKit -framework Carbon -framework IOKit
393
394ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
395 VirtualBox_LDFLAGS.darwin += -framework OpenGL
396endif
397
398
399#
400# VirtualBox Virtual Machine Application
401# Compiling/linking flags.
402#
403ifneq ($(KBUILD_TARGET),win)
404 VirtualBoxVM_CXXFLAGS += -Wno-switch
405endif
406
407VirtualBoxVM_CXXFLAGS.linux += -Wno-class-memaccess
408
409## @todo we're using a number of deprecated APIs, please fix and remove these!
410VirtualBoxVM_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
411VirtualBoxVM_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
412VirtualBoxVM_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
413
414ifeq ($(KBUILD_TYPE),release)
415 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:windows
416else
417 VirtualBoxVM_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
418 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:console
419endif
420
421VirtualBoxVM_LDFLAGS.darwin = \
422 $(if $(VBOX_WITH_HARDENING)\
423 ,-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBoxVM.dylib \
424 ,-rpath @executable_path/../../../../MacOS \
425 -rpath @executable_path/../../../../Frameworks) \
426 -framework AppKit -framework Carbon -framework IOKit \
427
428ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
429 VirtualBoxVM_LDFLAGS.darwin += -framework OpenGL
430endif
431
432
433#
434# VirtualBox - GUI Global Shared Library.
435# Compiling/linking flags.
436#
437
438UICommon_CXXFLAGS.linux += -Wno-class-memaccess
439UICommon_CXXFLAGS.win += -wd4868 # prevents std::stable_sort from using functor/function comparator
440UICommon_CXXFLAGS.win += -bigobj # COMWrappers.cpp fails with too many sections on win64-dep otherwise.
441
442## @todo we're using a number of deprecated APIs, please fix and remove these!
443UICommon_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
444UICommon_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
445UICommon_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
446
447UICommon_LDFLAGS.darwin = \
448 -install_name "$(VBOX_DYLD_EXECUTABLE_PATH)/UICommon.dylib" \
449 -framework AppKit \
450 -framework Carbon \
451 -framework IOKit
452
453ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
454 UICommon_LDFLAGS.darwin += -framework OpenGL
455endif
456
457#
458# VirtualBox Manager Application
459# Libraries.
460#
461
462# Library required for the hdd backend enumeration:
463VirtualBox_LIBS = $(LIB_DDU)
464
465# Runtime library loader required on X11 hosts:
466if1of ($(KBUILD_TARGET), linux netbsd openbsd)
467 VirtualBox_LIBS += dl
468endif
469
470# Xinerama library required for multi-monitor support:
471VirtualBox_LIBS.linux += Xinerama
472VirtualBox_LIBS.solaris += Xinerama
473VirtualBox_LIBS.freebsd += Xinerama
474
475# XCB library required for direct XCB native code support:
476VirtualBox_LIBS.linux += xcb
477VirtualBox_LIBS.solaris += xcb
478VirtualBox_LIBS.freebsd += xcb
479
480# Various Windows hosts libraries:
481VirtualBox_LIBS.win = \
482 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
483ifdef VBOX_WITH_NEW_WINDOWS_SDK
484 VirtualBox_LIBS.win += \
485 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/ddraw.lib \
486 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dxguid.lib
487else
488 VirtualBox_LIBS.win += \
489 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
490 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
491endif
492
493# VBox keyboard shared library for X11 hosts:
494if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
495 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
496endif
497
498# These are 2D Video Acceleration and 3D Acceleration related libs:
499ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
500 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
501 VirtualBox_LIBS.solaris += GL
502 VirtualBox_LIBS.linux += GL
503 VirtualBox_LIBS.freebsd += GL
504endif
505ifdef VBOX_WITH_3D_ACCELERATION
506 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
507endif
508
509# This one is global shared GUI library:
510ifeq ($(KBUILD_TARGET),win)
511 VirtualBox_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
512else
513 VirtualBox_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
514endif
515
516
517#
518# VirtualBox Virtual Machine Application
519# Libraries.
520#
521
522# Library required for the hdd backend enumeration:
523VirtualBoxVM_LIBS = $(LIB_DDU)
524
525# Runtime library loader required on X11 hosts:
526if1of ($(KBUILD_TARGET), linux netbsd openbsd)
527 VirtualBoxVM_LIBS += dl
528endif
529
530# Xinerama library required for multi-monitor support:
531VirtualBoxVM_LIBS.linux += Xinerama
532VirtualBoxVM_LIBS.solaris += Xinerama
533VirtualBoxVM_LIBS.freebsd += Xinerama
534
535# XCB library required for direct XCB native code support:
536VirtualBoxVM_LIBS.linux += xcb
537VirtualBoxVM_LIBS.solaris += xcb
538VirtualBoxVM_LIBS.freebsd += xcb
539
540# Various Windows hosts libraries:
541VirtualBoxVM_LIBS.win = \
542 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
543ifdef VBOX_WITH_NEW_WINDOWS_SDK
544 VirtualBoxVM_LIBS.win += \
545 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/ddraw.lib \
546 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dxguid.lib
547else
548 VirtualBoxVM_LIBS.win += \
549 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
550 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
551endif
552
553# VBox keyboard shared library for X11 hosts:
554if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
555 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
556endif
557
558# These are 2D Video Acceleration and 3D Acceleration related libs:
559ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
560 VirtualBoxVM_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
561 VirtualBoxVM_LIBS.solaris += GL
562 VirtualBoxVM_LIBS.linux += GL
563 VirtualBoxVM_LIBS.freebsd += GL
564endif
565ifdef VBOX_WITH_3D_ACCELERATION
566 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
567endif
568
569ifeq ($(KBUILD_TARGET),win)
570 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
571else
572 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
573endif
574
575
576#
577# VirtualBox - GUI Global Shared Library.
578# Libraries.
579#
580
581# Xinerama library required for multi-monitor support:
582UICommon_LIBS.linux += Xinerama
583UICommon_LIBS.solaris += Xinerama
584UICommon_LIBS.freebsd += Xinerama
585
586# Various Windows hosts libraries:
587UICommon_LIBS.win = \
588 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
589
590# VBox keyboard shared library for X11 hosts:
591if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
592 UICommon_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
593endif
594
595# These are 2D Video Acceleration and 3D Acceleration related libs:
596ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
597 UICommon_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
598 UICommon_LIBS.solaris += GL
599 UICommon_LIBS.linux += GL
600 UICommon_LIBS.freebsd += GL
601endif
602ifdef VBOX_WITH_3D_ACCELERATION
603 UICommon_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
604endif
605
606
607#
608# VirtualBox Manager Application
609# Headers containing definitions of classes that use the Q_OBJECT macro.
610#
611VirtualBox_QT_MOCHDRS = \
612 src/cloud/consolemanager/UICloudConsoleDetailsWidget.h \
613 src/cloud/consolemanager/UICloudConsoleManager.h \
614 src/cloud/machinesettings/UICloudMachineSettingsDialog.h \
615 src/cloud/machinesettings/UICloudMachineSettingsDialogPage.h \
616 src/cloud/profilemanager/UICloudProfileDetailsWidget.h \
617 src/cloud/profilemanager/UICloudProfileManager.h \
618 src/extensionpackmanager/UIExtensionPackManager.h \
619 src/globals/UIStarter.h \
620 src/manager/UIErrorPane.h \
621 src/manager/UIProgressTaskReadCloudMachineList.h \
622 src/manager/UITaskCloudGetSettingsForm.h \
623 src/manager/UIToolPaneGlobal.h \
624 src/manager/UIToolPaneMachine.h \
625 src/manager/UIVirtualBoxManager.h \
626 src/manager/UIVirtualBoxManagerWidget.h \
627 src/manager/UIVirtualMachineItem.h \
628 src/manager/UIVirtualMachineItemCloud.h \
629 src/manager/UIVirtualMachineItemLocal.h \
630 src/manager/UIWelcomePane.h \
631 src/manager/chooser/UIChooser.h \
632 src/manager/chooser/UIChooserAbstractModel.h \
633 src/manager/chooser/UIChooserModel.h \
634 src/manager/chooser/UIChooserView.h \
635 src/manager/chooser/UIChooserHandlerMouse.h \
636 src/manager/chooser/UIChooserHandlerKeyboard.h \
637 src/manager/chooser/UIChooserItem.h \
638 src/manager/chooser/UIChooserItemGroup.h \
639 src/manager/chooser/UIChooserItemGlobal.h \
640 src/manager/chooser/UIChooserItemMachine.h \
641 src/manager/chooser/UIChooserNode.h \
642 src/manager/chooser/UIChooserNodeGroup.h \
643 src/manager/chooser/UIChooserNodeGlobal.h \
644 src/manager/chooser/UIChooserNodeMachine.h \
645 src/manager/chooser/UIChooserSearchWidget.h \
646 src/manager/details/UIDetails.h \
647 src/manager/details/UIDetailsContextMenu.h \
648 src/manager/details/UIDetailsModel.h \
649 src/manager/details/UIDetailsView.h \
650 src/manager/details/UIDetailsItem.h \
651 src/manager/details/UIDetailsGroup.h \
652 src/manager/details/UIDetailsSet.h \
653 src/manager/details/UIDetailsElement.h \
654 src/manager/details/UIDetailsElements.h \
655 src/manager/details/UIMachinePreview.h \
656 src/manager/tools/UITools.h \
657 src/manager/tools/UIToolsModel.h \
658 src/manager/tools/UIToolsView.h \
659 src/manager/tools/UIToolsHandlerMouse.h \
660 src/manager/tools/UIToolsHandlerKeyboard.h \
661 src/manager/tools/UIToolsItem.h \
662 src/medium/UIMediumDetailsWidget.h \
663 src/medium/UIMediumManager.h \
664 src/activity/overview/UIVMActivityOverviewWidget.h \
665 src/activity/overview/UIVMActivityToolWidget.h \
666 src/networkmanager/UIDetailsWidgetCloudNetwork.h \
667 src/networkmanager/UIDetailsWidgetHostNetwork.h \
668 src/networkmanager/UIDetailsWidgetNATNetwork.h \
669 src/networkmanager/UINetworkManager.h \
670 src/snapshots/UISnapshotDetailsWidget.h \
671 src/snapshots/UISnapshotPane.h \
672 src/widgets/UIApplianceEditorWidget.h \
673 src/widgets/UIApplianceExportEditorWidget.h \
674 src/widgets/UIApplianceImportEditorWidget.h \
675 src/widgets/UIEmptyFilePathSelector.h \
676 src/widgets/UIFormEditorWidget.h \
677 src/widgets/UIGuestOSTypeSelectionButton.h \
678 src/widgets/UILineTextEdit.h \
679 src/widgets/UISlidingAnimation.h \
680 src/widgets/UISlidingWidget.h \
681 src/widgets/UITabBar.h \
682 src/widgets/UIMenuToolBar.h \
683 src/widgets/graphics/UIGraphicsButton.h \
684 src/widgets/graphics/UIGraphicsRotatorButton.h \
685 src/widgets/graphics/UIGraphicsScrollArea.h \
686 src/widgets/graphics/UIGraphicsScrollBar.h \
687 src/widgets/graphics/UIGraphicsZoomButton.h \
688 src/widgets/graphics/UIGraphicsToolBar.h \
689 src/widgets/graphics/UIGraphicsTextPane.h \
690 src/wizards/addcloudvm/UIWizardAddCloudVM.h \
691 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h \
692 src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h \
693 src/wizards/editors/UIHostnameDomainNameEditor.h \
694 src/wizards/editors/UIWizardCloneVMEditors.h \
695 src/wizards/editors/UIWizardNewVMEditors.h \
696 src/wizards/newcloudvm/UIWizardNewCloudVM.h \
697 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \
698 src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h \
699 src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h \
700 src/wizards/newvm/UIWizardNewVM.h \
701 src/wizards/newvm/UIWizardNewVMNameOSTypePage.h \
702 src/wizards/newvm/UIWizardNewVMUnattendedPage.h \
703 src/wizards/newvm/UIWizardNewVMHardwarePage.h \
704 src/wizards/newvm/UIWizardNewVMDiskPage.h \
705 src/wizards/newvm/UIWizardNewVMExpertPage.h \
706 src/wizards/newvm/UIWizardNewVMSummaryPage.h \
707 src/wizards/clonevm/UIWizardCloneVM.h \
708 src/wizards/clonevm/UIWizardCloneVMNamePathPage.h \
709 src/wizards/clonevm/UIWizardCloneVMTypePage.h \
710 src/wizards/clonevm/UIWizardCloneVMModePage.h \
711 src/wizards/clonevm/UIWizardCloneVMExpertPage.h \
712 src/wizards/clonevd/UIWizardCloneVD.h \
713 src/wizards/clonevd/UIWizardCloneVDFormatPage.h \
714 src/wizards/clonevd/UIWizardCloneVDVariantPage.h \
715 src/wizards/clonevd/UIWizardCloneVDPathSizePage.h \
716 src/wizards/clonevd/UIWizardCloneVDExpertPage.h \
717 src/wizards/exportappliance/UIWizardExportApp.h \
718 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
719 src/wizards/exportappliance/UIWizardExportAppPageFormat.h \
720 src/wizards/exportappliance/UIWizardExportAppPageSettings.h \
721 src/wizards/exportappliance/UIWizardExportAppPageVMs.h \
722 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.h \
723 src/wizards/importappliance/UIWizardImportApp.h \
724 src/wizards/importappliance/UIWizardImportAppPageExpert.h \
725 src/wizards/importappliance/UIWizardImportAppPageSettings.h \
726 src/wizards/importappliance/UIWizardImportAppPageSource.h
727
728
729#
730# VirtualBox Virtual Machine Application
731# Headers containing definitions of classes that use the Q_OBJECT macro.
732#
733VirtualBoxVM_QT_MOCHDRS = \
734 src/globals/UIStarter.h \
735 src/runtime/UIBootFailureDialog.h \
736 src/runtime/UIConsoleEventHandler.h \
737 src/runtime/UIFrameBuffer.h \
738 src/runtime/UIIndicatorsPool.h \
739 src/runtime/UIKeyboardHandler.h \
740 src/runtime/UIMachine.h \
741 src/runtime/UIMachineLogic.h \
742 src/runtime/UIMachineWindow.h \
743 src/runtime/UIMachineView.h \
744 src/runtime/UIMouseHandler.h \
745 src/runtime/UIMultiScreenLayout.h \
746 src/runtime/UISession.h \
747 src/runtime/UIVMCloseDialog.h \
748 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
749 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
750 src/runtime/fullscreen/UIMachineViewFullscreen.h \
751 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
752 src/runtime/information/UIInformationConfiguration.h \
753 src/runtime/information/UIVMInformationDialog.h \
754 src/runtime/information/UIInformationRuntime.h \
755 src/guestctrl/UIFileManagerDialog.h \
756 src/guestctrl/UIGuestControlConsole.h \
757 src/guestctrl/UIGuestControlInterface.h \
758 src/guestctrl/UIGuestControlTreeItem.h \
759 src/guestctrl/UIGuestProcessControlDialog.h \
760 src/guestctrl/UIGuestProcessControlWidget.h \
761 src/runtime/normal/UIKeyboardHandlerNormal.h \
762 src/runtime/normal/UIMachineLogicNormal.h \
763 src/runtime/normal/UIMachineViewNormal.h \
764 src/runtime/normal/UIMachineWindowNormal.h \
765 src/runtime/scale/UIKeyboardHandlerScale.h \
766 src/runtime/scale/UIMachineLogicScale.h \
767 src/runtime/scale/UIMachineViewScale.h \
768 src/runtime/scale/UIMachineWindowScale.h \
769 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
770 src/runtime/seamless/UIMachineLogicSeamless.h \
771 src/runtime/seamless/UIMachineViewSeamless.h \
772 src/runtime/seamless/UIMachineWindowSeamless.h \
773 src/softkeyboard/UISoftKeyboard.h \
774 src/widgets/UIMiniToolBar.h
775
776ifdef VBOX_WITH_DRAG_AND_DROP
777 VirtualBoxVM_QT_MOCHDRS += \
778 src/runtime/UIDnDHandler.h
779 ifdef VBOX_WITH_DRAG_AND_DROP_GH
780 VirtualBoxVM_QT_MOCHDRS += \
781 src/runtime/UIDnDMIMEData.h
782 endif
783endif
784
785
786#
787# VirtualBox - GUI Global Shared Library.
788# Headers containing definitions of classes that use the Q_OBJECT macro.
789#
790UICommon_QT_MOCHDRS = \
791 src/VBoxAboutDlg.h \
792 src/VBoxLicenseViewer.h \
793 src/UITakeSnapshotDialog.h \
794 src/extensions/QIAdvancedSlider.h \
795 src/extensions/QIArrowButtonPress.h \
796 src/extensions/QIArrowButtonSwitch.h \
797 src/extensions/QIArrowSplitter.h \
798 src/extensions/QIComboBox.h \
799 src/extensions/QIDialog.h \
800 src/extensions/QIDialogButtonBox.h \
801 src/extensions/QIDialogContainer.h \
802 src/extensions/QIFileDialog.h \
803 src/extensions/QIFlowLayout.h \
804 src/extensions/QIInputDialog.h \
805 src/extensions/QILabel.h \
806 src/extensions/QILabelSeparator.h \
807 src/extensions/QILineEdit.h \
808 src/extensions/QIMainDialog.h \
809 src/extensions/QIManagerDialog.h \
810 src/extensions/QIMenu.h \
811 src/extensions/QIMessageBox.h \
812 src/extensions/QIProcess.h \
813 src/extensions/QIRichTextLabel.h \
814 src/extensions/QIRichToolButton.h \
815 src/extensions/QISplitter.h \
816 src/extensions/QIStatusBar.h \
817 src/extensions/QIStatusBarIndicator.h \
818 src/extensions/QIStyledItemDelegate.h \
819 src/extensions/QITableView.h \
820 src/extensions/QITabWidget.h \
821 src/extensions/QIToolBar.h \
822 src/extensions/QIToolButton.h \
823 src/extensions/QITreeView.h \
824 src/extensions/QITreeWidget.h \
825 src/extensions/QIWidgetValidator.h \
826 src/extensions/graphics/QIGraphicsView.h \
827 src/extensions/graphics/QIGraphicsWidget.h \
828 src/extradata/UIExtraDataDefs.h \
829 src/extradata/UIExtraDataManager.h \
830 src/globals/UIActionPool.h \
831 src/globals/UIActionPoolManager.h \
832 src/globals/UIActionPoolRuntime.h \
833 src/globals/UIAnimationFramework.h \
834 src/globals/UICommon.h \
835 src/globals/UICustomFileSystemModel.h \
836 src/globals/UIDesktopWidgetWatchdog.h \
837 src/globals/UIDialogPanel.h \
838 src/globals/UIMainEventListener.h \
839 src/globals/UIMessageCenter.h \
840 src/globals/UIModalWindowManager.h \
841 src/globals/UIPopupCenter.h \
842 src/globals/UIProgressEventHandler.h \
843 src/globals/UIProgressObject.h \
844 src/globals/UIProgressTask.h \
845 src/globals/UIQObjectStuff.h \
846 src/globals/UIShortcutPool.h \
847 src/globals/UITask.h \
848 src/globals/UIThreadPool.h \
849 src/globals/UITextTable.h \
850 src/globals/UITranslator.h \
851 src/globals/UIVirtualBoxEventHandler.h \
852 src/globals/UIVirtualBoxClientEventHandler.h \
853 src/globals/VBoxUtils.h \
854 src/guestctrl/UIFileManager.h \
855 src/guestctrl/UIFileManagerGuestTable.h \
856 src/guestctrl/UIFileManagerHostTable.h \
857 src/guestctrl/UIFileManagerLogPanel.h \
858 src/guestctrl/UIFileManagerOperationsPanel.h \
859 src/guestctrl/UIFileManagerOptionsPanel.h \
860 src/guestctrl/UIFileManagerTable.h \
861 src/helpbrowser/UIHelpBrowserDialog.h \
862 src/logviewer/UIVMLogPage.h \
863 src/logviewer/UIVMLogViewerBookmarksPanel.h \
864 src/logviewer/UIVMLogViewerDialog.h \
865 src/logviewer/UIVMLogViewerFilterPanel.h \
866 src/logviewer/UIVMLogViewerOptionsPanel.h \
867 src/logviewer/UIVMLogViewerPanel.h \
868 src/logviewer/UIVMLogViewerSearchPanel.h \
869 src/logviewer/UIVMLogViewerTextEdit.h \
870 src/logviewer/UIVMLogViewerWidget.h \
871 src/activity/vmactivity/UIVMActivityMonitor.h \
872 src/medium/UIFDCreationDialog.h \
873 src/medium/UIMediumEnumerator.h \
874 src/medium/UIMediumItem.h \
875 src/medium/UIMediumSearchWidget.h \
876 src/medium/UIMediumSelector.h \
877 src/medium/viso/UIVisoBrowserBase.h \
878 src/medium/viso/UIVisoContentBrowser.h \
879 src/medium/viso/UIVisoCreator.h \
880 src/medium/viso/UIVisoConfigurationPanel.h \
881 src/medium/viso/UIVisoCreatorOptionsPanel.h \
882 src/medium/viso/UIVisoHostBrowser.h \
883 src/notificationcenter/UINotificationCenter.h \
884 src/notificationcenter/UINotificationModel.h \
885 src/notificationcenter/UINotificationObject.h \
886 src/notificationcenter/UINotificationObjectItem.h \
887 src/notificationcenter/UINotificationObjects.h \
888 src/notificationcenter/UINotificationProgressTask.h \
889 src/objects/UIExecutionQueue.h \
890 src/settings/UISettingsDialog.h \
891 src/settings/UISettingsDialogSpecific.h \
892 src/settings/UISettingsPage.h \
893 src/settings/UISettingsSelector.h \
894 src/settings/UISettingsSerializer.h \
895 src/settings/editors/UIAccelerationFeaturesEditor.h \
896 src/settings/editors/UIAudioControllerEditor.h \
897 src/settings/editors/UIAudioFeaturesEditor.h \
898 src/settings/editors/UIAudioHostDriverEditor.h \
899 src/settings/editors/UIAudioSettingsEditor.h \
900 src/settings/editors/UIAutoCaptureKeyboardEditor.h \
901 src/settings/editors/UIBaseMemoryEditor.h \
902 src/settings/editors/UIBootOrderEditor.h \
903 src/settings/editors/UIChipsetEditor.h \
904 src/settings/editors/UIColorThemeEditor.h \
905 src/settings/editors/UIDefaultMachineFolderEditor.h \
906 src/settings/editors/UIDiskEncryptionSettingsEditor.h \
907 src/settings/editors/UIDragAndDropEditor.h \
908 src/settings/editors/UIExecutionCapEditor.h \
909 src/settings/editors/UIGlobalDisplayFeaturesEditor.h \
910 src/settings/editors/UIGlobalProxyFeaturesEditor.h \
911 src/settings/editors/UIGraphicsControllerEditor.h \
912 src/settings/editors/UIHostComboEditor.h \
913 src/settings/editors/UIHotKeyEditor.h \
914 src/settings/editors/UILanguageSettingsEditor.h \
915 src/settings/editors/UIMachineDisplayScreenFeaturesEditor.h \
916 src/settings/editors/UIMachineDescriptionEditor.h \
917 src/settings/editors/UIMaximumGuestScreenSizeEditor.h \
918 src/settings/editors/UIMiniToolbarSettingsEditor.h \
919 src/settings/editors/UIMonitorCountEditor.h \
920 src/settings/editors/UIMotherboardFeaturesEditor.h \
921 src/settings/editors/UINameAndSystemEditor.h \
922 src/settings/editors/UINetworkAttachmentEditor.h \
923 src/settings/editors/UINetworkFeaturesEditor.h \
924 src/settings/editors/UINetworkSettingsEditor.h \
925 src/settings/editors/UIParavirtProviderEditor.h \
926 src/settings/editors/UIPointingHIDEditor.h \
927 src/settings/editors/UIProcessorFeaturesEditor.h \
928 src/settings/editors/UIRecordingSettingsEditor.h \
929 src/settings/editors/UIScaleFactorEditor.h \
930 src/settings/editors/UISharedClipboardEditor.h \
931 src/settings/editors/UISharedFolderDetailsEditor.h \
932 src/settings/editors/UISharedFoldersEditor.h \
933 src/settings/editors/UIShortcutConfigurationEditor.h \
934 src/settings/editors/UISnapshotFolderEditor.h \
935 src/settings/editors/UIStorageSettingsEditor.h \
936 src/settings/editors/UIUSBControllerEditor.h \
937 src/settings/editors/UIUSBFilterDetailsEditor.h \
938 src/settings/editors/UIUSBFiltersEditor.h \
939 src/settings/editors/UIUSBSettingsEditor.h \
940 src/settings/editors/UIVideoMemoryEditor.h \
941 src/settings/editors/UIVirtualCPUEditor.h \
942 src/settings/editors/UIVisualStateEditor.h \
943 src/settings/editors/UIVRDEAuthLibraryEditor.h \
944 src/settings/editors/UIVRDESettingsEditor.h \
945 src/settings/global/UIGlobalSettingsGeneral.h \
946 src/settings/global/UIGlobalSettingsInput.h \
947 src/settings/global/UIGlobalSettingsLanguage.h \
948 src/settings/global/UIGlobalSettingsDisplay.h \
949 src/settings/global/UIGlobalSettingsInterface.h \
950 src/settings/machine/UIMachineSettingsAudio.h \
951 src/settings/machine/UIMachineSettingsDisplay.h \
952 src/settings/machine/UIMachineSettingsGeneral.h \
953 src/settings/machine/UIMachineSettingsInterface.h \
954 src/settings/machine/UIMachineSettingsNetwork.h \
955 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
956 src/settings/machine/UIMachineSettingsSF.h \
957 src/settings/machine/UIMachineSettingsSerial.h \
958 src/settings/machine/UIMachineSettingsStorage.h \
959 src/settings/machine/UIMachineSettingsSystem.h \
960 src/settings/machine/UIMachineSettingsUSB.h \
961 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
962 src/widgets/UIFilePathSelector.h \
963 src/widgets/UIFilmContainer.h \
964 src/widgets/UIMediaComboBox.h \
965 src/widgets/UIMediumSizeEditor.h \
966 src/widgets/UIMenuBar.h \
967 src/widgets/UIMenuBarEditorWindow.h \
968 src/widgets/UIPopupBox.h \
969 src/widgets/UIPopupPane.h \
970 src/widgets/UIPopupPaneButtonPane.h \
971 src/widgets/UIPopupPaneMessage.h \
972 src/widgets/UIPopupPaneDetails.h \
973 src/widgets/UIPopupStack.h \
974 src/widgets/UIPopupStackViewport.h \
975 src/widgets/UIPortForwardingTable.h \
976 src/widgets/UIProgressDialog.h \
977 src/widgets/UISlidingToolBar.h \
978 src/widgets/UISpecialControls.h \
979 src/widgets/UIStatusBarEditorWindow.h \
980 src/widgets/UISearchLineEdit.h \
981 src/widgets/UIToolBox.h \
982 src/widgets/UIWarningPane.h \
983 src/wizards/UINativeWizard.h \
984 src/wizards/UINativeWizardPage.h \
985 src/wizards/editors/UIUserNamePasswordEditor.h \
986 src/wizards/editors/UIWizardDiskEditors.h \
987 src/wizards/newvd/UIWizardNewVD.h \
988 src/wizards/newvd/UIWizardNewVDFileTypePage.h \
989 src/wizards/newvd/UIWizardNewVDVariantPage.h \
990 src/wizards/newvd/UIWizardNewVDSizeLocationPage.h \
991 src/wizards/newvd/UIWizardNewVDExpertPage.h
992
993ifdef VBOX_WITH_QHELP_VIEWER
994 UICommon_QT_MOCHDRS += \
995 src/helpbrowser/UIHelpViewer.h \
996 src/helpbrowser/UIHelpBrowserWidget.h
997endif
998
999ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1000 UICommon_QT_MOCHDRS += \
1001 src/networking/UIDownloader.h \
1002 src/networking/UIDownloaderExtensionPack.h \
1003 src/networking/UIDownloaderGuestAdditions.h \
1004 src/networking/UIDownloaderUserManual.h \
1005 src/networking/UINetworkCustomer.h \
1006 src/networking/UINetworkRequestManager.h \
1007 src/networking/UINetworkRequest.h \
1008 src/networking/UINetworkReply.h \
1009 src/networking/UINewVersionChecker.h \
1010 src/networking/UIUpdateManager.h \
1011 src/settings/editors/UIUpdateSettingsEditor.h \
1012 src/settings/global/UIGlobalSettingsProxy.h \
1013 src/settings/global/UIGlobalSettingsUpdate.h
1014endif
1015
1016UICommon_QT_MOCHDRS.darwin += \
1017 src/platform/darwin/UICocoaSpecialControls.h \
1018 src/platform/darwin/UIWindowMenuManager.h
1019
1020
1021#
1022# VirtualBox Manager Application
1023# Sources containing local definitions of classes that use the Q_OBJECT macro.
1024#
1025VirtualBox_QT_MOCSRCS = \
1026 src/cloud/consolemanager/UICloudConsoleManager.cpp \
1027 src/cloud/profilemanager/UICloudProfileManager.cpp \
1028 src/extensionpackmanager/UIExtensionPackManager.cpp \
1029 src/manager/UIVirtualBoxManager.cpp \
1030 src/manager/UIVirtualMachineItemCloud.cpp \
1031 src/manager/UIWelcomePane.cpp \
1032 src/manager/chooser/UIChooserAbstractModel.cpp \
1033 src/activity/overview/UIVMActivityOverviewWidget.cpp \
1034 src/networkmanager/UINetworkManager.cpp \
1035 src/snapshots/UISnapshotDetailsWidget.cpp \
1036 src/snapshots/UISnapshotPane.cpp \
1037 src/widgets/UIApplianceEditorWidget.cpp \
1038 src/widgets/UIFormEditorWidget.cpp \
1039 src/widgets/UIMenuToolBar.cpp \
1040 src/widgets/UITabBar.cpp \
1041 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1042 src/wizards/importappliance/UIWizardImportApp.cpp \
1043 src/wizards/newvm/UIWizardNewVMSummaryPage.cpp
1044
1045#
1046# VirtualBox Virtual Machine Application
1047# Sources containing local definitions of classes that use the Q_OBJECT macro.
1048#
1049VirtualBoxVM_QT_MOCSRCS = \
1050 src/runtime/UIConsoleEventHandler.cpp \
1051 src/runtime/UIFrameBuffer.cpp \
1052 src/runtime/UIIndicatorsPool.cpp \
1053 src/runtime/information/UIInformationRuntime.cpp \
1054 src/guestctrl/UIGuestProcessControlWidget.cpp \
1055 src/softkeyboard/UISoftKeyboard.cpp \
1056 src/widgets/UIMiniToolBar.cpp
1057
1058
1059#
1060# VirtualBox - GUI Global Shared Library.
1061# Sources containing local definitions of classes that use the Q_OBJECT macro.
1062#
1063UICommon_QT_MOCSRCS = \
1064 src/extensions/QIAdvancedSlider.cpp \
1065 src/extensions/QIArrowSplitter.cpp \
1066 src/extensions/QISplitter.cpp \
1067 src/extradata/UIExtraDataManager.cpp \
1068 src/globals/UIActionPool.cpp \
1069 src/globals/UIActionPoolManager.cpp \
1070 src/globals/UIActionPoolRuntime.cpp \
1071 src/globals/UIMainEventListener.cpp \
1072 src/globals/UIThreadPool.cpp \
1073 src/globals/UIVirtualBoxEventHandler.cpp \
1074 src/globals/UIVirtualBoxClientEventHandler.cpp \
1075 src/guestctrl/UIFileManager.cpp \
1076 src/guestctrl/UIFileManagerLogPanel.cpp \
1077 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1078 src/guestctrl/UIFileManagerTable.cpp \
1079 src/guestctrl/UIFileManagerGuestTable.cpp \
1080 src/guestctrl/UIFileManagerHostTable.cpp \
1081 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1082 src/logviewer/UIVMLogViewerTextEdit.cpp \
1083 src/logviewer/UIVMLogViewerWidget.cpp \
1084 src/activity/vmactivity/UIVMActivityMonitor.cpp \
1085 src/medium/UIMediumEnumerator.cpp \
1086 src/medium/viso/UIVisoContentBrowser.cpp \
1087 src/medium/viso/UIVisoHostBrowser.cpp \
1088 src/medium/viso/UIVisoBrowserBase.cpp \
1089 src/notificationcenter/UINotificationCenter.cpp \
1090 src/settings/editors/UIBaseMemoryEditor.cpp \
1091 src/settings/editors/UIBootOrderEditor.cpp \
1092 src/settings/editors/UIHotKeyEditor.cpp \
1093 src/settings/editors/UILanguageSettingsEditor.cpp \
1094 src/settings/editors/UISharedFoldersEditor.cpp \
1095 src/settings/editors/UIShortcutConfigurationEditor.cpp \
1096 src/settings/editors/UIStorageSettingsEditor.cpp \
1097 src/settings/editors/UIUSBFiltersEditor.cpp \
1098 src/settings/machine/UIMachineSettingsNetwork.cpp \
1099 src/settings/machine/UIMachineSettingsSerial.cpp \
1100 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1101 src/widgets/UIFilmContainer.cpp \
1102 src/widgets/UIPortForwardingTable.cpp \
1103 src/widgets/UIStatusBarEditorWindow.cpp \
1104 src/widgets/UIToolBox.cpp
1105
1106ifdef VBOX_WITH_QHELP_VIEWER
1107 UICommon_QT_MOCSRCS += \
1108 src/helpbrowser/UIHelpViewer.cpp \
1109 src/helpbrowser/UIHelpBrowserWidget.cpp
1110endif
1111
1112ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1113 UICommon_QT_MOCSRCS += \
1114 src/networking/UINetworkReply.cpp \
1115 src/networking/UIUpdateManager.cpp
1116endif
1117
1118ifdef VBOX_WITH_XPCOM
1119 UICommon_QT_MOCSRCS += \
1120 src/globals/COMDefs.cpp
1121endif
1122
1123UICommon_QT_MOCSRCS.darwin += \
1124 src/platform/darwin/UIWindowMenuManager.cpp
1125
1126ifndef VBOX_GUI_WITH_CUSTOMIZATIONS1
1127 UICommon_QT_MOCSRCS.linux += \
1128 src/globals/UIDesktopWidgetWatchdog.cpp
1129 UICommon_QT_MOCSRCS.solaris += \
1130 src/globals/UIDesktopWidgetWatchdog.cpp
1131 UICommon_QT_MOCSRCS.freebsd += \
1132 src/globals/UIDesktopWidgetWatchdog.cpp
1133endif
1134
1135
1136#
1137# VirtualBox Manager Application
1138# Sources.
1139#
1140VirtualBox_SOURCES = \
1141 src/main.cpp \
1142 src/cloud/consolemanager/UICloudConsoleDetailsWidget.cpp \
1143 src/cloud/consolemanager/UICloudConsoleManager.cpp \
1144 src/cloud/machinesettings/UICloudMachineSettingsDialog.cpp \
1145 src/cloud/machinesettings/UICloudMachineSettingsDialogPage.cpp \
1146 src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp \
1147 src/cloud/profilemanager/UICloudProfileManager.cpp \
1148 src/extensionpackmanager/UIExtensionPackManager.cpp \
1149 src/globals/UIStarter.cpp \
1150 src/manager/UICloudEntityKey.cpp \
1151 src/manager/UIErrorPane.cpp \
1152 src/manager/UIProgressTaskReadCloudMachineList.cpp \
1153 src/manager/UITaskCloudGetSettingsForm.cpp \
1154 src/manager/UIToolPaneGlobal.cpp \
1155 src/manager/UIToolPaneMachine.cpp \
1156 src/manager/UIVirtualBoxManager.cpp \
1157 src/manager/UIVirtualBoxManagerWidget.cpp \
1158 src/manager/UIVirtualMachineItem.cpp \
1159 src/manager/UIVirtualMachineItemCloud.cpp \
1160 src/manager/UIVirtualMachineItemLocal.cpp \
1161 src/manager/UIWelcomePane.cpp \
1162 src/manager/chooser/UIChooser.cpp \
1163 src/manager/chooser/UIChooserAbstractModel.cpp \
1164 src/manager/chooser/UIChooserModel.cpp \
1165 src/manager/chooser/UIChooserView.cpp \
1166 src/manager/chooser/UIChooserHandlerMouse.cpp \
1167 src/manager/chooser/UIChooserHandlerKeyboard.cpp \
1168 src/manager/chooser/UIChooserItem.cpp \
1169 src/manager/chooser/UIChooserItemGroup.cpp \
1170 src/manager/chooser/UIChooserItemGlobal.cpp \
1171 src/manager/chooser/UIChooserItemMachine.cpp \
1172 src/manager/chooser/UIChooserNode.cpp \
1173 src/manager/chooser/UIChooserNodeGroup.cpp \
1174 src/manager/chooser/UIChooserNodeGlobal.cpp \
1175 src/manager/chooser/UIChooserNodeMachine.cpp \
1176 src/manager/chooser/UIChooserSearchWidget.cpp \
1177 src/manager/details/UIDetails.cpp \
1178 src/manager/details/UIDetailsContextMenu.cpp \
1179 src/manager/details/UIDetailsModel.cpp \
1180 src/manager/details/UIDetailsView.cpp \
1181 src/manager/details/UIDetailsItem.cpp \
1182 src/manager/details/UIDetailsGroup.cpp \
1183 src/manager/details/UIDetailsSet.cpp \
1184 src/manager/details/UIDetailsElement.cpp \
1185 src/manager/details/UIDetailsElements.cpp \
1186 src/manager/details/UIMachinePreview.cpp \
1187 src/manager/tools/UITools.cpp \
1188 src/manager/tools/UIToolsModel.cpp \
1189 src/manager/tools/UIToolsView.cpp \
1190 src/manager/tools/UIToolsHandlerMouse.cpp \
1191 src/manager/tools/UIToolsHandlerKeyboard.cpp \
1192 src/manager/tools/UIToolsItem.cpp \
1193 src/medium/UIMediumDetailsWidget.cpp \
1194 src/medium/UIMediumManager.cpp \
1195 src/activity/overview/UIVMActivityOverviewWidget.cpp \
1196 src/activity/overview/UIVMActivityToolWidget.cpp \
1197 src/networkmanager/UIDetailsWidgetCloudNetwork.cpp \
1198 src/networkmanager/UIDetailsWidgetHostNetwork.cpp \
1199 src/networkmanager/UIDetailsWidgetNATNetwork.cpp \
1200 src/networkmanager/UINetworkManager.cpp \
1201 src/networkmanager/UINetworkManagerUtils.cpp \
1202 src/snapshots/UISnapshotDetailsWidget.cpp \
1203 src/snapshots/UISnapshotPane.cpp \
1204 src/widgets/UIApplianceEditorWidget.cpp \
1205 src/widgets/UIApplianceExportEditorWidget.cpp \
1206 src/widgets/UIApplianceImportEditorWidget.cpp \
1207 src/widgets/UIEmptyFilePathSelector.cpp \
1208 src/widgets/UIFormEditorWidget.cpp \
1209 src/widgets/UIGuestOSTypeSelectionButton.cpp \
1210 src/widgets/UILineTextEdit.cpp \
1211 src/widgets/UISlidingAnimation.cpp \
1212 src/widgets/UISlidingWidget.cpp \
1213 src/widgets/UITabBar.cpp \
1214 src/widgets/UIMenuToolBar.cpp \
1215 src/widgets/graphics/UIGraphicsButton.cpp \
1216 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1217 src/widgets/graphics/UIGraphicsScrollArea.cpp \
1218 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1219 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1220 src/widgets/graphics/UIGraphicsToolBar.cpp \
1221 src/widgets/graphics/UIGraphicsTextPane.cpp \
1222 src/wizards/addcloudvm/UIWizardAddCloudVM.cpp \
1223 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp \
1224 src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp \
1225 src/wizards/editors/UIHostnameDomainNameEditor.cpp \
1226 src/wizards/editors/UIWizardCloneVMEditors.cpp \
1227 src/wizards/editors/UIWizardNewVMEditors.cpp \
1228 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \
1229 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \
1230 src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp \
1231 src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp \
1232 src/wizards/newvm/UIWizardNewVM.cpp \
1233 src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp \
1234 src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp \
1235 src/wizards/newvm/UIWizardNewVMHardwarePage.cpp \
1236 src/wizards/newvm/UIWizardNewVMDiskPage.cpp \
1237 src/wizards/newvm/UIWizardNewVMExpertPage.cpp \
1238 src/wizards/newvm/UIWizardNewVMSummaryPage.cpp \
1239 src/wizards/clonevm/UIWizardCloneVM.cpp \
1240 src/wizards/clonevm/UIWizardCloneVMNamePathPage.cpp \
1241 src/wizards/clonevm/UIWizardCloneVMTypePage.cpp \
1242 src/wizards/clonevm/UIWizardCloneVMModePage.cpp \
1243 src/wizards/clonevm/UIWizardCloneVMExpertPage.cpp \
1244 src/wizards/clonevd/UIWizardCloneVD.cpp \
1245 src/wizards/clonevd/UIWizardCloneVDFormatPage.cpp \
1246 src/wizards/clonevd/UIWizardCloneVDVariantPage.cpp \
1247 src/wizards/clonevd/UIWizardCloneVDPathSizePage.cpp \
1248 src/wizards/clonevd/UIWizardCloneVDExpertPage.cpp \
1249 src/wizards/exportappliance/UIWizardExportApp.cpp \
1250 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1251 src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp \
1252 src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp \
1253 src/wizards/exportappliance/UIWizardExportAppPageVMs.cpp \
1254 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.cpp \
1255 src/wizards/importappliance/UIWizardImportApp.cpp \
1256 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
1257 src/wizards/importappliance/UIWizardImportAppPageSettings.cpp \
1258 src/wizards/importappliance/UIWizardImportAppPageSource.cpp
1259
1260VirtualBox_SOURCES.darwin += \
1261 src/platform/darwin/UIDesktopServices_darwin.cpp \
1262 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1263
1264if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1265 VirtualBox_SOURCES += \
1266 src/platform/x11/UIDesktopServices_x11.cpp
1267endif
1268
1269VirtualBox_SOURCES.win += \
1270 src/platform/win/UIDesktopServices_win.cpp
1271
1272$(call VBOX_SET_VER_INFO_EXE,VirtualBox,VirtualBox Manager,$(VBOX_WINDOWS_ICON_FILE),VirtualBoxGUI)
1273
1274
1275#
1276# VirtualBox Virtual Machine Application
1277# Sources.
1278#
1279VirtualBoxVM_SOURCES = \
1280 src/main.cpp \
1281 src/globals/UIStarter.cpp \
1282 src/runtime/UIBootFailureDialog.cpp \
1283 src/runtime/UIConsoleEventHandler.cpp \
1284 src/runtime/UIFrameBuffer.cpp \
1285 src/runtime/UIIndicatorsPool.cpp \
1286 src/runtime/UIKeyboardHandler.cpp \
1287 src/runtime/UIMachine.cpp \
1288 src/runtime/UIMachineLogic.cpp \
1289 src/runtime/UIMachineView.cpp \
1290 src/runtime/UIMachineWindow.cpp \
1291 src/runtime/UIMouseHandler.cpp \
1292 src/runtime/UIMultiScreenLayout.cpp \
1293 src/runtime/UISession.cpp \
1294 src/runtime/UIVMCloseDialog.cpp \
1295 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1296 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1297 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1298 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1299 src/runtime/information/UIInformationConfiguration.cpp \
1300 src/runtime/information/UIVMInformationDialog.cpp \
1301 src/runtime/information/UIInformationRuntime.cpp \
1302 src/guestctrl/UIFileManagerDialog.cpp \
1303 src/guestctrl/UIGuestControlConsole.cpp \
1304 src/guestctrl/UIGuestControlInterface.cpp \
1305 src/guestctrl/UIGuestControlTreeItem.cpp \
1306 src/guestctrl/UIGuestProcessControlWidget.cpp \
1307 src/guestctrl/UIGuestProcessControlDialog.cpp \
1308 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1309 src/runtime/normal/UIMachineLogicNormal.cpp \
1310 src/runtime/normal/UIMachineViewNormal.cpp \
1311 src/runtime/normal/UIMachineWindowNormal.cpp \
1312 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1313 src/runtime/scale/UIMachineLogicScale.cpp \
1314 src/runtime/scale/UIMachineViewScale.cpp \
1315 src/runtime/scale/UIMachineWindowScale.cpp \
1316 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1317 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1318 src/runtime/seamless/UIMachineViewSeamless.cpp \
1319 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1320 src/softkeyboard/UISoftKeyboard.cpp \
1321 src/widgets/UIMiniToolBar.cpp
1322
1323ifdef VBOX_WITH_DRAG_AND_DROP
1324 VirtualBoxVM_SOURCES += \
1325 src/runtime/UIDnDHandler.cpp
1326 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1327 VirtualBoxVM_SOURCES += \
1328 src/runtime/UIDnDMIMEData.cpp
1329 VirtualBoxVM_SOURCES.win += \
1330 src/runtime/UIDnDDropSource_win.cpp \
1331 src/runtime/UIDnDDataObject_win.cpp \
1332 src/runtime/UIDnDEnumFormat_win.cpp
1333 endif
1334endif
1335
1336VirtualBoxVM_SOURCES.darwin += \
1337 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1338 src/platform/darwin/UICocoaDockIconPreview.mm
1339
1340ifdef VBOX_WITH_HARDENING
1341$(call VBOX_SET_VER_INFO_DLL,VirtualBoxVM,VirtualBox Virtual Machine (dll),$(VBOX_WINDOWS_ICON_FILE))
1342else
1343$(call VBOX_SET_VER_INFO_EXE,VirtualBoxVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
1344endif
1345
1346
1347#
1348# VirtualBox - GUI Global Shared Library.
1349# Sources.
1350#
1351UICommon_SOURCES = \
1352 src/VBoxAboutDlg.cpp \
1353 src/VBoxLicenseViewer.cpp \
1354 src/UITakeSnapshotDialog.cpp \
1355 src/extensions/QIAdvancedSlider.cpp \
1356 src/extensions/QIArrowButtonPress.cpp \
1357 src/extensions/QIArrowButtonSwitch.cpp \
1358 src/extensions/QIArrowSplitter.cpp \
1359 src/extensions/QIComboBox.cpp \
1360 src/extensions/QIDialog.cpp \
1361 src/extensions/QIDialogButtonBox.cpp \
1362 src/extensions/QIDialogContainer.cpp \
1363 src/extensions/QIFileDialog.cpp \
1364 src/extensions/QIFlowLayout.cpp \
1365 src/extensions/QIInputDialog.cpp \
1366 src/extensions/QILabel.cpp \
1367 src/extensions/QILabelSeparator.cpp \
1368 src/extensions/QILineEdit.cpp \
1369 src/extensions/QIMainDialog.cpp \
1370 src/extensions/QIManagerDialog.cpp \
1371 src/extensions/QIMenu.cpp \
1372 src/extensions/QIMessageBox.cpp \
1373 src/extensions/QIProcess.cpp \
1374 src/extensions/QIRichTextLabel.cpp \
1375 src/extensions/QIRichToolButton.cpp \
1376 src/extensions/QISplitter.cpp \
1377 src/extensions/QIStatusBar.cpp \
1378 src/extensions/QIStatusBarIndicator.cpp \
1379 src/extensions/QIStyledItemDelegate.cpp \
1380 src/extensions/QITableView.cpp \
1381 src/extensions/QITabWidget.cpp \
1382 src/extensions/QIToolBar.cpp \
1383 src/extensions/QIToolButton.cpp \
1384 src/extensions/QITreeView.cpp \
1385 src/extensions/QITreeWidget.cpp \
1386 src/extensions/QIWidgetValidator.cpp \
1387 src/extensions/graphics/QIGraphicsView.cpp \
1388 src/extensions/graphics/QIGraphicsWidget.cpp \
1389 src/extradata/UIExtraDataDefs.cpp \
1390 src/extradata/UIExtraDataManager.cpp \
1391 src/converter/UIConverter.cpp \
1392 src/converter/UIConverterBackendCOM.cpp \
1393 src/converter/UIConverterBackendGlobal.cpp \
1394 src/globals/COMDefs.cpp \
1395 src/globals/UIActionPool.cpp \
1396 src/globals/UIActionPoolManager.cpp \
1397 src/globals/UIActionPoolRuntime.cpp \
1398 src/globals/UIAnimationFramework.cpp \
1399 src/globals/UICloudNetworkingStuff.cpp \
1400 src/globals/UICommon.cpp \
1401 src/globals/UICursor.cpp \
1402 src/globals/UICustomFileSystemModel.cpp \
1403 src/globals/UIDefs.cpp \
1404 src/globals/UIDesktopWidgetWatchdog.cpp \
1405 src/globals/UIDetailsGenerator.cpp \
1406 src/globals/UIDialogPanel.cpp \
1407 src/globals/UIErrorString.cpp \
1408 src/globals/UIExtension.cpp \
1409 src/globals/UIIconPool.cpp \
1410 src/globals/UIImageTools.cpp \
1411 src/globals/UIMachineAttributeSetter.cpp \
1412 src/globals/UIMainEventListener.cpp \
1413 src/globals/UIMessageCenter.cpp \
1414 src/globals/UIModalWindowManager.cpp \
1415 src/globals/UIMousePointerShapeData.cpp \
1416 src/globals/UIPathOperations.cpp \
1417 src/globals/UIPopupCenter.cpp \
1418 src/globals/UIProgressEventHandler.cpp \
1419 src/globals/UIProgressObject.cpp \
1420 src/globals/UIProgressTask.cpp \
1421 src/globals/UIQObjectStuff.cpp \
1422 src/globals/UIShortcutPool.cpp \
1423 src/globals/UITextTable.cpp \
1424 src/globals/UITask.cpp \
1425 src/globals/UIThreadPool.cpp \
1426 src/globals/UITranslator.cpp \
1427 src/globals/UIVersion.cpp \
1428 src/globals/UIVirtualBoxEventHandler.cpp \
1429 src/globals/UIVirtualBoxClientEventHandler.cpp \
1430 src/guestctrl/UIFileManager.cpp \
1431 src/guestctrl/UIFileManagerGuestTable.cpp \
1432 src/guestctrl/UIFileManagerHostTable.cpp \
1433 src/guestctrl/UIFileManagerLogPanel.cpp \
1434 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1435 src/guestctrl/UIFileManagerOptionsPanel.cpp \
1436 src/guestctrl/UIFileManagerTable.cpp \
1437 src/helpbrowser/UIHelpBrowserDialog.cpp \
1438 src/logviewer/UIVMLogPage.cpp \
1439 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1440 src/logviewer/UIVMLogViewerDialog.cpp \
1441 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1442 src/logviewer/UIVMLogViewerOptionsPanel.cpp \
1443 src/logviewer/UIVMLogViewerPanel.cpp \
1444 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1445 src/logviewer/UIVMLogViewerTextEdit.cpp \
1446 src/logviewer/UIVMLogViewerWidget.cpp \
1447 src/activity/UIMonitorCommon.cpp \
1448 src/activity/vmactivity/UIVMActivityMonitor.cpp \
1449 src/medium/UIFDCreationDialog.cpp \
1450 src/medium/UIMedium.cpp \
1451 src/medium/UIMediumDefs.cpp \
1452 src/medium/UIMediumEnumerator.cpp \
1453 src/medium/UIMediumItem.cpp \
1454 src/medium/UIMediumSearchWidget.cpp \
1455 src/medium/UIMediumSelector.cpp \
1456 src/medium/viso/UIVisoBrowserBase.cpp \
1457 src/medium/viso/UIVisoContentBrowser.cpp \
1458 src/medium/viso/UIVisoCreator.cpp \
1459 src/medium/viso/UIVisoConfigurationPanel.cpp \
1460 src/medium/viso/UIVisoCreatorOptionsPanel.cpp \
1461 src/medium/viso/UIVisoHostBrowser.cpp \
1462 src/notificationcenter/UINotificationCenter.cpp \
1463 src/notificationcenter/UINotificationModel.cpp \
1464 src/notificationcenter/UINotificationObject.cpp \
1465 src/notificationcenter/UINotificationObjectItem.cpp \
1466 src/notificationcenter/UINotificationObjects.cpp \
1467 src/notificationcenter/UINotificationProgressTask.cpp \
1468 src/objects/UIExecutionQueue.cpp \
1469 src/objects/UIRichTextString.cpp \
1470 src/settings/UISettingsDefs.cpp \
1471 src/settings/UISettingsDialog.cpp \
1472 src/settings/UISettingsDialogSpecific.cpp \
1473 src/settings/UISettingsPage.cpp \
1474 src/settings/UISettingsSelector.cpp \
1475 src/settings/UISettingsSerializer.cpp \
1476 src/settings/editors/UIAccelerationFeaturesEditor.cpp \
1477 src/settings/editors/UIAudioControllerEditor.cpp \
1478 src/settings/editors/UIAudioFeaturesEditor.cpp \
1479 src/settings/editors/UIAudioHostDriverEditor.cpp \
1480 src/settings/editors/UIAudioSettingsEditor.cpp \
1481 src/settings/editors/UIAutoCaptureKeyboardEditor.cpp \
1482 src/settings/editors/UIBaseMemoryEditor.cpp \
1483 src/settings/editors/UIBootOrderEditor.cpp \
1484 src/settings/editors/UIChipsetEditor.cpp \
1485 src/settings/editors/UIColorThemeEditor.cpp \
1486 src/settings/editors/UIDefaultMachineFolderEditor.cpp \
1487 src/settings/editors/UIDiskEncryptionSettingsEditor.cpp \
1488 src/settings/editors/UIDragAndDropEditor.cpp \
1489 src/settings/editors/UIExecutionCapEditor.cpp \
1490 src/settings/editors/UIGlobalDisplayFeaturesEditor.cpp \
1491 src/settings/editors/UIGlobalProxyFeaturesEditor.cpp \
1492 src/settings/editors/UIGraphicsControllerEditor.cpp \
1493 src/settings/editors/UIHostComboEditor.cpp \
1494 src/settings/editors/UIHotKeyEditor.cpp \
1495 src/settings/editors/UILanguageSettingsEditor.cpp \
1496 src/settings/editors/UIMachineDisplayScreenFeaturesEditor.cpp \
1497 src/settings/editors/UIMachineDescriptionEditor.cpp \
1498 src/settings/editors/UIMaximumGuestScreenSizeEditor.cpp \
1499 src/settings/editors/UIMiniToolbarSettingsEditor.cpp \
1500 src/settings/editors/UIMonitorCountEditor.cpp \
1501 src/settings/editors/UIMotherboardFeaturesEditor.cpp \
1502 src/settings/editors/UINameAndSystemEditor.cpp \
1503 src/settings/editors/UINetworkAttachmentEditor.cpp \
1504 src/settings/editors/UINetworkFeaturesEditor.cpp \
1505 src/settings/editors/UINetworkSettingsEditor.cpp \
1506 src/settings/editors/UIParavirtProviderEditor.cpp \
1507 src/settings/editors/UIPointingHIDEditor.cpp \
1508 src/settings/editors/UIProcessorFeaturesEditor.cpp \
1509 src/settings/editors/UIRecordingSettingsEditor.cpp \
1510 src/settings/editors/UIScaleFactorEditor.cpp \
1511 src/settings/editors/UISharedClipboardEditor.cpp \
1512 src/settings/editors/UISharedFolderDetailsEditor.cpp \
1513 src/settings/editors/UISharedFoldersEditor.cpp \
1514 src/settings/editors/UIShortcutConfigurationEditor.cpp \
1515 src/settings/editors/UISnapshotFolderEditor.cpp \
1516 src/settings/editors/UIStorageSettingsEditor.cpp \
1517 src/settings/editors/UIUSBControllerEditor.cpp \
1518 src/settings/editors/UIUSBFilterDetailsEditor.cpp \
1519 src/settings/editors/UIUSBFiltersEditor.cpp \
1520 src/settings/editors/UIUSBSettingsEditor.cpp \
1521 src/settings/editors/UIVideoMemoryEditor.cpp \
1522 src/settings/editors/UIVirtualCPUEditor.cpp \
1523 src/settings/editors/UIVisualStateEditor.cpp \
1524 src/settings/editors/UIVRDEAuthLibraryEditor.cpp \
1525 src/settings/editors/UIVRDESettingsEditor.cpp \
1526 src/settings/global/UIGlobalSettingsGeneral.cpp \
1527 src/settings/global/UIGlobalSettingsInput.cpp \
1528 src/settings/global/UIGlobalSettingsLanguage.cpp \
1529 src/settings/global/UIGlobalSettingsDisplay.cpp \
1530 src/settings/global/UIGlobalSettingsInterface.cpp \
1531 src/settings/machine/UIMachineSettingsAudio.cpp \
1532 src/settings/machine/UIMachineSettingsDisplay.cpp \
1533 src/settings/machine/UIMachineSettingsGeneral.cpp \
1534 src/settings/machine/UIMachineSettingsInterface.cpp \
1535 src/settings/machine/UIMachineSettingsNetwork.cpp \
1536 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1537 src/settings/machine/UIMachineSettingsSF.cpp \
1538 src/settings/machine/UIMachineSettingsSerial.cpp \
1539 src/settings/machine/UIMachineSettingsStorage.cpp \
1540 src/settings/machine/UIMachineSettingsSystem.cpp \
1541 src/settings/machine/UIMachineSettingsUSB.cpp \
1542 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1543 src/widgets/UIFilePathSelector.cpp \
1544 src/widgets/UIFilmContainer.cpp \
1545 src/widgets/UIMediaComboBox.cpp \
1546 src/widgets/UIMediumSizeEditor.cpp \
1547 src/widgets/UIMenuBar.cpp \
1548 src/widgets/UIMenuBarEditorWindow.cpp \
1549 src/widgets/UIPopupBox.cpp \
1550 src/widgets/UIPopupPane.cpp \
1551 src/widgets/UIPopupPaneButtonPane.cpp \
1552 src/widgets/UIPopupPaneMessage.cpp \
1553 src/widgets/UIPopupPaneDetails.cpp \
1554 src/widgets/UIPopupStack.cpp \
1555 src/widgets/UIPopupStackViewport.cpp \
1556 src/widgets/UIPortForwardingTable.cpp \
1557 src/widgets/UIProgressDialog.cpp \
1558 src/widgets/UISearchLineEdit.cpp \
1559 src/widgets/UISlidingToolBar.cpp \
1560 src/widgets/UISpecialControls.cpp \
1561 src/widgets/UIStatusBarEditorWindow.cpp \
1562 src/widgets/UIToolBox.cpp \
1563 src/widgets/UIWarningPane.cpp \
1564 src/wizards/UINativeWizard.cpp \
1565 src/wizards/UINativeWizardPage.cpp \
1566 src/wizards/editors/UIUserNamePasswordEditor.cpp \
1567 src/wizards/editors/UIWizardDiskEditors.cpp \
1568 src/wizards/newvd/UIWizardNewVD.cpp \
1569 src/wizards/newvd/UIWizardNewVDFileTypePage.cpp \
1570 src/wizards/newvd/UIWizardNewVDVariantPage.cpp \
1571 src/wizards/newvd/UIWizardNewVDSizeLocationPage.cpp \
1572 src/wizards/newvd/UIWizardNewVDExpertPage.cpp
1573
1574ifdef VBOX_WITH_QHELP_VIEWER
1575 UICommon_SOURCES += \
1576 src/helpbrowser/UIHelpViewer.cpp \
1577 src/helpbrowser/UIHelpBrowserWidget.cpp
1578endif
1579
1580ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1581 UICommon_SOURCES += \
1582 src/networking/UIDownloader.cpp \
1583 src/networking/UIDownloaderExtensionPack.cpp \
1584 src/networking/UIDownloaderGuestAdditions.cpp \
1585 src/networking/UIDownloaderUserManual.cpp \
1586 src/networking/UINetworkCustomer.cpp \
1587 src/networking/UINetworkRequestManager.cpp \
1588 src/networking/UINetworkRequest.cpp \
1589 src/networking/UINetworkReply.cpp \
1590 src/networking/UIUpdateDefs.cpp \
1591 src/networking/UINewVersionChecker.cpp \
1592 src/networking/UIUpdateManager.cpp \
1593 src/settings/editors/UIUpdateSettingsEditor.cpp \
1594 src/settings/global/UIGlobalSettingsProxy.cpp \
1595 src/settings/global/UIGlobalSettingsUpdate.cpp
1596endif
1597
1598if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1599 UICommon_SOURCES += \
1600 src/platform/x11/VBoxUtils-x11.cpp \
1601 src/platform/x11/XKeyboard-new.cpp
1602endif
1603
1604UICommon_SOURCES.win += \
1605 src/platform/win/VBoxUtils-win.cpp \
1606 src/platform/win/WinKeyboard.cpp
1607
1608UICommon_SOURCES.darwin += \
1609 src/platform/darwin/CocoaEventHelper.mm \
1610 src/platform/darwin/DarwinKeyboard.cpp \
1611 src/platform/darwin/UICocoaApplication.mm \
1612 src/platform/darwin/UICocoaSpecialControls.mm \
1613 src/platform/darwin/UIWindowMenuManager.cpp \
1614 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1615 src/platform/darwin/VBoxUtils-darwin.cpp
1616
1617
1618#
1619# VirtualBox Manager Application
1620# Deployment.
1621#
1622if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1623 INSTALLS.linux += VirtualBox.qt.conf
1624 INSTALLS.solaris += VirtualBox.qt.conf
1625 VirtualBox.qt.conf_INST = $(INST_BIN)
1626 VirtualBox.qt.conf_MODE = 644
1627 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1628
1629$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1630 $(QUIET)$(RM) -f $@
1631 $(QUIET)$(APPEND) $@ "[Paths]"
1632 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1633endif
1634
1635
1636#
1637# VirtualBox Manager Application
1638# The Qt modules we're using.
1639# (The include directory and lib/framework for each module will be added by the Qt unit.)
1640#
1641VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1642ifdef VBOX_WITH_QT6
1643 VirtualBox_QT_MODULES += StateMachine
1644endif
1645ifndef VBOX_WITH_QT6
1646 VirtualBox_QT_MODULES.linux += X11Extras
1647 VirtualBox_QT_MODULES.solaris += X11Extras
1648 VirtualBox_QT_MODULES.freebsd += X11Extras
1649 VirtualBox_QT_MODULES.darwin += MacExtras
1650endif
1651VirtualBox_QT_MODULES.win += WinExtras
1652ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1653 VirtualBox_QT_MODULES += OpenGL
1654endif
1655
1656
1657#
1658# VirtualBox Virtual Machine Application
1659# The Qt modules we're using.
1660# (The include directory and lib/framework for each module will be added by the Qt unit.)
1661#
1662VirtualBoxVM_QT_MODULES = Core Gui Widgets PrintSupport
1663ifdef VBOX_WITH_QT6
1664 VirtualBoxVM_QT_MODULES += StateMachine
1665endif
1666ifndef VBOX_WITH_QT6
1667 VirtualBoxVM_QT_MODULES.linux += X11Extras
1668 VirtualBoxVM_QT_MODULES.solaris += X11Extras
1669 VirtualBoxVM_QT_MODULES.freebsd += X11Extras
1670 VirtualBoxVM_QT_MODULES.darwin += MacExtras
1671endif
1672VirtualBoxVM_QT_MODULES.win += WinExtras
1673ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1674 VirtualBoxVM_QT_MODULES += OpenGL
1675endif
1676
1677
1678#
1679# VirtualBox - GUI Global Shared Library.
1680# The Qt modules we're using.
1681# (The include directory and lib/framework for each module will be added by the Qt unit.)
1682#
1683UICommon_QT_MODULES = Core Gui Widgets
1684ifdef VBOX_WITH_QT6
1685 UICommon_QT_MODULES += StateMachine
1686endif
1687ifndef VBOX_WITH_QT6
1688 UICommon_QT_MODULES.linux += X11Extras
1689endif
1690UICommon_QT_MODULES.linux += DBus
1691UICommon_QT_MODULES.linux += Xml
1692ifndef VBOX_WITH_QT6
1693 UICommon_QT_MODULES.solaris += X11Extras
1694endif
1695UICommon_QT_MODULES.solaris += DBus
1696UICommon_QT_MODULES.solaris += Xml
1697ifndef VBOX_WITH_QT6
1698 UICommon_QT_MODULES.freebsd += X11Extras
1699endif
1700UICommon_QT_MODULES.freebsd += DBus
1701UICommon_QT_MODULES.freebsd += Xml
1702ifndef VBOX_WITH_QT6
1703 UICommon_QT_MODULES.darwin += MacExtras
1704endif
1705UICommon_QT_MODULES.win += WinExtras
1706
1707ifdef VBOX_WITH_QHELP_VIEWER
1708 UICommon_QT_MODULES += Help
1709endif
1710
1711ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1712 UICommon_QT_MODULES += OpenGL
1713endif
1714
1715
1716# Pull in the ui files
1717$(eval VirtualBox_SOURCES += $(FORMS))
1718$(eval VirtualBoxVM_SOURCES += $(FORMS))
1719$(eval UICommon_SOURCES += $(FORMS))
1720
1721
1722# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1723UICommon_SOURCES += VirtualBox1.qrc
1724VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1725UICommon_SOURCES += VirtualBox2.qrc
1726VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1727UICommon_SOURCES += VirtualBox1_x2.qrc
1728VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1729UICommon_SOURCES += VirtualBox2_x2.qrc
1730VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1731UICommon_SOURCES += VirtualBox1_x3.qrc
1732VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1733UICommon_SOURCES += VirtualBox2_x3.qrc
1734VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1735UICommon_SOURCES += VirtualBox1_x4.qrc
1736VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1737UICommon_SOURCES += VirtualBox2_x4.qrc
1738VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1739UICommon_SOURCES += VirtualBox_xml.qrc
1740VirtualBox_xml.qrc_RCCFLAGS = -name BASIC_XML
1741UICommon_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1742$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1743
1744
1745# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1746VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1747 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1748# Compress the translation units.
1749VirtualBox_LRCFLAGS = -silent
1750# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1751VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1752# All files which contain translatable strings.
1753VirtualBox_VBOX_ALL_NLS_SOURCES = $(VirtualBox_SOURCES) $(VirtualBoxVM_SOURCES) $(UICommon_SOURCES)
1754
1755
1756## @todo how to detect what tool is used?
1757## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1758# more generic -Wno-extra
1759# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1760ifdef VBOX_WITH_XPCOM
1761 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1762endif
1763
1764
1765#
1766# Build generated COM wrappers as part of app.
1767# VirtualBox - GUI Global Shared Library.
1768#
1769includedep $(PATH_TARGET)/UICommonComWrapperFiles.dep
1770UICommon_BLDDIRS += $(UICommon_0_OUTDIR)/include
1771UICommon_INTERMEDIATES += $(UICommon_0_OUTDIR)/include/COMWrappers
1772UICommon_SOURCES += $(UICommon_0_OUTDIR)/include/COMWrappers.cpp
1773UICommon_CLEAN += $(wildcard $(UICommon_0_OUTDIR)/include/*) $(PATH_TARGET)/UICommonComWrapperFiles.dep
1774
1775## @todo kmk doesn't remake optional outputs when they are missing...
1776$$(UICommon_0_OUTDIR)/include/COMWrappers \
1777+ $(PATH_TARGET)/UICommonComWrapperFiles.dep \
1778+| $(if-expr defined(UICommon_VBOX_COMWRAPPERS) \
1779, $(UICommon_VBOX_COMWRAPPERS) \
1780, $$(UICommon_0_OUTDIR)/include/COMEnums.h \
1781 $$(UICommon_0_OUTDIR)/include/COMWrappers.cpp \
1782): \
1783 $(VBOX_XIDL_FILE) \
1784 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1785 $(VBOX_FILESPLIT) \
1786 | $$(dir $$@)
1787 $(call MSG_GENERATE,UICommon,$<,$@)
1788 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/UICommonComWrapperFiles.dep"
1789 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1790 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1791 $(QUIET)$(VBOX_FILESPLIT) $@ $(UICommon_0_OUTDIR)/include \
1792 $(PATH_TARGET)/UICommonComWrapperFiles.dep UICommon_VBOX_COMWRAPPERS
1793 $(APPEND) "$@"
1794
1795# alias for generating the COM Wrappers file.
1796testwrappers:: $$(UICommon_0_OUTDIR)/include/COMWrappers
1797
1798
1799#
1800# Generate qrc file with branded icons.
1801#
1802VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1803VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1804$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1805 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1806 $(PATH_ROOT)/Config.kmk \
1807 | $$(dir $$@)
1808 $(call MSG_GENERATE,VirtualBox,$<,$@)
1809 $(QUIET)$(SED) \
1810 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1811 -e 's;@VBOX_ABOUT_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_X2_PNG);g' \
1812 -e 's;@VBOX_ABOUT_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_X3_PNG);g' \
1813 -e 's;@VBOX_ABOUT_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_X4_PNG);g' \
1814 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1815 -e 's;@VBOX_ABOUT_16PX_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X2_PNG);g' \
1816 -e 's;@VBOX_ABOUT_16PX_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X3_PNG);g' \
1817 -e 's;@VBOX_ABOUT_16PX_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X4_PNG);g' \
1818 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1819 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1820 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1821 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1822 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1823 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1824 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1825 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1826 --output $@ \
1827 $<
1828
1829
1830#
1831# Precompiled header
1832# win.amd64 without: kmk_time: 3m51.962058s
1833# win.amd64 with: kmk_time: 2m23.336252s
1834# linux.amd64 without: time: real 1m03.719s user 26m26.766s sys 2m03.526s
1835# linux.amd64 with: time: real 0m42.650s user 14m46.332s sys 1m28.463s
1836#
1837ifdef VBOX_WITH_PRECOMPILED_HEADERS
1838 if1of ($(KBUILD_TARGET),win)
1839 VirtualBox_USES += vccprecomp
1840 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1841
1842 VirtualBoxVM_USES += vccprecomp
1843 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1844
1845 UICommon_USES += vccprecomp
1846 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1847
1848 else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
1849 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
1850 UICommon_USES += gccprecomp
1851 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1852 #UICommon_CXXFLAGS.linux += -H
1853
1854 VirtualBox_USES += gccprecomp
1855 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1856 #VirtualBox_CXXFLAGS.linux += -H
1857
1858 VirtualBoxVM_USES += gccprecomp
1859 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1860 #VirtualBoxVM_CXXFLAGS.linux += -H
1861
1862 # GCC precompiled headers seems to work more efficiently when #pragma once is involved.
1863 # So, we've cooked our own camel cased qt wrapper headers with #pragma once inside.
1864 VBOX_GUI_INC_DIRS <= precomptricks
1865 endif
1866 endif
1867endif
1868
1869ifeq ($(KBUILD_TARGET),win)
1870#
1871# On Windows we'll have to generate/edit part of the resource file.
1872# The IDI_ICON1 name is Qt specific.
1873#
1874src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1875src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1876src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1877src/platform/win/VirtualBoxVM.rc_INCS = $(VirtualBox_0_OUTDIR)
1878src/platform/win/VirtualBoxVM.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1879src/platform/win/VirtualBoxVM.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1880
1881$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1882 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1883
1884endif # win
1885
1886
1887#
1888# Unset everything that was loaded from VBoxUI.pro.
1889#
1890FORMS :=
1891TRANSLATIONS :=
1892
1893
1894
1895ifeq ($(KBUILD_TARGET),win)
1896#
1897# Install the visual manifest and associated PNGs.
1898#
1899INSTALLS.win += VirtualBoxManifest
1900VirtualBoxManifest_INST = $(INST_VIRTUALBOX)
1901VirtualBoxManifest_DEFPATH = $(PATH_ROOT)/src/VBox/Artwork/$(if-expr defined(VBOX_OSE),OSE,NonOSE)/
1902VirtualBoxManifest_SOURCES := \
1903 virtualbox-70px.png=>VirtualBox_70px.png \
1904 virtualbox-150px.png=>VirtualBox_150px.png \
1905 $(PATH_SUB_CURRENT)/src/platform/win/VirtualBox.VisualElementsManifest.xml
1906
1907endif
1908
1909
1910ifeq ($(KBUILD_TARGET),darwin)
1911#
1912# Create directories for each approved language or the application
1913# menu won't be translated.
1914#
1915INSTALLS += VirtualBox.lproj
1916VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1917VirtualBox.lproj_MODE = 755
1918VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1919
1920#
1921# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1922# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1923#
1924INSTALLS += VirtualBox.app
1925VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1926VirtualBox.app_MODE = 644
1927VirtualBox.app_SOURCES = \
1928 src/platform/darwin/PkgInfo \
1929 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1930 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1931 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1932 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1933 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1934 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1935 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1936 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1937 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1938 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1939 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1940
1941 # Qt5 requires qt.conf on Mac OS X:
1942 VirtualBox.app_SOURCES += \
1943 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1944
1945 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1946 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1947 $(QUIET)$(RM) -f $@
1948 $(QUIET)$(SED) \
1949 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1950 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1951 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1952 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1953 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1954 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1955 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1956 $< > $@
1957
1958 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1959 $(QUIET)$(RM) -f $@
1960 $(QUIET)$(APPEND) $@ "[Paths]"
1961 ifdef VBOX_WITH_HARDENING # Not necessary and will screwup copying files elsewhere to test.
1962 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1963 endif
1964
1965 INSTALLS += VirtualBoxVM.app
1966 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1967 VirtualBoxVM.app_MODE = 644
1968 VirtualBoxVM.app_SOURCES = \
1969 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1970 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1971 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1972
1973 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1974 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1975 $(QUIET)$(RM) -f $@
1976 $(QUIET)$(SED) \
1977 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1978 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1979 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1980 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1981 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1982 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1983 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1984 --output $@ $<
1985
1986 PROGRAMS += vmstarter
1987 vmstarter_TEMPLATE = VBOXR3EXE
1988 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1989 vmstarter_LDFLAGS += -framework AppKit
1990 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1991 vmstarter_INST = $(INST_BIN)vmstarter
1992
1993 INSTALLS += vmstarter.app
1994 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1995 vmstarter.app_MODE = 644
1996 vmstarter.app_SOURCES = \
1997 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1998 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1999 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
2000 vmstarter.app_SYMLINKS = \
2001 MacOS=>../../../MacOS \
2002
2003 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2004 $(call MSG_GENERATE,vmstarter.app,$<,$@)
2005 $(QUIET)$(RM) -f $@
2006 $(QUIET)$(SED) \
2007 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2008 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2009 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2010 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2011 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2012 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2013 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2014 --output $@ $<
2015endif # darwin
2016
2017
2018#
2019# Testcase for the darwin keyboard routines.
2020#
2021ifdef VBOX_WITH_TESTCASES
2022 PROGRAMS.darwin += tstDarwinKeyboard
2023 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
2024 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
2025 tstDarwinKeyboard_INCS = \
2026 $(VBOX_GUI_INC_DIRS)
2027 tstDarwinKeyboard_SOURCES = \
2028 src/platform/darwin/tstDarwinKeyboard.cpp \
2029 src/platform/darwin/DarwinKeyboard.cpp \
2030 src/platform/darwin/CocoaEventHelper.mm
2031 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
2032 tstDarwinKeyboard_LIBS = \
2033 $(LIB_RUNTIME)
2034 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
2035endif
2036
2037
2038#
2039# Doxygen documentation.
2040#
2041QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
2042BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
2043OTHER_CLEAN += \
2044 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
2045 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
2046 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2047
2048QTGUI_DOXYFILE_INPUT_DIRS := \
2049 $(addprefix $(PATH_SUB_CURRENT)/src/, \
2050 converter \
2051 extensions \
2052 extensions/graphics \
2053 extradata \
2054 globals \
2055 manager \
2056 manager/chooser \
2057 manager/details \
2058 manager/tools \
2059 manager \
2060 manager \
2061 medium \
2062 net \
2063 objects \
2064 platform \
2065 platform/darwin \
2066 platform/os2 \
2067 platform/win \
2068 platform/x11 \
2069 runtime \
2070 runtime/fullscreen \
2071 runtime/information \
2072 runtime/guestctrl \
2073 runtime/normal \
2074 runtime/scale \
2075 runtime/seamless \
2076 selector \
2077 selector/graphics \
2078 selector/graphics/chooser \
2079 selector/graphics/details \
2080 settings \
2081 settings/global \
2082 settings/machine \
2083 widgets \
2084 widgets/graphics \
2085 wizards \
2086 wizards/addcloudvm \
2087 wizards/clonevd \
2088 wizards/clonevm \
2089 wizards/exportappliance \
2090 wizards/importappliance \
2091 wizards/newcloudvm \
2092 wizards/newvd \
2093 wizards/newvm)
2094
2095QTGUI_DOXYFILE_INPUT := \
2096 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
2097 $(sort $(wildcard $(dir)/*.h)) \
2098 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
2099
2100includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
2101
2102# Generate the Doxyfile
2103$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
2104 $(PATH_SUB_CURRENT)/Doxyfile \
2105 $(PATH_SUB_CURRENT)/Makefile.kmk \
2106 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
2107 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
2108 | $$(dir $$@)
2109 $(QUIET)$(RM) -f $@ $@.tmp $@.dep
2110 $(QUIET)$(CP) -f $< $@.tmp
2111 $(QUIET)$(APPEND) $@.tmp
2112 $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
2113 $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
2114 $(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include ."
2115 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
2116 $(QUIET)$(APPEND) $@.tmp
2117 $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
2118 $(QUIET)$(APPEND) $@.tmp
2119 $(QUIET)$(MV) -f $@.tmp $@
2120 @$(APPEND) $@.dep "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
2121 @$(APPEND) $@.dep "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
2122
2123# Do the actual job.
2124$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
2125 | $(QTGUI_DOXYFILE_OUTPUT)/
2126 $(call MSG_L1,doxygen qtgui)
2127 $(QUIET)$(RM) -f $@
2128 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
2129 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
2130 $(APPEND) $@
2131
2132# aliases
2133docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2134if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2135docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2136endif
2137
2138
2139# Commit the magic.
2140# (note: before custom rules that make usage of generated variables!).
2141include $(FILE_KBUILD_SUB_FOOTER)
2142
2143
2144#
2145# Update all known NLS translation (.ts) files in the nls/ subdirectory.
2146#
2147# NOTE: This target is intended to be run only by the GUI maintainer shortly
2148# before a new product release. VirtualBox_xx_YY.ts is a template for new
2149# languages and should never be actually translated or installed.
2150#
2151# Use the checknls target for checking again common mistakes done by the
2152# translators.
2153#
2154# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
2155# lupdate call
2156#
2157#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
2158checknls::
2159 # Check for missing :/ in image paths
2160 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
2161
2162updatenls:: makeallnls nls/VirtualBox_en.ts
2163
2164makeallnls:: \
2165 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2166 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2167 $(call MSG_L1,lupdate all languages (nls/*.ts))
2168 $(QUIET)$(TOOL_QT5_LUPDATE) \
2169 $^ \
2170 -ts \
2171 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
2172 nls/VirtualBox_xx_YY.ts
2173
2174# Create the English translation file. This is something special cause it will
2175# contain the plural forms only.
2176nls/VirtualBox_en.ts: \
2177 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2178 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2179 $(call MSG_L1,lupdate $@)
2180 $(QUIET)$(TOOL_QT5_LUPDATE) \
2181 $^ \
2182 -ts \
2183 $@
2184 $(QUIET)$(SED) -n -i -e \
2185 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
2186 $@
2187
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