VirtualBox

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

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

FE/Qt: bugref:9830. Not using QMenu

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