VirtualBox

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

Last change on this file since 86124 was 86124, checked in by vboxsync, 4 years ago

FE/Qt: bugref:9827: Global properties / Input page: Heavy rework, replacing widgets with corresponding editor classes and performing overall cleanup.

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