VirtualBox

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

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

FE/Qt. bugref:10622. Creating UITranslationEventListener.

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

© 2023 Oracle
ContactPrivacy policyTerms of Use