VirtualBox

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

Last change on this file since 96318 was 95945, checked in by vboxsync, 2 years ago

FE/Qt/Ds: Rename UIMachineDescriptionEditor => UIDescriptionEditor for NLS context consistency.

  • 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 95945 2022-07-29 14:50:47Z 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/QITableWidget.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/UIAccelerationFeaturesEditor.h \
897 src/settings/editors/UIAudioControllerEditor.h \
898 src/settings/editors/UIAudioFeaturesEditor.h \
899 src/settings/editors/UIAudioHostDriverEditor.h \
900 src/settings/editors/UIAudioSettingsEditor.h \
901 src/settings/editors/UIAutoCaptureKeyboardEditor.h \
902 src/settings/editors/UIBaseMemoryEditor.h \
903 src/settings/editors/UIBootOrderEditor.h \
904 src/settings/editors/UIChipsetEditor.h \
905 src/settings/editors/UIColorThemeEditor.h \
906 src/settings/editors/UIDefaultMachineFolderEditor.h \
907 src/settings/editors/UIDescriptionEditor.h \
908 src/settings/editors/UIDiskEncryptionSettingsEditor.h \
909 src/settings/editors/UIDisplayFeaturesEditor.h \
910 src/settings/editors/UIDisplayScreenFeaturesEditor.h \
911 src/settings/editors/UIDragAndDropEditor.h \
912 src/settings/editors/UIExecutionCapEditor.h \
913 src/settings/editors/UIGraphicsControllerEditor.h \
914 src/settings/editors/UIHostComboEditor.h \
915 src/settings/editors/UIHotKeyEditor.h \
916 src/settings/editors/UILanguageSettingsEditor.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/UIProxyFeaturesEditor.h \
929 src/settings/editors/UIRecordingSettingsEditor.h \
930 src/settings/editors/UIScaleFactorEditor.h \
931 src/settings/editors/UISharedClipboardEditor.h \
932 src/settings/editors/UISharedFolderDetailsEditor.h \
933 src/settings/editors/UISharedFoldersEditor.h \
934 src/settings/editors/UIShortcutConfigurationEditor.h \
935 src/settings/editors/UISnapshotFolderEditor.h \
936 src/settings/editors/UIStorageSettingsEditor.h \
937 src/settings/editors/UIUSBControllerEditor.h \
938 src/settings/editors/UIUSBFilterDetailsEditor.h \
939 src/settings/editors/UIUSBFiltersEditor.h \
940 src/settings/editors/UIUSBSettingsEditor.h \
941 src/settings/editors/UIVideoMemoryEditor.h \
942 src/settings/editors/UIVirtualCPUEditor.h \
943 src/settings/editors/UIVisualStateEditor.h \
944 src/settings/editors/UIVRDEAuthLibraryEditor.h \
945 src/settings/editors/UIVRDESettingsEditor.h \
946 src/settings/global/UIGlobalSettingsGeneral.h \
947 src/settings/global/UIGlobalSettingsInput.h \
948 src/settings/global/UIGlobalSettingsLanguage.h \
949 src/settings/global/UIGlobalSettingsDisplay.h \
950 src/settings/global/UIGlobalSettingsInterface.h \
951 src/settings/machine/UIMachineSettingsAudio.h \
952 src/settings/machine/UIMachineSettingsDisplay.h \
953 src/settings/machine/UIMachineSettingsGeneral.h \
954 src/settings/machine/UIMachineSettingsInterface.h \
955 src/settings/machine/UIMachineSettingsNetwork.h \
956 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
957 src/settings/machine/UIMachineSettingsSF.h \
958 src/settings/machine/UIMachineSettingsSerial.h \
959 src/settings/machine/UIMachineSettingsStorage.h \
960 src/settings/machine/UIMachineSettingsSystem.h \
961 src/settings/machine/UIMachineSettingsUSB.h \
962 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
963 src/widgets/UIFilePathSelector.h \
964 src/widgets/UIFilmContainer.h \
965 src/widgets/UIMediaComboBox.h \
966 src/widgets/UIMediumSizeEditor.h \
967 src/widgets/UIMenuBar.h \
968 src/widgets/UIMenuBarEditorWindow.h \
969 src/widgets/UIPopupBox.h \
970 src/widgets/UIPopupPane.h \
971 src/widgets/UIPopupPaneButtonPane.h \
972 src/widgets/UIPopupPaneMessage.h \
973 src/widgets/UIPopupPaneDetails.h \
974 src/widgets/UIPopupStack.h \
975 src/widgets/UIPopupStackViewport.h \
976 src/widgets/UIPortForwardingTable.h \
977 src/widgets/UIProgressDialog.h \
978 src/widgets/UISlidingToolBar.h \
979 src/widgets/UISpecialControls.h \
980 src/widgets/UIStatusBarEditorWindow.h \
981 src/widgets/UISearchLineEdit.h \
982 src/widgets/UIToolBox.h \
983 src/widgets/UIWarningPane.h \
984 src/wizards/UINativeWizard.h \
985 src/wizards/UINativeWizardPage.h \
986 src/wizards/editors/UIUserNamePasswordEditor.h \
987 src/wizards/editors/UIWizardDiskEditors.h \
988 src/wizards/newvd/UIWizardNewVD.h \
989 src/wizards/newvd/UIWizardNewVDFileTypePage.h \
990 src/wizards/newvd/UIWizardNewVDVariantPage.h \
991 src/wizards/newvd/UIWizardNewVDSizeLocationPage.h \
992 src/wizards/newvd/UIWizardNewVDExpertPage.h
993
994ifdef VBOX_WITH_QHELP_VIEWER
995 UICommon_QT_MOCHDRS += \
996 src/helpbrowser/UIHelpViewer.h \
997 src/helpbrowser/UIHelpBrowserWidget.h
998endif
999
1000ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1001 UICommon_QT_MOCHDRS += \
1002 src/networking/UIDownloader.h \
1003 src/networking/UIDownloaderExtensionPack.h \
1004 src/networking/UIDownloaderGuestAdditions.h \
1005 src/networking/UIDownloaderUserManual.h \
1006 src/networking/UINetworkCustomer.h \
1007 src/networking/UINetworkRequestManager.h \
1008 src/networking/UINetworkRequest.h \
1009 src/networking/UINetworkReply.h \
1010 src/networking/UINewVersionChecker.h \
1011 src/networking/UIUpdateManager.h \
1012 src/settings/editors/UIUpdateSettingsEditor.h \
1013 src/settings/global/UIGlobalSettingsProxy.h \
1014 src/settings/global/UIGlobalSettingsUpdate.h
1015endif
1016
1017UICommon_QT_MOCHDRS.darwin += \
1018 src/platform/darwin/UICocoaSpecialControls.h \
1019 src/platform/darwin/UIWindowMenuManager.h
1020
1021
1022#
1023# VirtualBox Manager Application
1024# Sources containing local definitions of classes that use the Q_OBJECT macro.
1025#
1026VirtualBox_QT_MOCSRCS = \
1027 src/cloud/consolemanager/UICloudConsoleManager.cpp \
1028 src/cloud/profilemanager/UICloudProfileManager.cpp \
1029 src/extensionpackmanager/UIExtensionPackManager.cpp \
1030 src/manager/UIVirtualBoxManager.cpp \
1031 src/manager/UIVirtualMachineItemCloud.cpp \
1032 src/manager/UIWelcomePane.cpp \
1033 src/manager/chooser/UIChooserAbstractModel.cpp \
1034 src/activity/overview/UIVMActivityOverviewWidget.cpp \
1035 src/networkmanager/UINetworkManager.cpp \
1036 src/snapshots/UISnapshotDetailsWidget.cpp \
1037 src/snapshots/UISnapshotPane.cpp \
1038 src/widgets/UIApplianceEditorWidget.cpp \
1039 src/widgets/UIFormEditorWidget.cpp \
1040 src/widgets/UIMenuToolBar.cpp \
1041 src/widgets/UITabBar.cpp \
1042 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1043 src/wizards/importappliance/UIWizardImportApp.cpp \
1044 src/wizards/newvm/UIWizardNewVMSummaryPage.cpp
1045
1046#
1047# VirtualBox Virtual Machine Application
1048# Sources containing local definitions of classes that use the Q_OBJECT macro.
1049#
1050VirtualBoxVM_QT_MOCSRCS = \
1051 src/runtime/UIConsoleEventHandler.cpp \
1052 src/runtime/UIFrameBuffer.cpp \
1053 src/runtime/UIIndicatorsPool.cpp \
1054 src/runtime/information/UIInformationRuntime.cpp \
1055 src/guestctrl/UIGuestProcessControlWidget.cpp \
1056 src/softkeyboard/UISoftKeyboard.cpp \
1057 src/widgets/UIMiniToolBar.cpp
1058
1059
1060#
1061# VirtualBox - GUI Global Shared Library.
1062# Sources containing local definitions of classes that use the Q_OBJECT macro.
1063#
1064UICommon_QT_MOCSRCS = \
1065 src/extensions/QIAdvancedSlider.cpp \
1066 src/extensions/QIArrowSplitter.cpp \
1067 src/extensions/QISplitter.cpp \
1068 src/extradata/UIExtraDataManager.cpp \
1069 src/globals/UIActionPool.cpp \
1070 src/globals/UIActionPoolManager.cpp \
1071 src/globals/UIActionPoolRuntime.cpp \
1072 src/globals/UIMainEventListener.cpp \
1073 src/globals/UIThreadPool.cpp \
1074 src/globals/UIVirtualBoxEventHandler.cpp \
1075 src/globals/UIVirtualBoxClientEventHandler.cpp \
1076 src/guestctrl/UIFileManager.cpp \
1077 src/guestctrl/UIFileManagerLogPanel.cpp \
1078 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1079 src/guestctrl/UIFileManagerTable.cpp \
1080 src/guestctrl/UIFileManagerGuestTable.cpp \
1081 src/guestctrl/UIFileManagerHostTable.cpp \
1082 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1083 src/logviewer/UIVMLogViewerTextEdit.cpp \
1084 src/logviewer/UIVMLogViewerWidget.cpp \
1085 src/activity/vmactivity/UIVMActivityMonitor.cpp \
1086 src/medium/UIMediumEnumerator.cpp \
1087 src/medium/viso/UIVisoContentBrowser.cpp \
1088 src/medium/viso/UIVisoHostBrowser.cpp \
1089 src/medium/viso/UIVisoBrowserBase.cpp \
1090 src/notificationcenter/UINotificationCenter.cpp \
1091 src/settings/editors/UIBaseMemoryEditor.cpp \
1092 src/settings/editors/UIBootOrderEditor.cpp \
1093 src/settings/editors/UIHotKeyEditor.cpp \
1094 src/settings/editors/UILanguageSettingsEditor.cpp \
1095 src/settings/editors/UISharedFoldersEditor.cpp \
1096 src/settings/editors/UIShortcutConfigurationEditor.cpp \
1097 src/settings/editors/UIStorageSettingsEditor.cpp \
1098 src/settings/editors/UIUSBFiltersEditor.cpp \
1099 src/settings/machine/UIMachineSettingsNetwork.cpp \
1100 src/settings/machine/UIMachineSettingsSerial.cpp \
1101 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1102 src/widgets/UIFilmContainer.cpp \
1103 src/widgets/UIPortForwardingTable.cpp \
1104 src/widgets/UIStatusBarEditorWindow.cpp \
1105 src/widgets/UIToolBox.cpp
1106
1107ifdef VBOX_WITH_QHELP_VIEWER
1108 UICommon_QT_MOCSRCS += \
1109 src/helpbrowser/UIHelpViewer.cpp \
1110 src/helpbrowser/UIHelpBrowserWidget.cpp
1111endif
1112
1113ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1114 UICommon_QT_MOCSRCS += \
1115 src/networking/UINetworkReply.cpp \
1116 src/networking/UIUpdateManager.cpp
1117endif
1118
1119ifdef VBOX_WITH_XPCOM
1120 UICommon_QT_MOCSRCS += \
1121 src/globals/COMDefs.cpp
1122endif
1123
1124UICommon_QT_MOCSRCS.darwin += \
1125 src/platform/darwin/UIWindowMenuManager.cpp
1126
1127ifndef VBOX_GUI_WITH_CUSTOMIZATIONS1
1128 UICommon_QT_MOCSRCS.linux += \
1129 src/globals/UIDesktopWidgetWatchdog.cpp
1130 UICommon_QT_MOCSRCS.solaris += \
1131 src/globals/UIDesktopWidgetWatchdog.cpp
1132 UICommon_QT_MOCSRCS.freebsd += \
1133 src/globals/UIDesktopWidgetWatchdog.cpp
1134endif
1135
1136
1137#
1138# VirtualBox Manager Application
1139# Sources.
1140#
1141VirtualBox_SOURCES = \
1142 src/main.cpp \
1143 src/cloud/consolemanager/UICloudConsoleDetailsWidget.cpp \
1144 src/cloud/consolemanager/UICloudConsoleManager.cpp \
1145 src/cloud/machinesettings/UICloudMachineSettingsDialog.cpp \
1146 src/cloud/machinesettings/UICloudMachineSettingsDialogPage.cpp \
1147 src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp \
1148 src/cloud/profilemanager/UICloudProfileManager.cpp \
1149 src/extensionpackmanager/UIExtensionPackManager.cpp \
1150 src/globals/UIStarter.cpp \
1151 src/manager/UICloudEntityKey.cpp \
1152 src/manager/UIErrorPane.cpp \
1153 src/manager/UIProgressTaskReadCloudMachineList.cpp \
1154 src/manager/UITaskCloudGetSettingsForm.cpp \
1155 src/manager/UIToolPaneGlobal.cpp \
1156 src/manager/UIToolPaneMachine.cpp \
1157 src/manager/UIVirtualBoxManager.cpp \
1158 src/manager/UIVirtualBoxManagerWidget.cpp \
1159 src/manager/UIVirtualMachineItem.cpp \
1160 src/manager/UIVirtualMachineItemCloud.cpp \
1161 src/manager/UIVirtualMachineItemLocal.cpp \
1162 src/manager/UIWelcomePane.cpp \
1163 src/manager/chooser/UIChooser.cpp \
1164 src/manager/chooser/UIChooserAbstractModel.cpp \
1165 src/manager/chooser/UIChooserModel.cpp \
1166 src/manager/chooser/UIChooserView.cpp \
1167 src/manager/chooser/UIChooserHandlerMouse.cpp \
1168 src/manager/chooser/UIChooserHandlerKeyboard.cpp \
1169 src/manager/chooser/UIChooserItem.cpp \
1170 src/manager/chooser/UIChooserItemGroup.cpp \
1171 src/manager/chooser/UIChooserItemGlobal.cpp \
1172 src/manager/chooser/UIChooserItemMachine.cpp \
1173 src/manager/chooser/UIChooserNode.cpp \
1174 src/manager/chooser/UIChooserNodeGroup.cpp \
1175 src/manager/chooser/UIChooserNodeGlobal.cpp \
1176 src/manager/chooser/UIChooserNodeMachine.cpp \
1177 src/manager/chooser/UIChooserSearchWidget.cpp \
1178 src/manager/details/UIDetails.cpp \
1179 src/manager/details/UIDetailsContextMenu.cpp \
1180 src/manager/details/UIDetailsModel.cpp \
1181 src/manager/details/UIDetailsView.cpp \
1182 src/manager/details/UIDetailsItem.cpp \
1183 src/manager/details/UIDetailsGroup.cpp \
1184 src/manager/details/UIDetailsSet.cpp \
1185 src/manager/details/UIDetailsElement.cpp \
1186 src/manager/details/UIDetailsElements.cpp \
1187 src/manager/details/UIMachinePreview.cpp \
1188 src/manager/tools/UITools.cpp \
1189 src/manager/tools/UIToolsModel.cpp \
1190 src/manager/tools/UIToolsView.cpp \
1191 src/manager/tools/UIToolsHandlerMouse.cpp \
1192 src/manager/tools/UIToolsHandlerKeyboard.cpp \
1193 src/manager/tools/UIToolsItem.cpp \
1194 src/medium/UIMediumDetailsWidget.cpp \
1195 src/medium/UIMediumManager.cpp \
1196 src/activity/overview/UIVMActivityOverviewWidget.cpp \
1197 src/activity/overview/UIVMActivityToolWidget.cpp \
1198 src/networkmanager/UIDetailsWidgetCloudNetwork.cpp \
1199 src/networkmanager/UIDetailsWidgetHostNetwork.cpp \
1200 src/networkmanager/UIDetailsWidgetNATNetwork.cpp \
1201 src/networkmanager/UINetworkManager.cpp \
1202 src/networkmanager/UINetworkManagerUtils.cpp \
1203 src/snapshots/UISnapshotDetailsWidget.cpp \
1204 src/snapshots/UISnapshotPane.cpp \
1205 src/widgets/UIApplianceEditorWidget.cpp \
1206 src/widgets/UIApplianceExportEditorWidget.cpp \
1207 src/widgets/UIApplianceImportEditorWidget.cpp \
1208 src/widgets/UIEmptyFilePathSelector.cpp \
1209 src/widgets/UIFormEditorWidget.cpp \
1210 src/widgets/UIGuestOSTypeSelectionButton.cpp \
1211 src/widgets/UILineTextEdit.cpp \
1212 src/widgets/UISlidingAnimation.cpp \
1213 src/widgets/UISlidingWidget.cpp \
1214 src/widgets/UITabBar.cpp \
1215 src/widgets/UIMenuToolBar.cpp \
1216 src/widgets/graphics/UIGraphicsButton.cpp \
1217 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1218 src/widgets/graphics/UIGraphicsScrollArea.cpp \
1219 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1220 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1221 src/widgets/graphics/UIGraphicsToolBar.cpp \
1222 src/widgets/graphics/UIGraphicsTextPane.cpp \
1223 src/wizards/addcloudvm/UIWizardAddCloudVM.cpp \
1224 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp \
1225 src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp \
1226 src/wizards/editors/UIHostnameDomainNameEditor.cpp \
1227 src/wizards/editors/UIWizardCloneVMEditors.cpp \
1228 src/wizards/editors/UIWizardNewVMEditors.cpp \
1229 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \
1230 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \
1231 src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp \
1232 src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp \
1233 src/wizards/newvm/UIWizardNewVM.cpp \
1234 src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp \
1235 src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp \
1236 src/wizards/newvm/UIWizardNewVMHardwarePage.cpp \
1237 src/wizards/newvm/UIWizardNewVMDiskPage.cpp \
1238 src/wizards/newvm/UIWizardNewVMExpertPage.cpp \
1239 src/wizards/newvm/UIWizardNewVMSummaryPage.cpp \
1240 src/wizards/clonevm/UIWizardCloneVM.cpp \
1241 src/wizards/clonevm/UIWizardCloneVMNamePathPage.cpp \
1242 src/wizards/clonevm/UIWizardCloneVMTypePage.cpp \
1243 src/wizards/clonevm/UIWizardCloneVMModePage.cpp \
1244 src/wizards/clonevm/UIWizardCloneVMExpertPage.cpp \
1245 src/wizards/clonevd/UIWizardCloneVD.cpp \
1246 src/wizards/clonevd/UIWizardCloneVDFormatPage.cpp \
1247 src/wizards/clonevd/UIWizardCloneVDVariantPage.cpp \
1248 src/wizards/clonevd/UIWizardCloneVDPathSizePage.cpp \
1249 src/wizards/clonevd/UIWizardCloneVDExpertPage.cpp \
1250 src/wizards/exportappliance/UIWizardExportApp.cpp \
1251 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1252 src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp \
1253 src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp \
1254 src/wizards/exportappliance/UIWizardExportAppPageVMs.cpp \
1255 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.cpp \
1256 src/wizards/importappliance/UIWizardImportApp.cpp \
1257 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
1258 src/wizards/importappliance/UIWizardImportAppPageSettings.cpp \
1259 src/wizards/importappliance/UIWizardImportAppPageSource.cpp
1260
1261VirtualBox_SOURCES.darwin += \
1262 src/platform/darwin/UIDesktopServices_darwin.cpp \
1263 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1264
1265if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1266 VirtualBox_SOURCES += \
1267 src/platform/x11/UIDesktopServices_x11.cpp
1268endif
1269
1270VirtualBox_SOURCES.win += \
1271 src/platform/win/UIDesktopServices_win.cpp
1272
1273$(call VBOX_SET_VER_INFO_EXE,VirtualBox,VirtualBox Manager,$(VBOX_WINDOWS_ICON_FILE),VirtualBoxGUI)
1274
1275
1276#
1277# VirtualBox Virtual Machine Application
1278# Sources.
1279#
1280VirtualBoxVM_SOURCES = \
1281 src/main.cpp \
1282 src/globals/UIStarter.cpp \
1283 src/runtime/UIBootFailureDialog.cpp \
1284 src/runtime/UIConsoleEventHandler.cpp \
1285 src/runtime/UIFrameBuffer.cpp \
1286 src/runtime/UIIndicatorsPool.cpp \
1287 src/runtime/UIKeyboardHandler.cpp \
1288 src/runtime/UIMachine.cpp \
1289 src/runtime/UIMachineLogic.cpp \
1290 src/runtime/UIMachineView.cpp \
1291 src/runtime/UIMachineWindow.cpp \
1292 src/runtime/UIMouseHandler.cpp \
1293 src/runtime/UIMultiScreenLayout.cpp \
1294 src/runtime/UISession.cpp \
1295 src/runtime/UIVMCloseDialog.cpp \
1296 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1297 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1298 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1299 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1300 src/runtime/information/UIInformationConfiguration.cpp \
1301 src/runtime/information/UIVMInformationDialog.cpp \
1302 src/runtime/information/UIInformationRuntime.cpp \
1303 src/guestctrl/UIFileManagerDialog.cpp \
1304 src/guestctrl/UIGuestControlConsole.cpp \
1305 src/guestctrl/UIGuestControlInterface.cpp \
1306 src/guestctrl/UIGuestControlTreeItem.cpp \
1307 src/guestctrl/UIGuestProcessControlWidget.cpp \
1308 src/guestctrl/UIGuestProcessControlDialog.cpp \
1309 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1310 src/runtime/normal/UIMachineLogicNormal.cpp \
1311 src/runtime/normal/UIMachineViewNormal.cpp \
1312 src/runtime/normal/UIMachineWindowNormal.cpp \
1313 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1314 src/runtime/scale/UIMachineLogicScale.cpp \
1315 src/runtime/scale/UIMachineViewScale.cpp \
1316 src/runtime/scale/UIMachineWindowScale.cpp \
1317 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1318 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1319 src/runtime/seamless/UIMachineViewSeamless.cpp \
1320 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1321 src/softkeyboard/UISoftKeyboard.cpp \
1322 src/widgets/UIMiniToolBar.cpp
1323
1324ifdef VBOX_WITH_DRAG_AND_DROP
1325 VirtualBoxVM_SOURCES += \
1326 src/runtime/UIDnDHandler.cpp
1327 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1328 VirtualBoxVM_SOURCES += \
1329 src/runtime/UIDnDMIMEData.cpp
1330 VirtualBoxVM_SOURCES.win += \
1331 src/runtime/UIDnDDropSource_win.cpp \
1332 src/runtime/UIDnDDataObject_win.cpp \
1333 src/runtime/UIDnDEnumFormat_win.cpp
1334 endif
1335endif
1336
1337VirtualBoxVM_SOURCES.darwin += \
1338 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1339 src/platform/darwin/UICocoaDockIconPreview.mm
1340
1341ifdef VBOX_WITH_HARDENING
1342$(call VBOX_SET_VER_INFO_DLL,VirtualBoxVM,VirtualBox Virtual Machine (dll),$(VBOX_WINDOWS_ICON_FILE))
1343else
1344$(call VBOX_SET_VER_INFO_EXE,VirtualBoxVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
1345endif
1346
1347
1348#
1349# VirtualBox - GUI Global Shared Library.
1350# Sources.
1351#
1352UICommon_SOURCES = \
1353 src/VBoxAboutDlg.cpp \
1354 src/VBoxLicenseViewer.cpp \
1355 src/UITakeSnapshotDialog.cpp \
1356 src/extensions/QIAdvancedSlider.cpp \
1357 src/extensions/QIArrowButtonPress.cpp \
1358 src/extensions/QIArrowButtonSwitch.cpp \
1359 src/extensions/QIArrowSplitter.cpp \
1360 src/extensions/QIComboBox.cpp \
1361 src/extensions/QIDialog.cpp \
1362 src/extensions/QIDialogButtonBox.cpp \
1363 src/extensions/QIDialogContainer.cpp \
1364 src/extensions/QIFileDialog.cpp \
1365 src/extensions/QIFlowLayout.cpp \
1366 src/extensions/QIInputDialog.cpp \
1367 src/extensions/QILabel.cpp \
1368 src/extensions/QILabelSeparator.cpp \
1369 src/extensions/QILineEdit.cpp \
1370 src/extensions/QIMainDialog.cpp \
1371 src/extensions/QIManagerDialog.cpp \
1372 src/extensions/QIMenu.cpp \
1373 src/extensions/QIMessageBox.cpp \
1374 src/extensions/QIProcess.cpp \
1375 src/extensions/QIRichTextLabel.cpp \
1376 src/extensions/QIRichToolButton.cpp \
1377 src/extensions/QISplitter.cpp \
1378 src/extensions/QIStatusBar.cpp \
1379 src/extensions/QIStatusBarIndicator.cpp \
1380 src/extensions/QIStyledItemDelegate.cpp \
1381 src/extensions/QITableView.cpp \
1382 src/extensions/QITableWidget.cpp \
1383 src/extensions/QITabWidget.cpp \
1384 src/extensions/QIToolBar.cpp \
1385 src/extensions/QIToolButton.cpp \
1386 src/extensions/QITreeView.cpp \
1387 src/extensions/QITreeWidget.cpp \
1388 src/extensions/QIWidgetValidator.cpp \
1389 src/extensions/graphics/QIGraphicsView.cpp \
1390 src/extensions/graphics/QIGraphicsWidget.cpp \
1391 src/extradata/UIExtraDataDefs.cpp \
1392 src/extradata/UIExtraDataManager.cpp \
1393 src/converter/UIConverter.cpp \
1394 src/converter/UIConverterBackendCOM.cpp \
1395 src/converter/UIConverterBackendGlobal.cpp \
1396 src/globals/COMDefs.cpp \
1397 src/globals/UIActionPool.cpp \
1398 src/globals/UIActionPoolManager.cpp \
1399 src/globals/UIActionPoolRuntime.cpp \
1400 src/globals/UIAnimationFramework.cpp \
1401 src/globals/UICloudNetworkingStuff.cpp \
1402 src/globals/UICommon.cpp \
1403 src/globals/UICursor.cpp \
1404 src/globals/UICustomFileSystemModel.cpp \
1405 src/globals/UIDefs.cpp \
1406 src/globals/UIDesktopWidgetWatchdog.cpp \
1407 src/globals/UIDetailsGenerator.cpp \
1408 src/globals/UIDialogPanel.cpp \
1409 src/globals/UIErrorString.cpp \
1410 src/globals/UIExtension.cpp \
1411 src/globals/UIIconPool.cpp \
1412 src/globals/UIImageTools.cpp \
1413 src/globals/UIMachineAttributeSetter.cpp \
1414 src/globals/UIMainEventListener.cpp \
1415 src/globals/UIMessageCenter.cpp \
1416 src/globals/UIModalWindowManager.cpp \
1417 src/globals/UIMousePointerShapeData.cpp \
1418 src/globals/UIPathOperations.cpp \
1419 src/globals/UIPopupCenter.cpp \
1420 src/globals/UIProgressEventHandler.cpp \
1421 src/globals/UIProgressObject.cpp \
1422 src/globals/UIProgressTask.cpp \
1423 src/globals/UIQObjectStuff.cpp \
1424 src/globals/UIShortcutPool.cpp \
1425 src/globals/UITextTable.cpp \
1426 src/globals/UITask.cpp \
1427 src/globals/UIThreadPool.cpp \
1428 src/globals/UITranslator.cpp \
1429 src/globals/UIVersion.cpp \
1430 src/globals/UIVirtualBoxEventHandler.cpp \
1431 src/globals/UIVirtualBoxClientEventHandler.cpp \
1432 src/guestctrl/UIFileManager.cpp \
1433 src/guestctrl/UIFileManagerGuestTable.cpp \
1434 src/guestctrl/UIFileManagerHostTable.cpp \
1435 src/guestctrl/UIFileManagerLogPanel.cpp \
1436 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1437 src/guestctrl/UIFileManagerOptionsPanel.cpp \
1438 src/guestctrl/UIFileManagerTable.cpp \
1439 src/helpbrowser/UIHelpBrowserDialog.cpp \
1440 src/logviewer/UIVMLogPage.cpp \
1441 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1442 src/logviewer/UIVMLogViewerDialog.cpp \
1443 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1444 src/logviewer/UIVMLogViewerOptionsPanel.cpp \
1445 src/logviewer/UIVMLogViewerPanel.cpp \
1446 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1447 src/logviewer/UIVMLogViewerTextEdit.cpp \
1448 src/logviewer/UIVMLogViewerWidget.cpp \
1449 src/activity/UIMonitorCommon.cpp \
1450 src/activity/vmactivity/UIVMActivityMonitor.cpp \
1451 src/medium/UIFDCreationDialog.cpp \
1452 src/medium/UIMedium.cpp \
1453 src/medium/UIMediumDefs.cpp \
1454 src/medium/UIMediumEnumerator.cpp \
1455 src/medium/UIMediumItem.cpp \
1456 src/medium/UIMediumSearchWidget.cpp \
1457 src/medium/UIMediumSelector.cpp \
1458 src/medium/viso/UIVisoBrowserBase.cpp \
1459 src/medium/viso/UIVisoContentBrowser.cpp \
1460 src/medium/viso/UIVisoCreator.cpp \
1461 src/medium/viso/UIVisoConfigurationPanel.cpp \
1462 src/medium/viso/UIVisoCreatorOptionsPanel.cpp \
1463 src/medium/viso/UIVisoHostBrowser.cpp \
1464 src/notificationcenter/UINotificationCenter.cpp \
1465 src/notificationcenter/UINotificationModel.cpp \
1466 src/notificationcenter/UINotificationObject.cpp \
1467 src/notificationcenter/UINotificationObjectItem.cpp \
1468 src/notificationcenter/UINotificationObjects.cpp \
1469 src/notificationcenter/UINotificationProgressTask.cpp \
1470 src/objects/UIExecutionQueue.cpp \
1471 src/objects/UIRichTextString.cpp \
1472 src/settings/UISettingsDefs.cpp \
1473 src/settings/UISettingsDialog.cpp \
1474 src/settings/UISettingsDialogSpecific.cpp \
1475 src/settings/UISettingsPage.cpp \
1476 src/settings/UISettingsSelector.cpp \
1477 src/settings/UISettingsSerializer.cpp \
1478 src/settings/editors/UIAccelerationFeaturesEditor.cpp \
1479 src/settings/editors/UIAudioControllerEditor.cpp \
1480 src/settings/editors/UIAudioFeaturesEditor.cpp \
1481 src/settings/editors/UIAudioHostDriverEditor.cpp \
1482 src/settings/editors/UIAudioSettingsEditor.cpp \
1483 src/settings/editors/UIAutoCaptureKeyboardEditor.cpp \
1484 src/settings/editors/UIBaseMemoryEditor.cpp \
1485 src/settings/editors/UIBootOrderEditor.cpp \
1486 src/settings/editors/UIChipsetEditor.cpp \
1487 src/settings/editors/UIColorThemeEditor.cpp \
1488 src/settings/editors/UIDefaultMachineFolderEditor.cpp \
1489 src/settings/editors/UIDescriptionEditor.cpp \
1490 src/settings/editors/UIDiskEncryptionSettingsEditor.cpp \
1491 src/settings/editors/UIDisplayFeaturesEditor.cpp \
1492 src/settings/editors/UIDisplayScreenFeaturesEditor.cpp \
1493 src/settings/editors/UIDragAndDropEditor.cpp \
1494 src/settings/editors/UIExecutionCapEditor.cpp \
1495 src/settings/editors/UIGraphicsControllerEditor.cpp \
1496 src/settings/editors/UIHostComboEditor.cpp \
1497 src/settings/editors/UIHotKeyEditor.cpp \
1498 src/settings/editors/UILanguageSettingsEditor.cpp \
1499 src/settings/editors/UIMaximumGuestScreenSizeEditor.cpp \
1500 src/settings/editors/UIMiniToolbarSettingsEditor.cpp \
1501 src/settings/editors/UIMonitorCountEditor.cpp \
1502 src/settings/editors/UIMotherboardFeaturesEditor.cpp \
1503 src/settings/editors/UINameAndSystemEditor.cpp \
1504 src/settings/editors/UINetworkAttachmentEditor.cpp \
1505 src/settings/editors/UINetworkFeaturesEditor.cpp \
1506 src/settings/editors/UINetworkSettingsEditor.cpp \
1507 src/settings/editors/UIParavirtProviderEditor.cpp \
1508 src/settings/editors/UIPointingHIDEditor.cpp \
1509 src/settings/editors/UIProcessorFeaturesEditor.cpp \
1510 src/settings/editors/UIProxyFeaturesEditor.cpp \
1511 src/settings/editors/UIRecordingSettingsEditor.cpp \
1512 src/settings/editors/UIScaleFactorEditor.cpp \
1513 src/settings/editors/UISharedClipboardEditor.cpp \
1514 src/settings/editors/UISharedFolderDetailsEditor.cpp \
1515 src/settings/editors/UISharedFoldersEditor.cpp \
1516 src/settings/editors/UIShortcutConfigurationEditor.cpp \
1517 src/settings/editors/UISnapshotFolderEditor.cpp \
1518 src/settings/editors/UIStorageSettingsEditor.cpp \
1519 src/settings/editors/UIUSBControllerEditor.cpp \
1520 src/settings/editors/UIUSBFilterDetailsEditor.cpp \
1521 src/settings/editors/UIUSBFiltersEditor.cpp \
1522 src/settings/editors/UIUSBSettingsEditor.cpp \
1523 src/settings/editors/UIVideoMemoryEditor.cpp \
1524 src/settings/editors/UIVirtualCPUEditor.cpp \
1525 src/settings/editors/UIVisualStateEditor.cpp \
1526 src/settings/editors/UIVRDEAuthLibraryEditor.cpp \
1527 src/settings/editors/UIVRDESettingsEditor.cpp \
1528 src/settings/global/UIGlobalSettingsGeneral.cpp \
1529 src/settings/global/UIGlobalSettingsInput.cpp \
1530 src/settings/global/UIGlobalSettingsLanguage.cpp \
1531 src/settings/global/UIGlobalSettingsDisplay.cpp \
1532 src/settings/global/UIGlobalSettingsInterface.cpp \
1533 src/settings/machine/UIMachineSettingsAudio.cpp \
1534 src/settings/machine/UIMachineSettingsDisplay.cpp \
1535 src/settings/machine/UIMachineSettingsGeneral.cpp \
1536 src/settings/machine/UIMachineSettingsInterface.cpp \
1537 src/settings/machine/UIMachineSettingsNetwork.cpp \
1538 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1539 src/settings/machine/UIMachineSettingsSF.cpp \
1540 src/settings/machine/UIMachineSettingsSerial.cpp \
1541 src/settings/machine/UIMachineSettingsStorage.cpp \
1542 src/settings/machine/UIMachineSettingsSystem.cpp \
1543 src/settings/machine/UIMachineSettingsUSB.cpp \
1544 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1545 src/widgets/UIFilePathSelector.cpp \
1546 src/widgets/UIFilmContainer.cpp \
1547 src/widgets/UIMediaComboBox.cpp \
1548 src/widgets/UIMediumSizeEditor.cpp \
1549 src/widgets/UIMenuBar.cpp \
1550 src/widgets/UIMenuBarEditorWindow.cpp \
1551 src/widgets/UIPopupBox.cpp \
1552 src/widgets/UIPopupPane.cpp \
1553 src/widgets/UIPopupPaneButtonPane.cpp \
1554 src/widgets/UIPopupPaneMessage.cpp \
1555 src/widgets/UIPopupPaneDetails.cpp \
1556 src/widgets/UIPopupStack.cpp \
1557 src/widgets/UIPopupStackViewport.cpp \
1558 src/widgets/UIPortForwardingTable.cpp \
1559 src/widgets/UIProgressDialog.cpp \
1560 src/widgets/UISearchLineEdit.cpp \
1561 src/widgets/UISlidingToolBar.cpp \
1562 src/widgets/UISpecialControls.cpp \
1563 src/widgets/UIStatusBarEditorWindow.cpp \
1564 src/widgets/UIToolBox.cpp \
1565 src/widgets/UIWarningPane.cpp \
1566 src/wizards/UINativeWizard.cpp \
1567 src/wizards/UINativeWizardPage.cpp \
1568 src/wizards/editors/UIUserNamePasswordEditor.cpp \
1569 src/wizards/editors/UIWizardDiskEditors.cpp \
1570 src/wizards/newvd/UIWizardNewVD.cpp \
1571 src/wizards/newvd/UIWizardNewVDFileTypePage.cpp \
1572 src/wizards/newvd/UIWizardNewVDVariantPage.cpp \
1573 src/wizards/newvd/UIWizardNewVDSizeLocationPage.cpp \
1574 src/wizards/newvd/UIWizardNewVDExpertPage.cpp
1575
1576ifdef VBOX_WITH_QHELP_VIEWER
1577 UICommon_SOURCES += \
1578 src/helpbrowser/UIHelpViewer.cpp \
1579 src/helpbrowser/UIHelpBrowserWidget.cpp
1580endif
1581
1582ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1583 UICommon_SOURCES += \
1584 src/networking/UIDownloader.cpp \
1585 src/networking/UIDownloaderExtensionPack.cpp \
1586 src/networking/UIDownloaderGuestAdditions.cpp \
1587 src/networking/UIDownloaderUserManual.cpp \
1588 src/networking/UINetworkCustomer.cpp \
1589 src/networking/UINetworkRequestManager.cpp \
1590 src/networking/UINetworkRequest.cpp \
1591 src/networking/UINetworkReply.cpp \
1592 src/networking/UIUpdateDefs.cpp \
1593 src/networking/UINewVersionChecker.cpp \
1594 src/networking/UIUpdateManager.cpp \
1595 src/settings/editors/UIUpdateSettingsEditor.cpp \
1596 src/settings/global/UIGlobalSettingsProxy.cpp \
1597 src/settings/global/UIGlobalSettingsUpdate.cpp
1598endif
1599
1600if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1601 UICommon_SOURCES += \
1602 src/platform/x11/VBoxUtils-x11.cpp \
1603 src/platform/x11/XKeyboard-new.cpp
1604endif
1605
1606UICommon_SOURCES.win += \
1607 src/platform/win/VBoxUtils-win.cpp \
1608 src/platform/win/WinKeyboard.cpp
1609
1610UICommon_SOURCES.darwin += \
1611 src/platform/darwin/CocoaEventHelper.mm \
1612 src/platform/darwin/DarwinKeyboard.cpp \
1613 src/platform/darwin/UICocoaApplication.mm \
1614 src/platform/darwin/UICocoaSpecialControls.mm \
1615 src/platform/darwin/UIWindowMenuManager.cpp \
1616 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1617 src/platform/darwin/VBoxUtils-darwin.cpp
1618
1619
1620#
1621# VirtualBox Manager Application
1622# Deployment.
1623#
1624if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1625 INSTALLS.linux += VirtualBox.qt.conf
1626 INSTALLS.solaris += VirtualBox.qt.conf
1627 VirtualBox.qt.conf_INST = $(INST_BIN)
1628 VirtualBox.qt.conf_MODE = 644
1629 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1630
1631$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1632 $(QUIET)$(RM) -f $@
1633 $(QUIET)$(APPEND) $@ "[Paths]"
1634 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1635endif
1636
1637
1638#
1639# VirtualBox Manager Application
1640# The Qt modules we're using.
1641# (The include directory and lib/framework for each module will be added by the Qt unit.)
1642#
1643VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1644ifdef VBOX_WITH_QT6
1645 VirtualBox_QT_MODULES += StateMachine
1646endif
1647ifndef VBOX_WITH_QT6
1648 VirtualBox_QT_MODULES.linux += X11Extras
1649 VirtualBox_QT_MODULES.solaris += X11Extras
1650 VirtualBox_QT_MODULES.freebsd += X11Extras
1651 VirtualBox_QT_MODULES.darwin += MacExtras
1652endif
1653VirtualBox_QT_MODULES.win += WinExtras
1654ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1655 VirtualBox_QT_MODULES += OpenGL
1656endif
1657
1658
1659#
1660# VirtualBox Virtual Machine Application
1661# The Qt modules we're using.
1662# (The include directory and lib/framework for each module will be added by the Qt unit.)
1663#
1664VirtualBoxVM_QT_MODULES = Core Gui Widgets PrintSupport
1665ifdef VBOX_WITH_QT6
1666 VirtualBoxVM_QT_MODULES += StateMachine
1667endif
1668ifndef VBOX_WITH_QT6
1669 VirtualBoxVM_QT_MODULES.linux += X11Extras
1670 VirtualBoxVM_QT_MODULES.solaris += X11Extras
1671 VirtualBoxVM_QT_MODULES.freebsd += X11Extras
1672 VirtualBoxVM_QT_MODULES.darwin += MacExtras
1673endif
1674VirtualBoxVM_QT_MODULES.win += WinExtras
1675ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1676 VirtualBoxVM_QT_MODULES += OpenGL
1677endif
1678
1679
1680#
1681# VirtualBox - GUI Global Shared Library.
1682# The Qt modules we're using.
1683# (The include directory and lib/framework for each module will be added by the Qt unit.)
1684#
1685UICommon_QT_MODULES = Core Gui Widgets
1686ifdef VBOX_WITH_QT6
1687 UICommon_QT_MODULES += StateMachine
1688endif
1689ifndef VBOX_WITH_QT6
1690 UICommon_QT_MODULES.linux += X11Extras
1691endif
1692UICommon_QT_MODULES.linux += DBus
1693UICommon_QT_MODULES.linux += Xml
1694ifndef VBOX_WITH_QT6
1695 UICommon_QT_MODULES.solaris += X11Extras
1696endif
1697UICommon_QT_MODULES.solaris += DBus
1698UICommon_QT_MODULES.solaris += Xml
1699ifndef VBOX_WITH_QT6
1700 UICommon_QT_MODULES.freebsd += X11Extras
1701endif
1702UICommon_QT_MODULES.freebsd += DBus
1703UICommon_QT_MODULES.freebsd += Xml
1704ifndef VBOX_WITH_QT6
1705 UICommon_QT_MODULES.darwin += MacExtras
1706endif
1707UICommon_QT_MODULES.win += WinExtras
1708
1709ifdef VBOX_WITH_QHELP_VIEWER
1710 UICommon_QT_MODULES += Help
1711endif
1712
1713ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1714 UICommon_QT_MODULES += OpenGL
1715endif
1716
1717
1718# Pull in the ui files
1719$(eval VirtualBox_SOURCES += $(FORMS))
1720$(eval VirtualBoxVM_SOURCES += $(FORMS))
1721$(eval UICommon_SOURCES += $(FORMS))
1722
1723
1724# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1725UICommon_SOURCES += VirtualBox1.qrc
1726VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1727UICommon_SOURCES += VirtualBox2.qrc
1728VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1729UICommon_SOURCES += VirtualBox1_x2.qrc
1730VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1731UICommon_SOURCES += VirtualBox2_x2.qrc
1732VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1733UICommon_SOURCES += VirtualBox1_x3.qrc
1734VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1735UICommon_SOURCES += VirtualBox2_x3.qrc
1736VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1737UICommon_SOURCES += VirtualBox1_x4.qrc
1738VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1739UICommon_SOURCES += VirtualBox2_x4.qrc
1740VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1741UICommon_SOURCES += VirtualBox_xml.qrc
1742VirtualBox_xml.qrc_RCCFLAGS = -name BASIC_XML
1743UICommon_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1744$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1745
1746
1747# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1748VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1749 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1750# Compress the translation units.
1751VirtualBox_LRCFLAGS = -silent
1752# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1753VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1754# All files which contain translatable strings.
1755VirtualBox_VBOX_ALL_NLS_SOURCES = $(VirtualBox_SOURCES) $(VirtualBoxVM_SOURCES) $(UICommon_SOURCES)
1756
1757
1758## @todo how to detect what tool is used?
1759## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1760# more generic -Wno-extra
1761# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1762ifdef VBOX_WITH_XPCOM
1763 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1764endif
1765
1766
1767#
1768# Build generated COM wrappers as part of app.
1769# VirtualBox - GUI Global Shared Library.
1770#
1771includedep $(PATH_TARGET)/UICommonComWrapperFiles.dep
1772UICommon_BLDDIRS += $(UICommon_0_OUTDIR)/include
1773UICommon_INTERMEDIATES += $(UICommon_0_OUTDIR)/include/COMWrappers
1774UICommon_SOURCES += $(UICommon_0_OUTDIR)/include/COMWrappers.cpp
1775UICommon_CLEAN += $(wildcard $(UICommon_0_OUTDIR)/include/*) $(PATH_TARGET)/UICommonComWrapperFiles.dep
1776
1777## @todo kmk doesn't remake optional outputs when they are missing...
1778$$(UICommon_0_OUTDIR)/include/COMWrappers \
1779+ $(PATH_TARGET)/UICommonComWrapperFiles.dep \
1780+| $(if-expr defined(UICommon_VBOX_COMWRAPPERS) \
1781, $(UICommon_VBOX_COMWRAPPERS) \
1782, $$(UICommon_0_OUTDIR)/include/COMEnums.h \
1783 $$(UICommon_0_OUTDIR)/include/COMWrappers.cpp \
1784): \
1785 $(VBOX_XIDL_FILE) \
1786 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1787 $(VBOX_FILESPLIT) \
1788 | $$(dir $$@)
1789 $(call MSG_GENERATE,UICommon,$<,$@)
1790 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/UICommonComWrapperFiles.dep"
1791 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1792 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1793 $(QUIET)$(VBOX_FILESPLIT) $@ $(UICommon_0_OUTDIR)/include \
1794 $(PATH_TARGET)/UICommonComWrapperFiles.dep UICommon_VBOX_COMWRAPPERS
1795 $(APPEND) "$@"
1796
1797# alias for generating the COM Wrappers file.
1798testwrappers:: $$(UICommon_0_OUTDIR)/include/COMWrappers
1799
1800
1801#
1802# Generate qrc file with branded icons.
1803#
1804VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1805VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1806$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1807 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1808 $(PATH_ROOT)/Config.kmk \
1809 | $$(dir $$@)
1810 $(call MSG_GENERATE,VirtualBox,$<,$@)
1811 $(QUIET)$(SED) \
1812 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1813 -e 's;@VBOX_ABOUT_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_X2_PNG);g' \
1814 -e 's;@VBOX_ABOUT_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_X3_PNG);g' \
1815 -e 's;@VBOX_ABOUT_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_X4_PNG);g' \
1816 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1817 -e 's;@VBOX_ABOUT_16PX_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X2_PNG);g' \
1818 -e 's;@VBOX_ABOUT_16PX_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X3_PNG);g' \
1819 -e 's;@VBOX_ABOUT_16PX_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X4_PNG);g' \
1820 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1821 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1822 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1823 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1824 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1825 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1826 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1827 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1828 --output $@ \
1829 $<
1830
1831
1832#
1833# Precompiled header
1834# win.amd64 without: kmk_time: 3m51.962058s
1835# win.amd64 with: kmk_time: 2m23.336252s
1836# linux.amd64 without: time: real 1m03.719s user 26m26.766s sys 2m03.526s
1837# linux.amd64 with: time: real 0m42.650s user 14m46.332s sys 1m28.463s
1838#
1839ifdef VBOX_WITH_PRECOMPILED_HEADERS
1840 if1of ($(KBUILD_TARGET),win)
1841 VirtualBox_USES += vccprecomp
1842 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1843
1844 VirtualBoxVM_USES += vccprecomp
1845 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1846
1847 UICommon_USES += vccprecomp
1848 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1849
1850 else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
1851 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
1852 UICommon_USES += gccprecomp
1853 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1854 #UICommon_CXXFLAGS.linux += -H
1855
1856 VirtualBox_USES += gccprecomp
1857 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1858 #VirtualBox_CXXFLAGS.linux += -H
1859
1860 VirtualBoxVM_USES += gccprecomp
1861 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1862 #VirtualBoxVM_CXXFLAGS.linux += -H
1863
1864 # GCC precompiled headers seems to work more efficiently when #pragma once is involved.
1865 # So, we've cooked our own camel cased qt wrapper headers with #pragma once inside.
1866 VBOX_GUI_INC_DIRS <= precomptricks
1867 endif
1868 endif
1869endif
1870
1871ifeq ($(KBUILD_TARGET),win)
1872#
1873# On Windows we'll have to generate/edit part of the resource file.
1874# The IDI_ICON1 name is Qt specific.
1875#
1876src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1877src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1878src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1879src/platform/win/VirtualBoxVM.rc_INCS = $(VirtualBox_0_OUTDIR)
1880src/platform/win/VirtualBoxVM.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1881src/platform/win/VirtualBoxVM.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1882
1883$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1884 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1885
1886endif # win
1887
1888
1889#
1890# Unset everything that was loaded from VBoxUI.pro.
1891#
1892FORMS :=
1893TRANSLATIONS :=
1894
1895
1896
1897ifeq ($(KBUILD_TARGET),win)
1898#
1899# Install the visual manifest and associated PNGs.
1900#
1901INSTALLS.win += VirtualBoxManifest
1902VirtualBoxManifest_INST = $(INST_VIRTUALBOX)
1903VirtualBoxManifest_DEFPATH = $(PATH_ROOT)/src/VBox/Artwork/$(if-expr defined(VBOX_OSE),OSE,NonOSE)/
1904VirtualBoxManifest_SOURCES := \
1905 virtualbox-70px.png=>VirtualBox_70px.png \
1906 virtualbox-150px.png=>VirtualBox_150px.png \
1907 $(PATH_SUB_CURRENT)/src/platform/win/VirtualBox.VisualElementsManifest.xml
1908
1909endif
1910
1911
1912ifeq ($(KBUILD_TARGET),darwin)
1913#
1914# Create directories for each approved language or the application
1915# menu won't be translated.
1916#
1917INSTALLS += VirtualBox.lproj
1918VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1919VirtualBox.lproj_MODE = 755
1920VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1921
1922#
1923# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1924# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1925#
1926INSTALLS += VirtualBox.app
1927VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1928VirtualBox.app_MODE = 644
1929VirtualBox.app_SOURCES = \
1930 src/platform/darwin/PkgInfo \
1931 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1932 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1933 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1934 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1935 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1936 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1937 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1938 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1939 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1940 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1941 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1942
1943 # Qt5 requires qt.conf on Mac OS X:
1944 VirtualBox.app_SOURCES += \
1945 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1946
1947 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1948 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1949 $(QUIET)$(RM) -f $@
1950 $(QUIET)$(SED) \
1951 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1952 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1953 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1954 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1955 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1956 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1957 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1958 $< > $@
1959
1960 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1961 $(QUIET)$(RM) -f $@
1962 $(QUIET)$(APPEND) $@ "[Paths]"
1963 ifdef VBOX_WITH_HARDENING # Not necessary and will screwup copying files elsewhere to test.
1964 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1965 endif
1966
1967 INSTALLS += VirtualBoxVM.app
1968 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1969 VirtualBoxVM.app_MODE = 644
1970 VirtualBoxVM.app_SOURCES = \
1971 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1972 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1973 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1974
1975 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1976 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1977 $(QUIET)$(RM) -f $@
1978 $(QUIET)$(SED) \
1979 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1980 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1981 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1982 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1983 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1984 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1985 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1986 --output $@ $<
1987
1988 PROGRAMS += vmstarter
1989 vmstarter_TEMPLATE = VBOXR3EXE
1990 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1991 vmstarter_LDFLAGS += -framework AppKit
1992 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1993 vmstarter_INST = $(INST_BIN)vmstarter
1994
1995 INSTALLS += vmstarter.app
1996 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1997 vmstarter.app_MODE = 644
1998 vmstarter.app_SOURCES = \
1999 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
2000 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
2001 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
2002 vmstarter.app_SYMLINKS = \
2003 MacOS=>../../../MacOS \
2004
2005 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2006 $(call MSG_GENERATE,vmstarter.app,$<,$@)
2007 $(QUIET)$(RM) -f $@
2008 $(QUIET)$(SED) \
2009 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2010 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2011 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2012 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2013 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2014 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2015 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2016 --output $@ $<
2017endif # darwin
2018
2019
2020#
2021# Testcase for the darwin keyboard routines.
2022#
2023ifdef VBOX_WITH_TESTCASES
2024 PROGRAMS.darwin += tstDarwinKeyboard
2025 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
2026 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
2027 tstDarwinKeyboard_INCS = \
2028 $(VBOX_GUI_INC_DIRS)
2029 tstDarwinKeyboard_SOURCES = \
2030 src/platform/darwin/tstDarwinKeyboard.cpp \
2031 src/platform/darwin/DarwinKeyboard.cpp \
2032 src/platform/darwin/CocoaEventHelper.mm
2033 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
2034 tstDarwinKeyboard_LIBS = \
2035 $(LIB_RUNTIME)
2036 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
2037endif
2038
2039
2040#
2041# Doxygen documentation.
2042#
2043QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
2044BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
2045OTHER_CLEAN += \
2046 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
2047 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
2048 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2049
2050QTGUI_DOXYFILE_INPUT_DIRS := \
2051 $(addprefix $(PATH_SUB_CURRENT)/src/, \
2052 converter \
2053 extensions \
2054 extensions/graphics \
2055 extradata \
2056 globals \
2057 manager \
2058 manager/chooser \
2059 manager/details \
2060 manager/tools \
2061 manager \
2062 manager \
2063 medium \
2064 net \
2065 objects \
2066 platform \
2067 platform/darwin \
2068 platform/os2 \
2069 platform/win \
2070 platform/x11 \
2071 runtime \
2072 runtime/fullscreen \
2073 runtime/information \
2074 runtime/guestctrl \
2075 runtime/normal \
2076 runtime/scale \
2077 runtime/seamless \
2078 selector \
2079 selector/graphics \
2080 selector/graphics/chooser \
2081 selector/graphics/details \
2082 settings \
2083 settings/global \
2084 settings/machine \
2085 widgets \
2086 widgets/graphics \
2087 wizards \
2088 wizards/addcloudvm \
2089 wizards/clonevd \
2090 wizards/clonevm \
2091 wizards/exportappliance \
2092 wizards/importappliance \
2093 wizards/newcloudvm \
2094 wizards/newvd \
2095 wizards/newvm)
2096
2097QTGUI_DOXYFILE_INPUT := \
2098 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
2099 $(sort $(wildcard $(dir)/*.h)) \
2100 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
2101
2102includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
2103
2104# Generate the Doxyfile
2105$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
2106 $(PATH_SUB_CURRENT)/Doxyfile \
2107 $(PATH_SUB_CURRENT)/Makefile.kmk \
2108 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
2109 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
2110 | $$(dir $$@)
2111 $(QUIET)$(RM) -f $@ $@.tmp $@.dep
2112 $(QUIET)$(CP) -f $< $@.tmp
2113 $(QUIET)$(APPEND) $@.tmp
2114 $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
2115 $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
2116 $(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include ."
2117 $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
2118 $(QUIET)$(APPEND) $@.tmp
2119 $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
2120 $(QUIET)$(APPEND) $@.tmp
2121 $(QUIET)$(MV) -f $@.tmp $@
2122 @$(APPEND) $@.dep "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
2123 @$(APPEND) $@.dep "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
2124
2125# Do the actual job.
2126$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
2127 | $(QTGUI_DOXYFILE_OUTPUT)/
2128 $(call MSG_L1,doxygen qtgui)
2129 $(QUIET)$(RM) -f $@
2130 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
2131 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
2132 $(APPEND) $@
2133
2134# aliases
2135docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2136if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2137docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2138endif
2139
2140
2141# Commit the magic.
2142# (note: before custom rules that make usage of generated variables!).
2143include $(FILE_KBUILD_SUB_FOOTER)
2144
2145
2146#
2147# Update all known NLS translation (.ts) files in the nls/ subdirectory.
2148#
2149# NOTE: This target is intended to be run only by the GUI maintainer shortly
2150# before a new product release. VirtualBox_xx_YY.ts is a template for new
2151# languages and should never be actually translated or installed.
2152#
2153# Use the checknls target for checking again common mistakes done by the
2154# translators.
2155#
2156# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
2157# lupdate call
2158#
2159#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
2160checknls::
2161 # Check for missing :/ in image paths
2162 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
2163
2164updatenls:: makeallnls nls/VirtualBox_en.ts
2165
2166makeallnls:: \
2167 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2168 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2169 $(call MSG_L1,lupdate all languages (nls/*.ts))
2170 $(QUIET)$(TOOL_QT5_LUPDATE) \
2171 $^ \
2172 -ts \
2173 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
2174 nls/VirtualBox_xx_YY.ts
2175
2176# Create the English translation file. This is something special cause it will
2177# contain the plural forms only.
2178nls/VirtualBox_en.ts: \
2179 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2180 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2181 $(call MSG_L1,lupdate $@)
2182 $(QUIET)$(TOOL_QT5_LUPDATE) \
2183 $^ \
2184 -ts \
2185 $@
2186 $(QUIET)$(SED) -n -i -e \
2187 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
2188 $@
2189
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