VirtualBox

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

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

FE/Qt/Ds: bugref:6899: Machine settings: Small cleanup for Audio page; Renaming UIMachineAudioFeaturesEditor to UIAudioFeaturesEditor.

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