VirtualBox

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

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

NetworkServices,VirtualBox: Omit -rpath on macOS when running parfait, as parfait produces an ../MacOS can't be accessed error and we don't want to run the output from the parfait builds anyway, bugref:3409 [scm fix]

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