VirtualBox

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

Last change on this file since 102493 was 102493, checked in by vboxsync, 12 months ago

FE/Qt: ​bugref:9080, bugref:10141. Removing obsolete UIVisoBrowserBase class.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette