VirtualBox

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

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

FE/Qt: bugref:10736. Removing now-obsolete clone vd wizard files.

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