VirtualBox

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

Last change on this file since 92440 was 92082, checked in by vboxsync, 3 years ago

GUI: bugref:9932 Allow host-only-adapter-attached VM to fail when VMNET is enabled

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