VirtualBox

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

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

FE/Qt: bugref:9080. Removed one of the panels. It did not have enough stuff in it to deserve its existence.

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