VirtualBox

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

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

FE/Qt: bugref:10067: Get rid of network-request manager window and widgets; They will be replaced with notification-center functionality.

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