VirtualBox

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

Last change on this file since 105891 was 105891, checked in by vboxsync, 4 months ago

FE/VirtualBox: Sorted build defines alphabetically for easier lookup.

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