VirtualBox

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

Last change on this file since 100539 was 100297, checked in by vboxsync, 18 months ago

FE/Qt: bugref:9080. Utilizing the navigation widget in the host file table.

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