VirtualBox

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

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

FE/Qt: bugref:9831. Decoupling help viewer widget building from the VBOX_WITH_DOCS_QHELP variable. take 2

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