VirtualBox

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

Last change on this file since 93394 was 93238, checked in by vboxsync, 3 years ago

/Config.kmk,FE/Qt: HVCI workaround, see bugref:10162 for details.

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