VirtualBox

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

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

FE/Qt: bugref:9827: Global properties / Display page: Heavy rework, replacing widgets with corresponding editor classes.

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