VirtualBox

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

Last change on this file since 99838 was 99830, checked in by vboxsync, 19 months ago

FE/Qt: bugref:10421. Renaming platform/x11 to platform/nix.

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