VirtualBox

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

Last change on this file since 94323 was 94298, checked in by vboxsync, 3 years ago

FE/Qt: bugref:6899: Machine settings: Reworking Audio page to increase page accessibility; Moving contents to separate editor.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 76.7 KB
Line 
1# $Id: Makefile.kmk 94298 2022-03-17 16:24:26Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2022 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22#
23# Globals.
24#
25VBOX_VIRTUALBOX_SRC := $(PATH_SUB_CURRENT)
26VBOX_VIRTUALBOX_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
27ifndef VBOX_WITH_QT6
28 USES += qt5
29else
30 USES += qt6
31endif
32
33
34#
35# Targets.
36#
37ifdef VBOX_WITH_HARDENING
38 PROGRAMS += VirtualBox
39 PROGRAMS += VirtualBoxHardenedVM
40 DLLS += VirtualBoxVM
41 DLLS += UICommon
42else
43 PROGRAMS += VirtualBox
44 PROGRAMS += VirtualBoxVM
45 DLLS += UICommon
46endif
47INSTALLS += VirtualBox.nls
48
49
50#
51# Include the language lists.
52#
53include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
54
55
56#
57# Hardened VirtualBoxVM.
58#
59ifdef VBOX_WITH_HARDENING
60VirtualBoxHardenedVM_TEMPLATE = VBOXR3HARDENEDEXE
61VirtualBoxHardenedVM_INST.darwin = $(INST_VIRTUALBOX)Contents/Resources/VirtualBoxVM.app/Contents/MacOS/
62VirtualBoxHardenedVM_NAME = VirtualBoxVM
63VirtualBoxHardenedVM_DEFS += $(if $(VBOX_WITH_DRIVERLESS_NEM_FALLBACK),VBOX_WITH_DRIVERLESS_NEM_FALLBACK,)
64VirtualBoxHardenedVM_SOURCES = src/hardenedmain.cpp
65VirtualBoxHardenedVM_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
66$(call VBOX_SET_VER_INFO_EXE,VirtualBoxHardenedVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
67endif
68
69
70#
71# Include Qt project file, we'll use FORMS and TRANSLATIONS in
72# the VirtualBox setup below.
73#
74# This is a bit messy. We boldly ASSUME that LANGUAGE, IMAGES, FORMS
75# and TRANSLATIONS are all unused by kBuild and the host toolchain.
76#
77SAVED_TEMPLATE := $(TEMPLATE)
78include $(PATH_SUB_CURRENT)/VBoxUI.pro
79TEMPLATE := $(SAVED_TEMPLATE)
80SAVED_TEMPLATE :=
81LANGUAGE :=
82IMAGES :=
83# FORMS and TRANSLATIONS are reset further down.
84
85
86#
87# Perform initial new version check on startup.
88# If this setting is disabled the user can still check using the menu.
89#
90ifndef VBOX_OSE
91VBOX_WITH_UPDATE_REQUEST := 1
92endif
93
94
95#
96# VirtualBox Manager Application
97#
98VirtualBox_TEMPLATE := VBOXQTGUIEXE
99VirtualBox_NAME = VirtualBox
100VirtualBox_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers
101VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
102VirtualBox_DEFS =
103ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces).
104 VirtualBox_DEFS += VBOX_IS_QT6_OR_LATER
105endif
106VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
107VirtualBox_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS
108VirtualBox_DEFS.solaris = VBOX_WS_X11
109VirtualBox_DEFS.freebsd = VBOX_WS_X11
110VirtualBox_DEFS.darwin = VBOX_WS_MAC
111VirtualBox_DEFS.win = VBOX_WS_WIN
112VirtualBox_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
113VirtualBox_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
114VirtualBox_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
115VirtualBox_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
116VirtualBox_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
117ifn1of ($(KBUILD_TARGET_ARCH), arm64) # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now.
118 VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
119endif
120VirtualBox_DEFS.win += UNICODE QT_DLL
121VirtualBox_DEFS += \
122 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
123 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
124 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
125 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
126 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
127 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
128 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
129 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
130 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
131 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
132 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
133 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
134 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
135 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
136ifdef VBOX_WITH_DEBUGGER_GUI
137 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
138 if "$(KBUILD_TYPE)" != "release"
139 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
140 endif
141endif
142ifdef VBOX_WITH_LIBCURL
143 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
144 VBOX_GUI_WITH_NETWORK_MANAGER := 1
145endif
146if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
147 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
148endif
149ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
150 VirtualBox_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
151endif
152
153
154#
155# VirtualBox Virtual Machine Application
156#
157VirtualBoxVM_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
158VirtualBoxVM_NAME = VirtualBoxVM
159ifndef VBOX_WITH_HARDENING
160VirtualBoxVM_INST.darwin = $(INST_VIRTUALBOX)Contents/Resources/VirtualBoxVM.app/Contents/MacOS/
161endif
162VirtualBoxVM_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers
163VirtualBoxVM_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
164VirtualBoxVM_DEFS = VBOX_RUNTIME_UI
165ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces).
166 VirtualBoxVM_DEFS += VBOX_IS_QT6_OR_LATER
167endif
168VirtualBoxVM_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
169VirtualBoxVM_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS
170VirtualBoxVM_DEFS.solaris = VBOX_WS_X11
171VirtualBoxVM_DEFS.freebsd = VBOX_WS_X11
172VirtualBoxVM_DEFS.darwin = VBOX_WS_MAC
173VirtualBoxVM_DEFS.win = VBOX_WS_WIN
174VirtualBoxVM_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
175VirtualBoxVM_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
176VirtualBoxVM_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
177VirtualBoxVM_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
178VirtualBoxVM_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
179ifdef VBOX_WITH_VMNET
180 VirtualBoxVM_DEFS.darwin += VBOX_WITH_VMNET
181endif
182ifn1of ($(KBUILD_TARGET_ARCH), arm64) # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now.
183 VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
184endif
185VirtualBoxVM_DEFS.win += UNICODE QT_DLL
186VirtualBoxVM_DEFS += \
187 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
188 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
189 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
190 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
191 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
192 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
193 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
194 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
195 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
196 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
197 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
198 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
199 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
200 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
201ifdef VBOX_WITH_DEBUGGER_GUI
202 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI
203 if "$(KBUILD_TYPE)" != "release"
204 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
205 endif
206endif
207ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
208 VirtualBoxVM_DEFS += VBOX_GUI_WITH_QTGLFRAMEBUFFER
209endif
210ifdef VBOX_WITH_LIBCURL
211 VirtualBoxVM_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
212 VBOX_GUI_WITH_NETWORK_MANAGER := 1
213endif
214if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
215 VirtualBoxVM_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
216endif
217ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
218 VirtualBoxVM_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
219endif
220
221
222#
223# VirtualBox - GUI Global Shared Library.
224#
225UICommon_TEMPLATE = VBOXQTGUI
226UICommon_NAME = UICommon
227UICommon_DEFS = VBOX_GUI_LIBRARY
228ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces).
229 UICommon_DEFS += VBOX_IS_QT6_OR_LATER
230endif
231UICommon_DEFS.darwin = VBOX_WS_MAC
232UICommon_DEFS.freebsd = VBOX_WS_X11
233UICommon_DEFS.linux = VBOX_WS_X11 QT_NO_DEPRECATED_WARNINGS
234UICommon_DEFS.solaris = VBOX_WS_X11
235UICommon_DEFS.win = VBOX_WS_WIN
236UICommon_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
237ifdef VBOX_WITH_VMNET
238 UICommon_DEFS.darwin += VBOX_WITH_VMNET
239endif
240ifn1of ($(KBUILD_TARGET_ARCH), arm64) # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now.
241 UICommon_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
242endif
243#UICommon_DEFS.win += UNICODE QT_DLL
244UICommon_DEFS += \
245 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
246 $(if $(VBOX_WITH_CLOUD_NET),VBOX_WITH_CLOUD_NET) \
247 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
248 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
249 $(if $(VBOX_WITH_KCHMVIEWER),VBOX_WITH_KCHMVIEWER) \
250 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
251 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
252 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
253 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
254 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
255 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
256 $(if $(VBOX_WITH_QHELP_VIEWER),VBOX_WITH_QHELP_VIEWER) \
257 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
258ifdef VBOX_WITH_DEBUGGER_GUI
259 UICommon_DEFS += VBOX_WITH_DEBUGGER_GUI
260 if "$(KBUILD_TYPE)" != "release"
261 UICommon_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
262 endif
263endif
264ifdef VBOX_WITH_LIBCURL
265 UICommon_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
266 VBOX_GUI_WITH_NETWORK_MANAGER := 1
267endif
268if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
269 UICommon_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
270endif
271ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
272 UICommon_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
273endif
274
275
276#
277# Include folders.
278#
279VBOX_GUI_INC_DIRS = \
280 ./src \
281 ./src/cloud/consolemanager \
282 ./src/cloud/machinesettings \
283 ./src/cloud/profilemanager \
284 ./src/converter \
285 ./src/extensionpackmanager \
286 ./src/extensions \
287 ./src/extensions/graphics \
288 ./src/extradata \
289 ./src/globals \
290 ./src/helpbrowser \
291 ./src/logviewer \
292 ./src/medium \
293 ./src/medium/viso \
294 ./src/networkmanager \
295 ./src/notificationcenter \
296 ./src/objects \
297 ./src/platform \
298 ./src/platform/darwin \
299 ./src/platform/win \
300 ./src/platform/x11 \
301 ./src/runtime \
302 ./src/runtime/fullscreen \
303 ./src/runtime/normal \
304 ./src/runtime/scale \
305 ./src/runtime/seamless \
306 ./src/runtime/information \
307 ./src/guestctrl \
308 ./src/settings \
309 ./src/settings/editors \
310 ./src/settings/global \
311 ./src/settings/machine \
312 ./src/softkeyboard \
313 ./src/snapshots \
314 ./src/widgets \
315 ./src/widgets/graphics \
316 ./src/wizards \
317 ./src/wizards/addcloudvm \
318 ./src/wizards/newcloudvm \
319 ./src/wizards/newvm \
320 ./src/wizards/newvd \
321 ./src/wizards/clonevm \
322 ./src/wizards/clonevd \
323 ./src/wizards/exportappliance \
324 ./src/wizards/importappliance \
325 ./src/wizards/editors
326
327VBOX_GUI_INC_DIRS += \
328 ./src/manager \
329 ./src/manager/chooser \
330 ./src/manager/details \
331 ./src/manager/tools \
332 ./src/activity \
333 ./src/activity/overview \
334 ./src/activity/vmactivity
335
336ifdef VBOX_GUI_WITH_NETWORK_MANAGER
337VBOX_GUI_INC_DIRS += \
338 ./src/networking
339endif
340
341#
342# VirtualBox Manager Application
343# Include folders.
344#
345VirtualBox_INCS = \
346 $(VBOX_GUI_INC_DIRS) \
347 $(UICommon_0_OUTDIR)/include \
348 $(VBOX_GRAPHICS_INCS)
349
350#
351# VirtualBox Virtual Machine Application
352# Include folders.
353#
354VirtualBoxVM_INCS = \
355 $(VBOX_GUI_INC_DIRS) \
356 $(UICommon_0_OUTDIR)/include \
357 $(VBOX_GRAPHICS_INCS)
358
359#
360# VirtualBox - GUI Global Shared Library.
361# Include folders.
362#
363UICommon_INCS = \
364 $(VBOX_GUI_INC_DIRS) \
365 $(UICommon_0_OUTDIR)/include
366
367
368#
369# VirtualBox Manager Application
370# Compiling/linking flags.
371#
372ifneq ($(KBUILD_TARGET),win)
373VirtualBox_CXXFLAGS += -Wno-switch
374endif
375
376VirtualBox_CXXFLAGS.linux += -Wno-class-memaccess
377
378## @todo we're using a number of deprecated APIs, please fix and remove these!
379VirtualBox_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
380VirtualBox_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
381VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
382
383ifeq ($(KBUILD_TYPE),release)
384 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
385else
386 VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
387 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
388endif
389
390VirtualBox_LDFLAGS.darwin = \
391 $(if $(VBOX_WITH_HARDENING),,-rpath @executable_path/../MacOS -rpath @executable_path/../Frameworks) \
392 -framework AppKit -framework Carbon -framework IOKit
393
394ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
395 VirtualBox_LDFLAGS.darwin += -framework OpenGL
396endif
397
398
399#
400# VirtualBox Virtual Machine Application
401# Compiling/linking flags.
402#
403ifneq ($(KBUILD_TARGET),win)
404 VirtualBoxVM_CXXFLAGS += -Wno-switch
405endif
406
407VirtualBoxVM_CXXFLAGS.linux += -Wno-class-memaccess
408
409## @todo we're using a number of deprecated APIs, please fix and remove these!
410VirtualBoxVM_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
411VirtualBoxVM_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
412VirtualBoxVM_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
413
414ifeq ($(KBUILD_TYPE),release)
415 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:windows
416else
417 VirtualBoxVM_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
418 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:console
419endif
420
421VirtualBoxVM_LDFLAGS.darwin = \
422 $(if $(VBOX_WITH_HARDENING)\
423 ,-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBoxVM.dylib \
424 ,-rpath @executable_path/../../../../MacOS \
425 -rpath @executable_path/../../../../Frameworks) \
426 -framework AppKit -framework Carbon -framework IOKit \
427
428ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
429 VirtualBoxVM_LDFLAGS.darwin += -framework OpenGL
430endif
431
432
433#
434# VirtualBox - GUI Global Shared Library.
435# Compiling/linking flags.
436#
437
438UICommon_CXXFLAGS.linux += -Wno-class-memaccess
439UICommon_CXXFLAGS.win += -wd4868 # prevents std::stable_sort from using functor/function comparator
440UICommon_CXXFLAGS.win += -bigobj # COMWrappers.cpp fails with too many sections on win64-dep otherwise.
441
442## @todo we're using a number of deprecated APIs, please fix and remove these!
443UICommon_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
444UICommon_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
445UICommon_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
446
447UICommon_LDFLAGS.darwin = \
448 -install_name "$(VBOX_DYLD_EXECUTABLE_PATH)/UICommon.dylib" \
449 -framework AppKit \
450 -framework Carbon \
451 -framework IOKit
452
453ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
454 UICommon_LDFLAGS.darwin += -framework OpenGL
455endif
456
457#
458# VirtualBox Manager Application
459# Libraries.
460#
461
462# Library required for the hdd backend enumeration:
463VirtualBox_LIBS = $(LIB_DDU)
464
465# Runtime library loader required on X11 hosts:
466if1of ($(KBUILD_TARGET), linux netbsd openbsd)
467 VirtualBox_LIBS += dl
468endif
469
470# Xinerama library required for multi-monitor support:
471VirtualBox_LIBS.linux += Xinerama
472VirtualBox_LIBS.solaris += Xinerama
473VirtualBox_LIBS.freebsd += Xinerama
474
475# XCB library required for direct XCB native code support:
476VirtualBox_LIBS.linux += xcb
477VirtualBox_LIBS.solaris += xcb
478VirtualBox_LIBS.freebsd += xcb
479
480# Various Windows hosts libraries:
481VirtualBox_LIBS.win = \
482 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
483ifdef VBOX_WITH_NEW_WINDOWS_SDK
484 VirtualBox_LIBS.win += \
485 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/ddraw.lib \
486 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dxguid.lib
487else
488 VirtualBox_LIBS.win += \
489 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
490 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
491endif
492
493# VBox keyboard shared library for X11 hosts:
494if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
495 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
496endif
497
498# These are 2D Video Acceleration and 3D Acceleration related libs:
499ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
500 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
501 VirtualBox_LIBS.solaris += GL
502 VirtualBox_LIBS.linux += GL
503 VirtualBox_LIBS.freebsd += GL
504endif
505ifdef VBOX_WITH_3D_ACCELERATION
506 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
507endif
508
509# This one is global shared GUI library:
510ifeq ($(KBUILD_TARGET),win)
511 VirtualBox_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
512else
513 VirtualBox_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
514endif
515
516
517#
518# VirtualBox Virtual Machine Application
519# Libraries.
520#
521
522# Library required for the hdd backend enumeration:
523VirtualBoxVM_LIBS = $(LIB_DDU)
524
525# Runtime library loader required on X11 hosts:
526if1of ($(KBUILD_TARGET), linux netbsd openbsd)
527 VirtualBoxVM_LIBS += dl
528endif
529
530# Xinerama library required for multi-monitor support:
531VirtualBoxVM_LIBS.linux += Xinerama
532VirtualBoxVM_LIBS.solaris += Xinerama
533VirtualBoxVM_LIBS.freebsd += Xinerama
534
535# XCB library required for direct XCB native code support:
536VirtualBoxVM_LIBS.linux += xcb
537VirtualBoxVM_LIBS.solaris += xcb
538VirtualBoxVM_LIBS.freebsd += xcb
539
540# Various Windows hosts libraries:
541VirtualBoxVM_LIBS.win = \
542 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
543ifdef VBOX_WITH_NEW_WINDOWS_SDK
544 VirtualBoxVM_LIBS.win += \
545 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/ddraw.lib \
546 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dxguid.lib
547else
548 VirtualBoxVM_LIBS.win += \
549 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
550 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
551endif
552
553# VBox keyboard shared library for X11 hosts:
554if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
555 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
556endif
557
558# These are 2D Video Acceleration and 3D Acceleration related libs:
559ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
560 VirtualBoxVM_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
561 VirtualBoxVM_LIBS.solaris += GL
562 VirtualBoxVM_LIBS.linux += GL
563 VirtualBoxVM_LIBS.freebsd += GL
564endif
565ifdef VBOX_WITH_3D_ACCELERATION
566 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
567endif
568
569ifeq ($(KBUILD_TARGET),win)
570 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
571else
572 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
573endif
574
575
576#
577# VirtualBox - GUI Global Shared Library.
578# Libraries.
579#
580
581# Xinerama library required for multi-monitor support:
582UICommon_LIBS.linux += Xinerama
583UICommon_LIBS.solaris += Xinerama
584UICommon_LIBS.freebsd += Xinerama
585
586# Various Windows hosts libraries:
587UICommon_LIBS.win = \
588 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
589
590# VBox keyboard shared library for X11 hosts:
591if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
592 UICommon_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
593endif
594
595# These are 2D Video Acceleration and 3D Acceleration related libs:
596ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
597 UICommon_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
598 UICommon_LIBS.solaris += GL
599 UICommon_LIBS.linux += GL
600 UICommon_LIBS.freebsd += GL
601endif
602ifdef VBOX_WITH_3D_ACCELERATION
603 UICommon_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
604endif
605
606
607#
608# VirtualBox Manager Application
609# Headers containing definitions of classes that use the Q_OBJECT macro.
610#
611VirtualBox_QT_MOCHDRS = \
612 src/cloud/consolemanager/UICloudConsoleDetailsWidget.h \
613 src/cloud/consolemanager/UICloudConsoleManager.h \
614 src/cloud/machinesettings/UICloudMachineSettingsDialog.h \
615 src/cloud/machinesettings/UICloudMachineSettingsDialogPage.h \
616 src/cloud/profilemanager/UICloudProfileDetailsWidget.h \
617 src/cloud/profilemanager/UICloudProfileManager.h \
618 src/extensionpackmanager/UIExtensionPackManager.h \
619 src/globals/UIStarter.h \
620 src/manager/UIErrorPane.h \
621 src/manager/UIProgressTaskReadCloudMachineList.h \
622 src/manager/UITaskCloudGetSettingsForm.h \
623 src/manager/UIToolPaneGlobal.h \
624 src/manager/UIToolPaneMachine.h \
625 src/manager/UIVirtualBoxManager.h \
626 src/manager/UIVirtualBoxManagerWidget.h \
627 src/manager/UIVirtualMachineItem.h \
628 src/manager/UIVirtualMachineItemCloud.h \
629 src/manager/UIVirtualMachineItemLocal.h \
630 src/manager/UIWelcomePane.h \
631 src/manager/chooser/UIChooser.h \
632 src/manager/chooser/UIChooserAbstractModel.h \
633 src/manager/chooser/UIChooserModel.h \
634 src/manager/chooser/UIChooserView.h \
635 src/manager/chooser/UIChooserHandlerMouse.h \
636 src/manager/chooser/UIChooserHandlerKeyboard.h \
637 src/manager/chooser/UIChooserItem.h \
638 src/manager/chooser/UIChooserItemGroup.h \
639 src/manager/chooser/UIChooserItemGlobal.h \
640 src/manager/chooser/UIChooserItemMachine.h \
641 src/manager/chooser/UIChooserNode.h \
642 src/manager/chooser/UIChooserNodeGroup.h \
643 src/manager/chooser/UIChooserNodeGlobal.h \
644 src/manager/chooser/UIChooserNodeMachine.h \
645 src/manager/chooser/UIChooserSearchWidget.h \
646 src/manager/details/UIDetails.h \
647 src/manager/details/UIDetailsContextMenu.h \
648 src/manager/details/UIDetailsModel.h \
649 src/manager/details/UIDetailsView.h \
650 src/manager/details/UIDetailsItem.h \
651 src/manager/details/UIDetailsGroup.h \
652 src/manager/details/UIDetailsSet.h \
653 src/manager/details/UIDetailsElement.h \
654 src/manager/details/UIDetailsElements.h \
655 src/manager/details/UIMachinePreview.h \
656 src/manager/tools/UITools.h \
657 src/manager/tools/UIToolsModel.h \
658 src/manager/tools/UIToolsView.h \
659 src/manager/tools/UIToolsHandlerMouse.h \
660 src/manager/tools/UIToolsHandlerKeyboard.h \
661 src/manager/tools/UIToolsItem.h \
662 src/medium/UIMediumDetailsWidget.h \
663 src/medium/UIMediumManager.h \
664 src/activity/overview/UIVMActivityOverviewWidget.h \
665 src/activity/overview/UIVMActivityToolWidget.h \
666 src/networkmanager/UIDetailsWidgetCloudNetwork.h \
667 src/networkmanager/UIDetailsWidgetHostNetwork.h \
668 src/networkmanager/UIDetailsWidgetNATNetwork.h \
669 src/networkmanager/UINetworkManager.h \
670 src/snapshots/UISnapshotDetailsWidget.h \
671 src/snapshots/UISnapshotPane.h \
672 src/widgets/UIApplianceEditorWidget.h \
673 src/widgets/UIApplianceExportEditorWidget.h \
674 src/widgets/UIApplianceImportEditorWidget.h \
675 src/widgets/UIEmptyFilePathSelector.h \
676 src/widgets/UIFormEditorWidget.h \
677 src/widgets/UIGuestOSTypeSelectionButton.h \
678 src/widgets/UILineTextEdit.h \
679 src/widgets/UISlidingAnimation.h \
680 src/widgets/UISlidingWidget.h \
681 src/widgets/UITabBar.h \
682 src/widgets/UIMenuToolBar.h \
683 src/widgets/graphics/UIGraphicsButton.h \
684 src/widgets/graphics/UIGraphicsRotatorButton.h \
685 src/widgets/graphics/UIGraphicsScrollArea.h \
686 src/widgets/graphics/UIGraphicsScrollBar.h \
687 src/widgets/graphics/UIGraphicsZoomButton.h \
688 src/widgets/graphics/UIGraphicsToolBar.h \
689 src/widgets/graphics/UIGraphicsTextPane.h \
690 src/wizards/addcloudvm/UIWizardAddCloudVM.h \
691 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h \
692 src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h \
693 src/wizards/editors/UIHostnameDomainNameEditor.h \
694 src/wizards/editors/UIWizardCloneVMEditors.h \
695 src/wizards/editors/UIWizardNewVMEditors.h \
696 src/wizards/newcloudvm/UIWizardNewCloudVM.h \
697 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \
698 src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h \
699 src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h \
700 src/wizards/newvm/UIWizardNewVM.h \
701 src/wizards/newvm/UIWizardNewVMNameOSTypePage.h \
702 src/wizards/newvm/UIWizardNewVMUnattendedPage.h \
703 src/wizards/newvm/UIWizardNewVMHardwarePage.h \
704 src/wizards/newvm/UIWizardNewVMDiskPage.h \
705 src/wizards/newvm/UIWizardNewVMExpertPage.h \
706 src/wizards/newvm/UIWizardNewVMSummaryPage.h \
707 src/wizards/clonevm/UIWizardCloneVM.h \
708 src/wizards/clonevm/UIWizardCloneVMNamePathPage.h \
709 src/wizards/clonevm/UIWizardCloneVMTypePage.h \
710 src/wizards/clonevm/UIWizardCloneVMModePage.h \
711 src/wizards/clonevm/UIWizardCloneVMExpertPage.h \
712 src/wizards/clonevd/UIWizardCloneVD.h \
713 src/wizards/clonevd/UIWizardCloneVDFormatPage.h \
714 src/wizards/clonevd/UIWizardCloneVDVariantPage.h \
715 src/wizards/clonevd/UIWizardCloneVDPathSizePage.h \
716 src/wizards/clonevd/UIWizardCloneVDExpertPage.h \
717 src/wizards/exportappliance/UIWizardExportApp.h \
718 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
719 src/wizards/exportappliance/UIWizardExportAppPageFormat.h \
720 src/wizards/exportappliance/UIWizardExportAppPageSettings.h \
721 src/wizards/exportappliance/UIWizardExportAppPageVMs.h \
722 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.h \
723 src/wizards/importappliance/UIWizardImportApp.h \
724 src/wizards/importappliance/UIWizardImportAppPageExpert.h \
725 src/wizards/importappliance/UIWizardImportAppPageSettings.h \
726 src/wizards/importappliance/UIWizardImportAppPageSource.h
727
728
729#
730# VirtualBox Virtual Machine Application
731# Headers containing definitions of classes that use the Q_OBJECT macro.
732#
733VirtualBoxVM_QT_MOCHDRS = \
734 src/globals/UIStarter.h \
735 src/runtime/UIBootFailureDialog.h \
736 src/runtime/UIConsoleEventHandler.h \
737 src/runtime/UIFrameBuffer.h \
738 src/runtime/UIIndicatorsPool.h \
739 src/runtime/UIKeyboardHandler.h \
740 src/runtime/UIMachine.h \
741 src/runtime/UIMachineLogic.h \
742 src/runtime/UIMachineWindow.h \
743 src/runtime/UIMachineView.h \
744 src/runtime/UIMouseHandler.h \
745 src/runtime/UIMultiScreenLayout.h \
746 src/runtime/UISession.h \
747 src/runtime/UIVMCloseDialog.h \
748 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
749 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
750 src/runtime/fullscreen/UIMachineViewFullscreen.h \
751 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
752 src/runtime/information/UIInformationConfiguration.h \
753 src/runtime/information/UIVMInformationDialog.h \
754 src/runtime/information/UIInformationRuntime.h \
755 src/guestctrl/UIFileManagerDialog.h \
756 src/guestctrl/UIGuestControlConsole.h \
757 src/guestctrl/UIGuestControlInterface.h \
758 src/guestctrl/UIGuestControlTreeItem.h \
759 src/guestctrl/UIGuestProcessControlDialog.h \
760 src/guestctrl/UIGuestProcessControlWidget.h \
761 src/runtime/normal/UIKeyboardHandlerNormal.h \
762 src/runtime/normal/UIMachineLogicNormal.h \
763 src/runtime/normal/UIMachineViewNormal.h \
764 src/runtime/normal/UIMachineWindowNormal.h \
765 src/runtime/scale/UIKeyboardHandlerScale.h \
766 src/runtime/scale/UIMachineLogicScale.h \
767 src/runtime/scale/UIMachineViewScale.h \
768 src/runtime/scale/UIMachineWindowScale.h \
769 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
770 src/runtime/seamless/UIMachineLogicSeamless.h \
771 src/runtime/seamless/UIMachineViewSeamless.h \
772 src/runtime/seamless/UIMachineWindowSeamless.h \
773 src/softkeyboard/UISoftKeyboard.h \
774 src/widgets/UIMiniToolBar.h
775
776ifdef VBOX_WITH_DRAG_AND_DROP
777 VirtualBoxVM_QT_MOCHDRS += \
778 src/runtime/UIDnDHandler.h
779 ifdef VBOX_WITH_DRAG_AND_DROP_GH
780 VirtualBoxVM_QT_MOCHDRS += \
781 src/runtime/UIDnDMIMEData.h
782 endif
783endif
784
785
786#
787# VirtualBox - GUI Global Shared Library.
788# Headers containing definitions of classes that use the Q_OBJECT macro.
789#
790UICommon_QT_MOCHDRS = \
791 src/VBoxAboutDlg.h \
792 src/VBoxLicenseViewer.h \
793 src/UITakeSnapshotDialog.h \
794 src/extensions/QIAdvancedSlider.h \
795 src/extensions/QIArrowButtonPress.h \
796 src/extensions/QIArrowButtonSwitch.h \
797 src/extensions/QIArrowSplitter.h \
798 src/extensions/QIComboBox.h \
799 src/extensions/QIDialog.h \
800 src/extensions/QIDialogButtonBox.h \
801 src/extensions/QIDialogContainer.h \
802 src/extensions/QIFileDialog.h \
803 src/extensions/QIFlowLayout.h \
804 src/extensions/QIInputDialog.h \
805 src/extensions/QILabel.h \
806 src/extensions/QILabelSeparator.h \
807 src/extensions/QILineEdit.h \
808 src/extensions/QIMainDialog.h \
809 src/extensions/QIManagerDialog.h \
810 src/extensions/QIMenu.h \
811 src/extensions/QIMessageBox.h \
812 src/extensions/QIProcess.h \
813 src/extensions/QIRichTextLabel.h \
814 src/extensions/QIRichToolButton.h \
815 src/extensions/QISplitter.h \
816 src/extensions/QIStatusBar.h \
817 src/extensions/QIStatusBarIndicator.h \
818 src/extensions/QIStyledItemDelegate.h \
819 src/extensions/QITableView.h \
820 src/extensions/QITabWidget.h \
821 src/extensions/QIToolBar.h \
822 src/extensions/QIToolButton.h \
823 src/extensions/QITreeView.h \
824 src/extensions/QITreeWidget.h \
825 src/extensions/QIWidgetValidator.h \
826 src/extensions/graphics/QIGraphicsView.h \
827 src/extensions/graphics/QIGraphicsWidget.h \
828 src/extradata/UIExtraDataDefs.h \
829 src/extradata/UIExtraDataManager.h \
830 src/globals/UIActionPool.h \
831 src/globals/UIActionPoolManager.h \
832 src/globals/UIActionPoolRuntime.h \
833 src/globals/UIAnimationFramework.h \
834 src/globals/UICommon.h \
835 src/globals/UICustomFileSystemModel.h \
836 src/globals/UIDesktopWidgetWatchdog.h \
837 src/globals/UIDialogPanel.h \
838 src/globals/UIMainEventListener.h \
839 src/globals/UIMessageCenter.h \
840 src/globals/UIModalWindowManager.h \
841 src/globals/UIPopupCenter.h \
842 src/globals/UIProgressEventHandler.h \
843 src/globals/UIProgressObject.h \
844 src/globals/UIProgressTask.h \
845 src/globals/UIQObjectStuff.h \
846 src/globals/UIShortcutPool.h \
847 src/globals/UITask.h \
848 src/globals/UIThreadPool.h \
849 src/globals/UITextTable.h \
850 src/globals/UITranslator.h \
851 src/globals/UIVirtualBoxEventHandler.h \
852 src/globals/UIVirtualBoxClientEventHandler.h \
853 src/globals/VBoxUtils.h \
854 src/guestctrl/UIFileManager.h \
855 src/guestctrl/UIFileManagerGuestTable.h \
856 src/guestctrl/UIFileManagerHostTable.h \
857 src/guestctrl/UIFileManagerLogPanel.h \
858 src/guestctrl/UIFileManagerOperationsPanel.h \
859 src/guestctrl/UIFileManagerOptionsPanel.h \
860 src/guestctrl/UIFileManagerTable.h \
861 src/helpbrowser/UIHelpBrowserDialog.h \
862 src/logviewer/UIVMLogPage.h \
863 src/logviewer/UIVMLogViewerBookmarksPanel.h \
864 src/logviewer/UIVMLogViewerDialog.h \
865 src/logviewer/UIVMLogViewerFilterPanel.h \
866 src/logviewer/UIVMLogViewerOptionsPanel.h \
867 src/logviewer/UIVMLogViewerPanel.h \
868 src/logviewer/UIVMLogViewerSearchPanel.h \
869 src/logviewer/UIVMLogViewerTextEdit.h \
870 src/logviewer/UIVMLogViewerWidget.h \
871 src/activity/vmactivity/UIVMActivityMonitor.h \
872 src/medium/UIFDCreationDialog.h \
873 src/medium/UIMediumEnumerator.h \
874 src/medium/UIMediumItem.h \
875 src/medium/UIMediumSearchWidget.h \
876 src/medium/UIMediumSelector.h \
877 src/medium/viso/UIVisoBrowserBase.h \
878 src/medium/viso/UIVisoContentBrowser.h \
879 src/medium/viso/UIVisoCreator.h \
880 src/medium/viso/UIVisoConfigurationPanel.h \
881 src/medium/viso/UIVisoCreatorOptionsPanel.h \
882 src/medium/viso/UIVisoHostBrowser.h \
883 src/notificationcenter/UINotificationCenter.h \
884 src/notificationcenter/UINotificationModel.h \
885 src/notificationcenter/UINotificationObject.h \
886 src/notificationcenter/UINotificationObjectItem.h \
887 src/notificationcenter/UINotificationObjects.h \
888 src/notificationcenter/UINotificationProgressTask.h \
889 src/objects/UIExecutionQueue.h \
890 src/settings/UISettingsDialog.h \
891 src/settings/UISettingsDialogSpecific.h \
892 src/settings/UISettingsPage.h \
893 src/settings/UISettingsSelector.h \
894 src/settings/UISettingsSerializer.h \
895 src/settings/editors/UIAudioControllerEditor.h \
896 src/settings/editors/UIAudioHostDriverEditor.h \
897 src/settings/editors/UIAutoCaptureKeyboardEditor.h \
898 src/settings/editors/UIBaseMemoryEditor.h \
899 src/settings/editors/UIBootOrderEditor.h \
900 src/settings/editors/UIColorThemeEditor.h \
901 src/settings/editors/UIDefaultMachineFolderEditor.h \
902 src/settings/editors/UIGlobalDisplayFeaturesEditor.h \
903 src/settings/editors/UIGlobalProxyFeaturesEditor.h \
904 src/settings/editors/UIGraphicsControllerEditor.h \
905 src/settings/editors/UIHostComboEditor.h \
906 src/settings/editors/UIHotKeyEditor.h \
907 src/settings/editors/UILanguageSettingsEditor.h \
908 src/settings/editors/UIMachineAudioFeaturesEditor.h \
909 src/settings/editors/UIMaximumGuestScreenSizeEditor.h \
910 src/settings/editors/UINameAndSystemEditor.h \
911 src/settings/editors/UINetworkAttachmentEditor.h \
912 src/settings/editors/UIScaleFactorEditor.h \
913 src/settings/editors/UIShortcutConfigurationEditor.h \
914 src/settings/editors/UIVideoMemoryEditor.h \
915 src/settings/editors/UIVirtualCPUEditor.h \
916 src/settings/editors/UIVisualStateEditor.h \
917 src/settings/editors/UIVRDEAuthLibraryEditor.h \
918 src/settings/global/UIGlobalSettingsGeneral.h \
919 src/settings/global/UIGlobalSettingsInput.h \
920 src/settings/global/UIGlobalSettingsLanguage.h \
921 src/settings/global/UIGlobalSettingsDisplay.h \
922 src/settings/global/UIGlobalSettingsInterface.h \
923 src/settings/machine/UIMachineSettingsAudio.h \
924 src/settings/machine/UIMachineSettingsDisplay.h \
925 src/settings/machine/UIMachineSettingsGeneral.h \
926 src/settings/machine/UIMachineSettingsInterface.h \
927 src/settings/machine/UIMachineSettingsNetwork.h \
928 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
929 src/settings/machine/UIMachineSettingsSF.h \
930 src/settings/machine/UIMachineSettingsSFDetails.h \
931 src/settings/machine/UIMachineSettingsSerial.h \
932 src/settings/machine/UIMachineSettingsStorage.h \
933 src/settings/machine/UIMachineSettingsSystem.h \
934 src/settings/machine/UIMachineSettingsUSB.h \
935 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
936 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
937 src/widgets/UIFilePathSelector.h \
938 src/widgets/UIFilmContainer.h \
939 src/widgets/UIMediaComboBox.h \
940 src/widgets/UIMediumSizeEditor.h \
941 src/widgets/UIMenuBar.h \
942 src/widgets/UIMenuBarEditorWindow.h \
943 src/widgets/UIPopupBox.h \
944 src/widgets/UIPopupPane.h \
945 src/widgets/UIPopupPaneButtonPane.h \
946 src/widgets/UIPopupPaneMessage.h \
947 src/widgets/UIPopupPaneDetails.h \
948 src/widgets/UIPopupStack.h \
949 src/widgets/UIPopupStackViewport.h \
950 src/widgets/UIPortForwardingTable.h \
951 src/widgets/UIProgressDialog.h \
952 src/widgets/UISlidingToolBar.h \
953 src/widgets/UISpecialControls.h \
954 src/widgets/UIStatusBarEditorWindow.h \
955 src/widgets/UISearchLineEdit.h \
956 src/widgets/UIToolBox.h \
957 src/widgets/UIWarningPane.h \
958 src/wizards/UINativeWizard.h \
959 src/wizards/UINativeWizardPage.h \
960 src/wizards/editors/UIUserNamePasswordEditor.h \
961 src/wizards/editors/UIWizardDiskEditors.h \
962 src/wizards/newvd/UIWizardNewVD.h \
963 src/wizards/newvd/UIWizardNewVDFileTypePage.h \
964 src/wizards/newvd/UIWizardNewVDVariantPage.h \
965 src/wizards/newvd/UIWizardNewVDSizeLocationPage.h \
966 src/wizards/newvd/UIWizardNewVDExpertPage.h
967
968ifdef VBOX_WITH_QHELP_VIEWER
969 UICommon_QT_MOCHDRS += \
970 src/helpbrowser/UIHelpViewer.h \
971 src/helpbrowser/UIHelpBrowserWidget.h
972endif
973
974ifdef VBOX_GUI_WITH_NETWORK_MANAGER
975 UICommon_QT_MOCHDRS += \
976 src/networking/UIDownloader.h \
977 src/networking/UIDownloaderExtensionPack.h \
978 src/networking/UIDownloaderGuestAdditions.h \
979 src/networking/UIDownloaderUserManual.h \
980 src/networking/UINetworkCustomer.h \
981 src/networking/UINetworkRequestManager.h \
982 src/networking/UINetworkRequest.h \
983 src/networking/UINetworkReply.h \
984 src/networking/UINewVersionChecker.h \
985 src/networking/UIUpdateManager.h \
986 src/settings/editors/UIUpdateSettingsEditor.h \
987 src/settings/global/UIGlobalSettingsProxy.h \
988 src/settings/global/UIGlobalSettingsUpdate.h
989endif
990
991UICommon_QT_MOCHDRS.darwin += \
992 src/platform/darwin/UICocoaSpecialControls.h \
993 src/platform/darwin/UIWindowMenuManager.h
994
995
996#
997# VirtualBox Manager Application
998# Sources containing local definitions of classes that use the Q_OBJECT macro.
999#
1000VirtualBox_QT_MOCSRCS = \
1001 src/cloud/consolemanager/UICloudConsoleManager.cpp \
1002 src/cloud/profilemanager/UICloudProfileManager.cpp \
1003 src/extensionpackmanager/UIExtensionPackManager.cpp \
1004 src/manager/UIVirtualBoxManager.cpp \
1005 src/manager/UIVirtualMachineItemCloud.cpp \
1006 src/manager/UIWelcomePane.cpp \
1007 src/manager/chooser/UIChooserAbstractModel.cpp \
1008 src/activity/overview/UIVMActivityOverviewWidget.cpp \
1009 src/networkmanager/UINetworkManager.cpp \
1010 src/snapshots/UISnapshotDetailsWidget.cpp \
1011 src/snapshots/UISnapshotPane.cpp \
1012 src/widgets/UIApplianceEditorWidget.cpp \
1013 src/widgets/UIFormEditorWidget.cpp \
1014 src/widgets/UIMenuToolBar.cpp \
1015 src/widgets/UITabBar.cpp \
1016 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1017 src/wizards/importappliance/UIWizardImportApp.cpp \
1018 src/wizards/newvm/UIWizardNewVMSummaryPage.cpp
1019
1020#
1021# VirtualBox Virtual Machine Application
1022# Sources containing local definitions of classes that use the Q_OBJECT macro.
1023#
1024VirtualBoxVM_QT_MOCSRCS = \
1025 src/runtime/UIConsoleEventHandler.cpp \
1026 src/runtime/UIFrameBuffer.cpp \
1027 src/runtime/UIIndicatorsPool.cpp \
1028 src/runtime/information/UIInformationRuntime.cpp \
1029 src/guestctrl/UIGuestProcessControlWidget.cpp \
1030 src/softkeyboard/UISoftKeyboard.cpp \
1031 src/widgets/UIMiniToolBar.cpp
1032
1033
1034#
1035# VirtualBox - GUI Global Shared Library.
1036# Sources containing local definitions of classes that use the Q_OBJECT macro.
1037#
1038UICommon_QT_MOCSRCS = \
1039 src/extensions/QIAdvancedSlider.cpp \
1040 src/extensions/QIArrowSplitter.cpp \
1041 src/extensions/QISplitter.cpp \
1042 src/extradata/UIExtraDataManager.cpp \
1043 src/globals/UIActionPool.cpp \
1044 src/globals/UIActionPoolManager.cpp \
1045 src/globals/UIActionPoolRuntime.cpp \
1046 src/globals/UIMainEventListener.cpp \
1047 src/globals/UIThreadPool.cpp \
1048 src/globals/UIVirtualBoxEventHandler.cpp \
1049 src/globals/UIVirtualBoxClientEventHandler.cpp \
1050 src/guestctrl/UIFileManager.cpp \
1051 src/guestctrl/UIFileManagerLogPanel.cpp \
1052 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1053 src/guestctrl/UIFileManagerTable.cpp \
1054 src/guestctrl/UIFileManagerGuestTable.cpp \
1055 src/guestctrl/UIFileManagerHostTable.cpp \
1056 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1057 src/logviewer/UIVMLogViewerTextEdit.cpp \
1058 src/logviewer/UIVMLogViewerWidget.cpp \
1059 src/activity/vmactivity/UIVMActivityMonitor.cpp \
1060 src/medium/UIMediumEnumerator.cpp \
1061 src/medium/viso/UIVisoContentBrowser.cpp \
1062 src/medium/viso/UIVisoHostBrowser.cpp \
1063 src/medium/viso/UIVisoBrowserBase.cpp \
1064 src/notificationcenter/UINotificationCenter.cpp \
1065 src/settings/editors/UIBaseMemoryEditor.cpp \
1066 src/settings/editors/UIBootOrderEditor.cpp \
1067 src/settings/editors/UIHotKeyEditor.cpp \
1068 src/settings/editors/UILanguageSettingsEditor.cpp \
1069 src/settings/editors/UIShortcutConfigurationEditor.cpp \
1070 src/settings/machine/UIMachineSettingsNetwork.cpp \
1071 src/settings/machine/UIMachineSettingsSerial.cpp \
1072 src/settings/machine/UIMachineSettingsSF.cpp \
1073 src/settings/machine/UIMachineSettingsStorage.cpp \
1074 src/settings/machine/UIMachineSettingsUSB.cpp \
1075 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1076 src/widgets/UIFilmContainer.cpp \
1077 src/widgets/UIPortForwardingTable.cpp \
1078 src/widgets/UIStatusBarEditorWindow.cpp \
1079 src/widgets/UIToolBox.cpp
1080
1081ifdef VBOX_WITH_QHELP_VIEWER
1082 UICommon_QT_MOCSRCS += \
1083 src/helpbrowser/UIHelpViewer.cpp \
1084 src/helpbrowser/UIHelpBrowserWidget.cpp
1085endif
1086
1087ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1088 UICommon_QT_MOCSRCS += \
1089 src/networking/UINetworkReply.cpp \
1090 src/networking/UIUpdateManager.cpp
1091endif
1092
1093ifdef VBOX_WITH_XPCOM
1094 UICommon_QT_MOCSRCS += \
1095 src/globals/COMDefs.cpp
1096endif
1097
1098UICommon_QT_MOCSRCS.darwin += \
1099 src/platform/darwin/UIWindowMenuManager.cpp
1100
1101ifndef VBOX_GUI_WITH_CUSTOMIZATIONS1
1102 UICommon_QT_MOCSRCS.linux += \
1103 src/globals/UIDesktopWidgetWatchdog.cpp
1104 UICommon_QT_MOCSRCS.solaris += \
1105 src/globals/UIDesktopWidgetWatchdog.cpp
1106 UICommon_QT_MOCSRCS.freebsd += \
1107 src/globals/UIDesktopWidgetWatchdog.cpp
1108endif
1109
1110
1111#
1112# VirtualBox Manager Application
1113# Sources.
1114#
1115VirtualBox_SOURCES = \
1116 src/main.cpp \
1117 src/cloud/consolemanager/UICloudConsoleDetailsWidget.cpp \
1118 src/cloud/consolemanager/UICloudConsoleManager.cpp \
1119 src/cloud/machinesettings/UICloudMachineSettingsDialog.cpp \
1120 src/cloud/machinesettings/UICloudMachineSettingsDialogPage.cpp \
1121 src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp \
1122 src/cloud/profilemanager/UICloudProfileManager.cpp \
1123 src/extensionpackmanager/UIExtensionPackManager.cpp \
1124 src/globals/UIStarter.cpp \
1125 src/manager/UICloudEntityKey.cpp \
1126 src/manager/UIErrorPane.cpp \
1127 src/manager/UIProgressTaskReadCloudMachineList.cpp \
1128 src/manager/UITaskCloudGetSettingsForm.cpp \
1129 src/manager/UIToolPaneGlobal.cpp \
1130 src/manager/UIToolPaneMachine.cpp \
1131 src/manager/UIVirtualBoxManager.cpp \
1132 src/manager/UIVirtualBoxManagerWidget.cpp \
1133 src/manager/UIVirtualMachineItem.cpp \
1134 src/manager/UIVirtualMachineItemCloud.cpp \
1135 src/manager/UIVirtualMachineItemLocal.cpp \
1136 src/manager/UIWelcomePane.cpp \
1137 src/manager/chooser/UIChooser.cpp \
1138 src/manager/chooser/UIChooserAbstractModel.cpp \
1139 src/manager/chooser/UIChooserModel.cpp \
1140 src/manager/chooser/UIChooserView.cpp \
1141 src/manager/chooser/UIChooserHandlerMouse.cpp \
1142 src/manager/chooser/UIChooserHandlerKeyboard.cpp \
1143 src/manager/chooser/UIChooserItem.cpp \
1144 src/manager/chooser/UIChooserItemGroup.cpp \
1145 src/manager/chooser/UIChooserItemGlobal.cpp \
1146 src/manager/chooser/UIChooserItemMachine.cpp \
1147 src/manager/chooser/UIChooserNode.cpp \
1148 src/manager/chooser/UIChooserNodeGroup.cpp \
1149 src/manager/chooser/UIChooserNodeGlobal.cpp \
1150 src/manager/chooser/UIChooserNodeMachine.cpp \
1151 src/manager/chooser/UIChooserSearchWidget.cpp \
1152 src/manager/details/UIDetails.cpp \
1153 src/manager/details/UIDetailsContextMenu.cpp \
1154 src/manager/details/UIDetailsModel.cpp \
1155 src/manager/details/UIDetailsView.cpp \
1156 src/manager/details/UIDetailsItem.cpp \
1157 src/manager/details/UIDetailsGroup.cpp \
1158 src/manager/details/UIDetailsSet.cpp \
1159 src/manager/details/UIDetailsElement.cpp \
1160 src/manager/details/UIDetailsElements.cpp \
1161 src/manager/details/UIMachinePreview.cpp \
1162 src/manager/tools/UITools.cpp \
1163 src/manager/tools/UIToolsModel.cpp \
1164 src/manager/tools/UIToolsView.cpp \
1165 src/manager/tools/UIToolsHandlerMouse.cpp \
1166 src/manager/tools/UIToolsHandlerKeyboard.cpp \
1167 src/manager/tools/UIToolsItem.cpp \
1168 src/medium/UIMediumDetailsWidget.cpp \
1169 src/medium/UIMediumManager.cpp \
1170 src/activity/overview/UIVMActivityOverviewWidget.cpp \
1171 src/activity/overview/UIVMActivityToolWidget.cpp \
1172 src/networkmanager/UIDetailsWidgetCloudNetwork.cpp \
1173 src/networkmanager/UIDetailsWidgetHostNetwork.cpp \
1174 src/networkmanager/UIDetailsWidgetNATNetwork.cpp \
1175 src/networkmanager/UINetworkManager.cpp \
1176 src/networkmanager/UINetworkManagerUtils.cpp \
1177 src/snapshots/UISnapshotDetailsWidget.cpp \
1178 src/snapshots/UISnapshotPane.cpp \
1179 src/widgets/UIApplianceEditorWidget.cpp \
1180 src/widgets/UIApplianceExportEditorWidget.cpp \
1181 src/widgets/UIApplianceImportEditorWidget.cpp \
1182 src/widgets/UIEmptyFilePathSelector.cpp \
1183 src/widgets/UIFormEditorWidget.cpp \
1184 src/widgets/UIGuestOSTypeSelectionButton.cpp \
1185 src/widgets/UILineTextEdit.cpp \
1186 src/widgets/UISlidingAnimation.cpp \
1187 src/widgets/UISlidingWidget.cpp \
1188 src/widgets/UITabBar.cpp \
1189 src/widgets/UIMenuToolBar.cpp \
1190 src/widgets/graphics/UIGraphicsButton.cpp \
1191 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1192 src/widgets/graphics/UIGraphicsScrollArea.cpp \
1193 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1194 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1195 src/widgets/graphics/UIGraphicsToolBar.cpp \
1196 src/widgets/graphics/UIGraphicsTextPane.cpp \
1197 src/wizards/addcloudvm/UIWizardAddCloudVM.cpp \
1198 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp \
1199 src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp \
1200 src/wizards/editors/UIHostnameDomainNameEditor.cpp \
1201 src/wizards/editors/UIWizardCloneVMEditors.cpp \
1202 src/wizards/editors/UIWizardNewVMEditors.cpp \
1203 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \
1204 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \
1205 src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp \
1206 src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp \
1207 src/wizards/newvm/UIWizardNewVM.cpp \
1208 src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp \
1209 src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp \
1210 src/wizards/newvm/UIWizardNewVMHardwarePage.cpp \
1211 src/wizards/newvm/UIWizardNewVMDiskPage.cpp \
1212 src/wizards/newvm/UIWizardNewVMExpertPage.cpp \
1213 src/wizards/newvm/UIWizardNewVMSummaryPage.cpp \
1214 src/wizards/clonevm/UIWizardCloneVM.cpp \
1215 src/wizards/clonevm/UIWizardCloneVMNamePathPage.cpp \
1216 src/wizards/clonevm/UIWizardCloneVMTypePage.cpp \
1217 src/wizards/clonevm/UIWizardCloneVMModePage.cpp \
1218 src/wizards/clonevm/UIWizardCloneVMExpertPage.cpp \
1219 src/wizards/clonevd/UIWizardCloneVD.cpp \
1220 src/wizards/clonevd/UIWizardCloneVDFormatPage.cpp \
1221 src/wizards/clonevd/UIWizardCloneVDVariantPage.cpp \
1222 src/wizards/clonevd/UIWizardCloneVDPathSizePage.cpp \
1223 src/wizards/clonevd/UIWizardCloneVDExpertPage.cpp \
1224 src/wizards/exportappliance/UIWizardExportApp.cpp \
1225 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1226 src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp \
1227 src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp \
1228 src/wizards/exportappliance/UIWizardExportAppPageVMs.cpp \
1229 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.cpp \
1230 src/wizards/importappliance/UIWizardImportApp.cpp \
1231 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
1232 src/wizards/importappliance/UIWizardImportAppPageSettings.cpp \
1233 src/wizards/importappliance/UIWizardImportAppPageSource.cpp
1234
1235VirtualBox_SOURCES.darwin += \
1236 src/platform/darwin/UIDesktopServices_darwin.cpp \
1237 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1238
1239if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1240 VirtualBox_SOURCES += \
1241 src/platform/x11/UIDesktopServices_x11.cpp
1242endif
1243
1244VirtualBox_SOURCES.win += \
1245 src/platform/win/UIDesktopServices_win.cpp
1246
1247$(call VBOX_SET_VER_INFO_EXE,VirtualBox,VirtualBox Manager,$(VBOX_WINDOWS_ICON_FILE),VirtualBoxGUI)
1248
1249
1250#
1251# VirtualBox Virtual Machine Application
1252# Sources.
1253#
1254VirtualBoxVM_SOURCES = \
1255 src/main.cpp \
1256 src/globals/UIStarter.cpp \
1257 src/runtime/UIBootFailureDialog.cpp \
1258 src/runtime/UIConsoleEventHandler.cpp \
1259 src/runtime/UIFrameBuffer.cpp \
1260 src/runtime/UIIndicatorsPool.cpp \
1261 src/runtime/UIKeyboardHandler.cpp \
1262 src/runtime/UIMachine.cpp \
1263 src/runtime/UIMachineLogic.cpp \
1264 src/runtime/UIMachineView.cpp \
1265 src/runtime/UIMachineWindow.cpp \
1266 src/runtime/UIMouseHandler.cpp \
1267 src/runtime/UIMultiScreenLayout.cpp \
1268 src/runtime/UISession.cpp \
1269 src/runtime/UIVMCloseDialog.cpp \
1270 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1271 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1272 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1273 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1274 src/runtime/information/UIInformationConfiguration.cpp \
1275 src/runtime/information/UIVMInformationDialog.cpp \
1276 src/runtime/information/UIInformationRuntime.cpp \
1277 src/guestctrl/UIFileManagerDialog.cpp \
1278 src/guestctrl/UIGuestControlConsole.cpp \
1279 src/guestctrl/UIGuestControlInterface.cpp \
1280 src/guestctrl/UIGuestControlTreeItem.cpp \
1281 src/guestctrl/UIGuestProcessControlWidget.cpp \
1282 src/guestctrl/UIGuestProcessControlDialog.cpp \
1283 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1284 src/runtime/normal/UIMachineLogicNormal.cpp \
1285 src/runtime/normal/UIMachineViewNormal.cpp \
1286 src/runtime/normal/UIMachineWindowNormal.cpp \
1287 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1288 src/runtime/scale/UIMachineLogicScale.cpp \
1289 src/runtime/scale/UIMachineViewScale.cpp \
1290 src/runtime/scale/UIMachineWindowScale.cpp \
1291 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1292 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1293 src/runtime/seamless/UIMachineViewSeamless.cpp \
1294 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1295 src/softkeyboard/UISoftKeyboard.cpp \
1296 src/widgets/UIMiniToolBar.cpp
1297
1298ifdef VBOX_WITH_DRAG_AND_DROP
1299 VirtualBoxVM_SOURCES += \
1300 src/runtime/UIDnDHandler.cpp
1301 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1302 VirtualBoxVM_SOURCES += \
1303 src/runtime/UIDnDMIMEData.cpp
1304 VirtualBoxVM_SOURCES.win += \
1305 src/runtime/UIDnDDropSource_win.cpp \
1306 src/runtime/UIDnDDataObject_win.cpp \
1307 src/runtime/UIDnDEnumFormat_win.cpp
1308 endif
1309endif
1310
1311VirtualBoxVM_SOURCES.darwin += \
1312 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1313 src/platform/darwin/UICocoaDockIconPreview.mm
1314
1315ifdef VBOX_WITH_HARDENING
1316$(call VBOX_SET_VER_INFO_DLL,VirtualBoxVM,VirtualBox Virtual Machine (dll),$(VBOX_WINDOWS_ICON_FILE))
1317else
1318$(call VBOX_SET_VER_INFO_EXE,VirtualBoxVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
1319endif
1320
1321
1322#
1323# VirtualBox - GUI Global Shared Library.
1324# Sources.
1325#
1326UICommon_SOURCES = \
1327 src/VBoxAboutDlg.cpp \
1328 src/VBoxLicenseViewer.cpp \
1329 src/UITakeSnapshotDialog.cpp \
1330 src/extensions/QIAdvancedSlider.cpp \
1331 src/extensions/QIArrowButtonPress.cpp \
1332 src/extensions/QIArrowButtonSwitch.cpp \
1333 src/extensions/QIArrowSplitter.cpp \
1334 src/extensions/QIComboBox.cpp \
1335 src/extensions/QIDialog.cpp \
1336 src/extensions/QIDialogButtonBox.cpp \
1337 src/extensions/QIDialogContainer.cpp \
1338 src/extensions/QIFileDialog.cpp \
1339 src/extensions/QIFlowLayout.cpp \
1340 src/extensions/QIInputDialog.cpp \
1341 src/extensions/QILabel.cpp \
1342 src/extensions/QILabelSeparator.cpp \
1343 src/extensions/QILineEdit.cpp \
1344 src/extensions/QIMainDialog.cpp \
1345 src/extensions/QIManagerDialog.cpp \
1346 src/extensions/QIMenu.cpp \
1347 src/extensions/QIMessageBox.cpp \
1348 src/extensions/QIProcess.cpp \
1349 src/extensions/QIRichTextLabel.cpp \
1350 src/extensions/QIRichToolButton.cpp \
1351 src/extensions/QISplitter.cpp \
1352 src/extensions/QIStatusBar.cpp \
1353 src/extensions/QIStatusBarIndicator.cpp \
1354 src/extensions/QIStyledItemDelegate.cpp \
1355 src/extensions/QITableView.cpp \
1356 src/extensions/QITabWidget.cpp \
1357 src/extensions/QIToolBar.cpp \
1358 src/extensions/QIToolButton.cpp \
1359 src/extensions/QITreeView.cpp \
1360 src/extensions/QITreeWidget.cpp \
1361 src/extensions/QIWidgetValidator.cpp \
1362 src/extensions/graphics/QIGraphicsView.cpp \
1363 src/extensions/graphics/QIGraphicsWidget.cpp \
1364 src/extradata/UIExtraDataDefs.cpp \
1365 src/extradata/UIExtraDataManager.cpp \
1366 src/converter/UIConverter.cpp \
1367 src/converter/UIConverterBackendCOM.cpp \
1368 src/converter/UIConverterBackendGlobal.cpp \
1369 src/globals/COMDefs.cpp \
1370 src/globals/UIActionPool.cpp \
1371 src/globals/UIActionPoolManager.cpp \
1372 src/globals/UIActionPoolRuntime.cpp \
1373 src/globals/UIAnimationFramework.cpp \
1374 src/globals/UICloudNetworkingStuff.cpp \
1375 src/globals/UICommon.cpp \
1376 src/globals/UICursor.cpp \
1377 src/globals/UICustomFileSystemModel.cpp \
1378 src/globals/UIDefs.cpp \
1379 src/globals/UIDesktopWidgetWatchdog.cpp \
1380 src/globals/UIDetailsGenerator.cpp \
1381 src/globals/UIDialogPanel.cpp \
1382 src/globals/UIErrorString.cpp \
1383 src/globals/UIExtension.cpp \
1384 src/globals/UIIconPool.cpp \
1385 src/globals/UIImageTools.cpp \
1386 src/globals/UIMachineAttributeSetter.cpp \
1387 src/globals/UIMainEventListener.cpp \
1388 src/globals/UIMessageCenter.cpp \
1389 src/globals/UIModalWindowManager.cpp \
1390 src/globals/UIMousePointerShapeData.cpp \
1391 src/globals/UIPathOperations.cpp \
1392 src/globals/UIPopupCenter.cpp \
1393 src/globals/UIProgressEventHandler.cpp \
1394 src/globals/UIProgressObject.cpp \
1395 src/globals/UIProgressTask.cpp \
1396 src/globals/UIQObjectStuff.cpp \
1397 src/globals/UIShortcutPool.cpp \
1398 src/globals/UITextTable.cpp \
1399 src/globals/UITask.cpp \
1400 src/globals/UIThreadPool.cpp \
1401 src/globals/UITranslator.cpp \
1402 src/globals/UIVersion.cpp \
1403 src/globals/UIVirtualBoxEventHandler.cpp \
1404 src/globals/UIVirtualBoxClientEventHandler.cpp \
1405 src/guestctrl/UIFileManager.cpp \
1406 src/guestctrl/UIFileManagerGuestTable.cpp \
1407 src/guestctrl/UIFileManagerHostTable.cpp \
1408 src/guestctrl/UIFileManagerLogPanel.cpp \
1409 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1410 src/guestctrl/UIFileManagerOptionsPanel.cpp \
1411 src/guestctrl/UIFileManagerTable.cpp \
1412 src/helpbrowser/UIHelpBrowserDialog.cpp \
1413 src/logviewer/UIVMLogPage.cpp \
1414 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1415 src/logviewer/UIVMLogViewerDialog.cpp \
1416 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1417 src/logviewer/UIVMLogViewerOptionsPanel.cpp \
1418 src/logviewer/UIVMLogViewerPanel.cpp \
1419 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1420 src/logviewer/UIVMLogViewerTextEdit.cpp \
1421 src/logviewer/UIVMLogViewerWidget.cpp \
1422 src/activity/UIMonitorCommon.cpp \
1423 src/activity/vmactivity/UIVMActivityMonitor.cpp \
1424 src/medium/UIFDCreationDialog.cpp \
1425 src/medium/UIMedium.cpp \
1426 src/medium/UIMediumDefs.cpp \
1427 src/medium/UIMediumEnumerator.cpp \
1428 src/medium/UIMediumItem.cpp \
1429 src/medium/UIMediumSearchWidget.cpp \
1430 src/medium/UIMediumSelector.cpp \
1431 src/medium/viso/UIVisoBrowserBase.cpp \
1432 src/medium/viso/UIVisoContentBrowser.cpp \
1433 src/medium/viso/UIVisoCreator.cpp \
1434 src/medium/viso/UIVisoConfigurationPanel.cpp \
1435 src/medium/viso/UIVisoCreatorOptionsPanel.cpp \
1436 src/medium/viso/UIVisoHostBrowser.cpp \
1437 src/notificationcenter/UINotificationCenter.cpp \
1438 src/notificationcenter/UINotificationModel.cpp \
1439 src/notificationcenter/UINotificationObject.cpp \
1440 src/notificationcenter/UINotificationObjectItem.cpp \
1441 src/notificationcenter/UINotificationObjects.cpp \
1442 src/notificationcenter/UINotificationProgressTask.cpp \
1443 src/objects/UIExecutionQueue.cpp \
1444 src/objects/UIRichTextString.cpp \
1445 src/settings/UISettingsDefs.cpp \
1446 src/settings/UISettingsDialog.cpp \
1447 src/settings/UISettingsDialogSpecific.cpp \
1448 src/settings/UISettingsPage.cpp \
1449 src/settings/UISettingsSelector.cpp \
1450 src/settings/UISettingsSerializer.cpp \
1451 src/settings/editors/UIAudioControllerEditor.cpp \
1452 src/settings/editors/UIAudioHostDriverEditor.cpp \
1453 src/settings/editors/UIAutoCaptureKeyboardEditor.cpp \
1454 src/settings/editors/UIBaseMemoryEditor.cpp \
1455 src/settings/editors/UIBootOrderEditor.cpp \
1456 src/settings/editors/UIColorThemeEditor.cpp \
1457 src/settings/editors/UIDefaultMachineFolderEditor.cpp \
1458 src/settings/editors/UIGlobalDisplayFeaturesEditor.cpp \
1459 src/settings/editors/UIGlobalProxyFeaturesEditor.cpp \
1460 src/settings/editors/UIGraphicsControllerEditor.cpp \
1461 src/settings/editors/UIHostComboEditor.cpp \
1462 src/settings/editors/UIHotKeyEditor.cpp \
1463 src/settings/editors/UILanguageSettingsEditor.cpp \
1464 src/settings/editors/UIMachineAudioFeaturesEditor.cpp \
1465 src/settings/editors/UIMaximumGuestScreenSizeEditor.cpp \
1466 src/settings/editors/UINameAndSystemEditor.cpp \
1467 src/settings/editors/UINetworkAttachmentEditor.cpp \
1468 src/settings/editors/UIScaleFactorEditor.cpp \
1469 src/settings/editors/UIShortcutConfigurationEditor.cpp \
1470 src/settings/editors/UIVideoMemoryEditor.cpp \
1471 src/settings/editors/UIVirtualCPUEditor.cpp \
1472 src/settings/editors/UIVisualStateEditor.cpp \
1473 src/settings/editors/UIVRDEAuthLibraryEditor.cpp \
1474 src/settings/global/UIGlobalSettingsGeneral.cpp \
1475 src/settings/global/UIGlobalSettingsInput.cpp \
1476 src/settings/global/UIGlobalSettingsLanguage.cpp \
1477 src/settings/global/UIGlobalSettingsDisplay.cpp \
1478 src/settings/global/UIGlobalSettingsInterface.cpp \
1479 src/settings/machine/UIMachineSettingsAudio.cpp \
1480 src/settings/machine/UIMachineSettingsDisplay.cpp \
1481 src/settings/machine/UIMachineSettingsGeneral.cpp \
1482 src/settings/machine/UIMachineSettingsInterface.cpp \
1483 src/settings/machine/UIMachineSettingsNetwork.cpp \
1484 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1485 src/settings/machine/UIMachineSettingsSF.cpp \
1486 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1487 src/settings/machine/UIMachineSettingsSerial.cpp \
1488 src/settings/machine/UIMachineSettingsStorage.cpp \
1489 src/settings/machine/UIMachineSettingsSystem.cpp \
1490 src/settings/machine/UIMachineSettingsUSB.cpp \
1491 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1492 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1493 src/widgets/UIFilePathSelector.cpp \
1494 src/widgets/UIFilmContainer.cpp \
1495 src/widgets/UIMediaComboBox.cpp \
1496 src/widgets/UIMediumSizeEditor.cpp \
1497 src/widgets/UIMenuBar.cpp \
1498 src/widgets/UIMenuBarEditorWindow.cpp \
1499 src/widgets/UIPopupBox.cpp \
1500 src/widgets/UIPopupPane.cpp \
1501 src/widgets/UIPopupPaneButtonPane.cpp \
1502 src/widgets/UIPopupPaneMessage.cpp \
1503 src/widgets/UIPopupPaneDetails.cpp \
1504 src/widgets/UIPopupStack.cpp \
1505 src/widgets/UIPopupStackViewport.cpp \
1506 src/widgets/UIPortForwardingTable.cpp \
1507 src/widgets/UIProgressDialog.cpp \
1508 src/widgets/UISearchLineEdit.cpp \
1509 src/widgets/UISlidingToolBar.cpp \
1510 src/widgets/UISpecialControls.cpp \
1511 src/widgets/UIStatusBarEditorWindow.cpp \
1512 src/widgets/UIToolBox.cpp \
1513 src/widgets/UIWarningPane.cpp \
1514 src/wizards/UINativeWizard.cpp \
1515 src/wizards/UINativeWizardPage.cpp \
1516 src/wizards/editors/UIUserNamePasswordEditor.cpp \
1517 src/wizards/editors/UIWizardDiskEditors.cpp \
1518 src/wizards/newvd/UIWizardNewVD.cpp \
1519 src/wizards/newvd/UIWizardNewVDFileTypePage.cpp \
1520 src/wizards/newvd/UIWizardNewVDVariantPage.cpp \
1521 src/wizards/newvd/UIWizardNewVDSizeLocationPage.cpp \
1522 src/wizards/newvd/UIWizardNewVDExpertPage.cpp
1523
1524ifdef VBOX_WITH_QHELP_VIEWER
1525 UICommon_SOURCES += \
1526 src/helpbrowser/UIHelpViewer.cpp \
1527 src/helpbrowser/UIHelpBrowserWidget.cpp
1528endif
1529
1530ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1531 UICommon_SOURCES += \
1532 src/networking/UIDownloader.cpp \
1533 src/networking/UIDownloaderExtensionPack.cpp \
1534 src/networking/UIDownloaderGuestAdditions.cpp \
1535 src/networking/UIDownloaderUserManual.cpp \
1536 src/networking/UINetworkCustomer.cpp \
1537 src/networking/UINetworkRequestManager.cpp \
1538 src/networking/UINetworkRequest.cpp \
1539 src/networking/UINetworkReply.cpp \
1540 src/networking/UIUpdateDefs.cpp \
1541 src/networking/UINewVersionChecker.cpp \
1542 src/networking/UIUpdateManager.cpp \
1543 src/settings/editors/UIUpdateSettingsEditor.cpp \
1544 src/settings/global/UIGlobalSettingsProxy.cpp \
1545 src/settings/global/UIGlobalSettingsUpdate.cpp
1546endif
1547
1548if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1549 UICommon_SOURCES += \
1550 src/platform/x11/VBoxUtils-x11.cpp \
1551 src/platform/x11/XKeyboard-new.cpp
1552endif
1553
1554UICommon_SOURCES.win += \
1555 src/platform/win/VBoxUtils-win.cpp \
1556 src/platform/win/WinKeyboard.cpp
1557
1558UICommon_SOURCES.darwin += \
1559 src/platform/darwin/CocoaEventHelper.mm \
1560 src/platform/darwin/DarwinKeyboard.cpp \
1561 src/platform/darwin/UICocoaApplication.mm \
1562 src/platform/darwin/UICocoaSpecialControls.mm \
1563 src/platform/darwin/UIWindowMenuManager.cpp \
1564 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1565 src/platform/darwin/VBoxUtils-darwin.cpp
1566
1567
1568#
1569# VirtualBox Manager Application
1570# Deployment.
1571#
1572if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1573 INSTALLS.linux += VirtualBox.qt.conf
1574 INSTALLS.solaris += VirtualBox.qt.conf
1575 VirtualBox.qt.conf_INST = $(INST_BIN)
1576 VirtualBox.qt.conf_MODE = 644
1577 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1578
1579$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1580 $(QUIET)$(RM) -f $@
1581 $(QUIET)$(APPEND) $@ "[Paths]"
1582 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1583endif
1584
1585
1586#
1587# VirtualBox Manager Application
1588# The Qt modules we're using.
1589# (The include directory and lib/framework for each module will be added by the Qt unit.)
1590#
1591VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1592ifdef VBOX_WITH_QT6
1593 VirtualBox_QT_MODULES += StateMachine
1594endif
1595ifndef VBOX_WITH_QT6
1596 VirtualBox_QT_MODULES.linux += X11Extras
1597 VirtualBox_QT_MODULES.solaris += X11Extras
1598 VirtualBox_QT_MODULES.freebsd += X11Extras
1599 VirtualBox_QT_MODULES.darwin += MacExtras
1600endif
1601VirtualBox_QT_MODULES.win += WinExtras
1602ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1603 VirtualBox_QT_MODULES += OpenGL
1604endif
1605
1606
1607#
1608# VirtualBox Virtual Machine Application
1609# The Qt modules we're using.
1610# (The include directory and lib/framework for each module will be added by the Qt unit.)
1611#
1612VirtualBoxVM_QT_MODULES = Core Gui Widgets PrintSupport
1613ifdef VBOX_WITH_QT6
1614 VirtualBoxVM_QT_MODULES += StateMachine
1615endif
1616ifndef VBOX_WITH_QT6
1617 VirtualBoxVM_QT_MODULES.linux += X11Extras
1618 VirtualBoxVM_QT_MODULES.solaris += X11Extras
1619 VirtualBoxVM_QT_MODULES.freebsd += X11Extras
1620 VirtualBoxVM_QT_MODULES.darwin += MacExtras
1621endif
1622VirtualBoxVM_QT_MODULES.win += WinExtras
1623ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1624 VirtualBoxVM_QT_MODULES += OpenGL
1625endif
1626
1627
1628#
1629# VirtualBox - GUI Global Shared Library.
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#
1633UICommon_QT_MODULES = Core Gui Widgets
1634ifdef VBOX_WITH_QT6
1635 UICommon_QT_MODULES += StateMachine
1636endif
1637ifndef VBOX_WITH_QT6
1638 UICommon_QT_MODULES.linux += X11Extras
1639endif
1640UICommon_QT_MODULES.linux += DBus
1641UICommon_QT_MODULES.linux += Xml
1642ifndef VBOX_WITH_QT6
1643 UICommon_QT_MODULES.solaris += X11Extras
1644endif
1645UICommon_QT_MODULES.solaris += DBus
1646UICommon_QT_MODULES.solaris += Xml
1647ifndef VBOX_WITH_QT6
1648 UICommon_QT_MODULES.freebsd += X11Extras
1649endif
1650UICommon_QT_MODULES.freebsd += DBus
1651UICommon_QT_MODULES.freebsd += Xml
1652ifndef VBOX_WITH_QT6
1653 UICommon_QT_MODULES.darwin += MacExtras
1654endif
1655UICommon_QT_MODULES.win += WinExtras
1656
1657ifdef VBOX_WITH_QHELP_VIEWER
1658 UICommon_QT_MODULES += Help
1659endif
1660
1661ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1662 UICommon_QT_MODULES += OpenGL
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#
1824src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1825src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1826src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1827src/platform/win/VirtualBoxVM.rc_INCS = $(VirtualBox_0_OUTDIR)
1828src/platform/win/VirtualBoxVM.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1829src/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#
1849INSTALLS.win += VirtualBoxManifest
1850VirtualBoxManifest_INST = $(INST_VIRTUALBOX)
1851VirtualBoxManifest_DEFPATH = $(PATH_ROOT)/src/VBox/Artwork/$(if-expr defined(VBOX_OSE),OSE,NonOSE)/
1852VirtualBoxManifest_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#
1865INSTALLS += VirtualBox.lproj
1866VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1867VirtualBox.lproj_MODE = 755
1868VirtualBox.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#
1874INSTALLS += VirtualBox.app
1875VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1876VirtualBox.app_MODE = 644
1877VirtualBox.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
1923 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1924 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1925 $(QUIET)$(RM) -f $@
1926 $(QUIET)$(SED) \
1927 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1928 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1929 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1930 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1931 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1932 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1933 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1934 --output $@ $<
1935
1936 PROGRAMS += vmstarter
1937 vmstarter_TEMPLATE = VBOXR3EXE
1938 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1939 vmstarter_LDFLAGS += -framework AppKit
1940 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1941 vmstarter_INST = $(INST_BIN)vmstarter
1942
1943 INSTALLS += vmstarter.app
1944 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1945 vmstarter.app_MODE = 644
1946 vmstarter.app_SOURCES = \
1947 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1948 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1949 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1950 vmstarter.app_SYMLINKS = \
1951 MacOS=>../../../MacOS \
1952
1953 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1954 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1955 $(QUIET)$(RM) -f $@
1956 $(QUIET)$(SED) \
1957 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1958 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1959 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1960 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1961 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1962 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1963 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1964 --output $@ $<
1965endif # darwin
1966
1967
1968#
1969# Testcase for the darwin keyboard routines.
1970#
1971ifdef VBOX_WITH_TESTCASES
1972 PROGRAMS.darwin += tstDarwinKeyboard
1973 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1974 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1975 tstDarwinKeyboard_INCS = \
1976 $(VBOX_GUI_INC_DIRS)
1977 tstDarwinKeyboard_SOURCES = \
1978 src/platform/darwin/tstDarwinKeyboard.cpp \
1979 src/platform/darwin/DarwinKeyboard.cpp \
1980 src/platform/darwin/CocoaEventHelper.mm
1981 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1982 tstDarwinKeyboard_LIBS = \
1983 $(LIB_RUNTIME)
1984 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
1985endif
1986
1987
1988#
1989# Doxygen documentation.
1990#
1991QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1992BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1993OTHER_CLEAN += \
1994 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1995 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
1996 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1997
1998QTGUI_DOXYFILE_INPUT_DIRS := \
1999 $(addprefix $(PATH_SUB_CURRENT)/src/, \
2000 converter \
2001 extensions \
2002 extensions/graphics \
2003 extradata \
2004 globals \
2005 manager \
2006 manager/chooser \
2007 manager/details \
2008 manager/tools \
2009 manager \
2010 manager \
2011 medium \
2012 net \
2013 objects \
2014 platform \
2015 platform/darwin \
2016 platform/os2 \
2017 platform/win \
2018 platform/x11 \
2019 runtime \
2020 runtime/fullscreen \
2021 runtime/information \
2022 runtime/guestctrl \
2023 runtime/normal \
2024 runtime/scale \
2025 runtime/seamless \
2026 selector \
2027 selector/graphics \
2028 selector/graphics/chooser \
2029 selector/graphics/details \
2030 settings \
2031 settings/global \
2032 settings/machine \
2033 widgets \
2034 widgets/graphics \
2035 wizards \
2036 wizards/addcloudvm \
2037 wizards/clonevd \
2038 wizards/clonevm \
2039 wizards/exportappliance \
2040 wizards/importappliance \
2041 wizards/newcloudvm \
2042 wizards/newvd \
2043 wizards/newvm)
2044
2045QTGUI_DOXYFILE_INPUT := \
2046 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
2047 $(sort $(wildcard $(dir)/*.h)) \
2048 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
2049
2050includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
2051
2052# Generate the Doxyfile
2053$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
2054 $(PATH_SUB_CURRENT)/Doxyfile \
2055 $(PATH_SUB_CURRENT)/Makefile.kmk \
2056 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
2057 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
2058 | $$(dir $$@)
2059 $(QUIET)$(RM) -f $@ [email protected] [email protected]
2060 $(QUIET)$(CP) -f $< [email protected]
2061 $(QUIET)$(APPEND) [email protected]
2062 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
2063 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
2064 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
2065 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
2066 $(QUIET)$(APPEND) [email protected]
2067 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
2068 $(QUIET)$(APPEND) [email protected]
2069 $(QUIET)$(MV) -f [email protected] $@
2070 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
2071 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
2072
2073# Do the actual job.
2074$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
2075 | $(QTGUI_DOXYFILE_OUTPUT)/
2076 $(call MSG_L1,doxygen qtgui)
2077 $(QUIET)$(RM) -f $@
2078 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
2079 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
2080 $(APPEND) $@
2081
2082# aliases
2083docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2084if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2085docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2086endif
2087
2088
2089# Commit the magic.
2090# (note: before custom rules that make usage of generated variables!).
2091include $(FILE_KBUILD_SUB_FOOTER)
2092
2093
2094#
2095# Update all known NLS translation (.ts) files in the nls/ subdirectory.
2096#
2097# NOTE: This target is intended to be run only by the GUI maintainer shortly
2098# before a new product release. VirtualBox_xx_YY.ts is a template for new
2099# languages and should never be actually translated or installed.
2100#
2101# Use the checknls target for checking again common mistakes done by the
2102# translators.
2103#
2104# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
2105# lupdate call
2106#
2107#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
2108checknls::
2109 # Check for missing :/ in image paths
2110 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
2111
2112updatenls:: makeallnls nls/VirtualBox_en.ts
2113
2114makeallnls:: \
2115 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2116 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2117 $(call MSG_L1,lupdate all languages (nls/*.ts))
2118 $(QUIET)$(TOOL_QT5_LUPDATE) \
2119 $^ \
2120 -ts \
2121 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
2122 nls/VirtualBox_xx_YY.ts
2123
2124# Create the English translation file. This is something special cause it will
2125# contain the plural forms only.
2126nls/VirtualBox_en.ts: \
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 $@)
2130 $(QUIET)$(TOOL_QT5_LUPDATE) \
2131 $^ \
2132 -ts \
2133 $@
2134 $(QUIET)$(SED) -n -i -e \
2135 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
2136 $@
2137
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