VirtualBox

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

Last change on this file since 107285 was 107285, checked in by vboxsync, 5 weeks ago

FE/Qt: bugref:10814: Adding a switch for advanced widgets (VBOX_GUI_WITH_ADVANCED_WIDGETS).

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