VirtualBox

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

Last change on this file since 105152 was 105152, checked in by vboxsync, 7 months ago

FE/Qt: Moving cloud machine COM stuff from UICommon to new UICloudMachineManager.

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