VirtualBox

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

Last change on this file since 99628 was 99623, checked in by vboxsync, 20 months ago

FE/Qt: Removed code for detecting the display server type and use the VBGHServerType API now (common code, also being used for guest stuff). bugref:10427

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