VirtualBox

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

Last change on this file was 106170, checked in by vboxsync, 3 weeks ago

Config.kmk, Makefile.kmk, FE/Qt: bugref:10450: Get rid of VBOX_WITH_QT6 define and old possibility to build with our own Qt5 tool which was impossible already.

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