VirtualBox

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

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

Artwork,Installer/win,Fe/QT: Corrections to r139867 and the Windows 10 start menu icons. bugref:9641

  • We do the installing of GUI stuff from the GUI makefile not the installer one (see MacOS).
  • We very very seldom do $(CP) or $(INSTALL) rules to do this, we use INSTALLS targets (see MacOS app files in the GUI).
  • The new PNGs shouldn't be in the windows specific Artwork subdir, but in the cross platform one with the related PNGs.
  • The installer dependencies should be automatic, so no need to change the Makefile there.
  • Exporer.exe is looking for the manifest using a camel cased name rather than all lowercase, so name the xml file accordingly.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 70.7 KB
Line 
1# $Id: Makefile.kmk 85724 2020-08-12 17:40:42Z 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_GUI_WITH_CLOUD_VMS),VBOX_GUI_WITH_CLOUD_VMS) \
126 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
127 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
128ifdef VBOX_WITH_DEBUGGER_GUI
129 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
130 if "$(KBUILD_TYPE)" != "release"
131 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
132 endif
133endif
134ifdef VBOX_WITH_LIBCURL
135 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
136 VBOX_GUI_WITH_NETWORK_MANAGER := 1
137endif
138if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
139 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
140endif
141ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
142 VirtualBox_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
143endif
144
145
146#
147# VirtualBox Virtual Machine Application
148#
149VirtualBoxVM_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
150VirtualBoxVM_NAME = VirtualBoxVM
151ifndef VBOX_WITH_HARDENING
152VirtualBoxVM_INST.darwin = $(INST_VIRTUALBOX)Contents/Resources/VirtualBoxVM.app/Contents/MacOS/
153endif
154VirtualBoxVM_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers
155VirtualBoxVM_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
156VirtualBoxVM_DEFS += VBOX_RUNTIME_UI
157VirtualBoxVM_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
158VirtualBoxVM_DEFS.linux = VBOX_WS_X11
159VirtualBoxVM_DEFS.solaris = VBOX_WS_X11
160VirtualBoxVM_DEFS.freebsd = VBOX_WS_X11
161VirtualBoxVM_DEFS.darwin = VBOX_WS_MAC
162VirtualBoxVM_DEFS.win = VBOX_WS_WIN
163VirtualBoxVM_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
164VirtualBoxVM_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
165VirtualBoxVM_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
166VirtualBoxVM_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
167VirtualBoxVM_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
168VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
169VirtualBoxVM_DEFS.win += UNICODE QT_DLL
170VirtualBoxVM_DEFS += \
171 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
172 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
173 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
174 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
175 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
176 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
177 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
178 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
179 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
180 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
181 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
182 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
183 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
184 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
185 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
186ifdef VBOX_WITH_DEBUGGER_GUI
187 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI
188 if "$(KBUILD_TYPE)" != "release"
189 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
190 endif
191endif
192ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
193 VirtualBoxVM_DEFS += VBOX_GUI_WITH_QTGLFRAMEBUFFER
194endif
195ifdef VBOX_WITH_LIBCURL
196 VirtualBoxVM_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
197 VBOX_GUI_WITH_NETWORK_MANAGER := 1
198endif
199if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
200 VirtualBoxVM_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
201endif
202ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
203 VirtualBoxVM_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
204endif
205
206
207#
208# VirtualBox - GUI Global Shared Library.
209#
210UICommon_TEMPLATE = VBOXQTGUI
211UICommon_NAME = UICommon
212UICommon_DEFS =
213UICommon_DEFS += VBOX_GUI_LIBRARY
214UICommon_DEFS.darwin = VBOX_WS_MAC
215UICommon_DEFS.freebsd = VBOX_WS_X11
216UICommon_DEFS.linux = VBOX_WS_X11
217UICommon_DEFS.solaris = VBOX_WS_X11
218UICommon_DEFS.win = VBOX_WS_WIN
219UICommon_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
220UICommon_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
221#UICommon_DEFS.win += UNICODE QT_DLL
222UICommon_DEFS += \
223 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
224 $(if $(VBOX_WITH_CLOUD_NET),VBOX_WITH_CLOUD_NET) \
225 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
226 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
227 $(if $(VBOX_WITH_KCHMVIEWER),VBOX_WITH_KCHMVIEWER) \
228 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
229 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
230 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
231 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
232 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
233 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
234 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
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/hostnetwork \
268 ./src/logviewer \
269 ./src/medium \
270 ./src/medium/viso \
271 ./src/objects \
272 ./src/platform \
273 ./src/platform/darwin \
274 ./src/platform/win \
275 ./src/platform/x11 \
276 ./src/runtime \
277 ./src/runtime/fullscreen \
278 ./src/runtime/normal \
279 ./src/runtime/scale \
280 ./src/runtime/seamless \
281 ./src/runtime/information \
282 ./src/guestctrl \
283 ./src/settings \
284 ./src/settings/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/net
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#
431# VirtualBox Manager Application
432# Libraries.
433#
434
435# Library required for the hdd backend enumeration:
436VirtualBox_LIBS = $(LIB_DDU)
437
438# Runtime library loader required on X11 hosts:
439if1of ($(KBUILD_TARGET), linux netbsd openbsd)
440 VirtualBox_LIBS += dl
441endif
442
443# Xinerama library required for multi-monitor support:
444VirtualBox_LIBS.linux += Xinerama
445VirtualBox_LIBS.solaris += Xinerama
446VirtualBox_LIBS.freebsd += Xinerama
447
448# XCB library required for direct XCB native code support:
449VirtualBox_LIBS.linux += xcb
450VirtualBox_LIBS.solaris += xcb
451VirtualBox_LIBS.freebsd += xcb
452
453# Various Windows hosts libraries:
454VirtualBox_LIBS.win = \
455 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
456 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
457 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
458
459# VBox keyboard shared library for X11 hosts:
460if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
461 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
462endif
463
464# These are 2D Video Acceleration and 3D Acceleration related libs:
465ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
466 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
467 VirtualBox_LIBS.solaris += GL
468 VirtualBox_LIBS.linux += GL
469 VirtualBox_LIBS.freebsd += GL
470endif
471ifdef VBOX_WITH_3D_ACCELERATION
472 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
473endif
474
475# This one is global shared GUI library:
476ifeq ($(KBUILD_TARGET),win)
477 VirtualBox_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
478else
479 VirtualBox_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
480endif
481
482
483#
484# VirtualBox Virtual Machine Application
485# Libraries.
486#
487
488# Library required for the hdd backend enumeration:
489VirtualBoxVM_LIBS = $(LIB_DDU)
490
491# Runtime library loader required on X11 hosts:
492if1of ($(KBUILD_TARGET), linux netbsd openbsd)
493 VirtualBoxVM_LIBS += dl
494endif
495
496# Xinerama library required for multi-monitor support:
497VirtualBoxVM_LIBS.linux += Xinerama
498VirtualBoxVM_LIBS.solaris += Xinerama
499VirtualBoxVM_LIBS.freebsd += Xinerama
500
501# XCB library required for direct XCB native code support:
502VirtualBoxVM_LIBS.linux += xcb
503VirtualBoxVM_LIBS.solaris += xcb
504VirtualBoxVM_LIBS.freebsd += xcb
505
506# Various Windows hosts libraries:
507VirtualBoxVM_LIBS.win = \
508 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
509 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
510 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
511
512# VBox keyboard shared library for X11 hosts:
513if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
514 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
515endif
516
517# These are 2D Video Acceleration and 3D Acceleration related libs:
518ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
519 VirtualBoxVM_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
520 VirtualBoxVM_LIBS.solaris += GL
521 VirtualBoxVM_LIBS.linux += GL
522 VirtualBoxVM_LIBS.freebsd += GL
523endif
524ifdef VBOX_WITH_3D_ACCELERATION
525 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
526endif
527
528ifeq ($(KBUILD_TARGET),win)
529 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
530else
531 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
532endif
533
534
535#
536# VirtualBox - GUI Global Shared Library.
537# Libraries.
538#
539
540# Xinerama library required for multi-monitor support:
541UICommon_LIBS.linux += Xinerama
542UICommon_LIBS.solaris += Xinerama
543UICommon_LIBS.freebsd += Xinerama
544
545# Various Windows hosts libraries:
546UICommon_LIBS.win = \
547 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
548
549# VBox keyboard shared library for X11 hosts:
550if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
551 UICommon_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
552endif
553
554# These are 2D Video Acceleration and 3D Acceleration related libs:
555ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
556 UICommon_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
557 UICommon_LIBS.solaris += GL
558 UICommon_LIBS.linux += GL
559 UICommon_LIBS.freebsd += GL
560endif
561ifdef VBOX_WITH_3D_ACCELERATION
562 UICommon_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
563endif
564
565
566#
567# VirtualBox Manager Application
568# Headers containing definitions of classes that use the Q_OBJECT macro.
569#
570VirtualBox_QT_MOCHDRS = \
571 src/cloud/consolemanager/UICloudConsoleDetailsWidget.h \
572 src/cloud/consolemanager/UICloudConsoleManager.h \
573 src/cloud/machinesettings/UICloudMachineSettingsDialog.h \
574 src/cloud/machinesettings/UICloudMachineSettingsDialogPage.h \
575 src/cloud/profilemanager/UICloudProfileDetailsWidget.h \
576 src/cloud/profilemanager/UICloudProfileManager.h \
577 src/globals/UIStarter.h \
578 src/hostnetwork/UIHostNetworkDetailsWidget.h \
579 src/hostnetwork/UIHostNetworkManager.h \
580 src/manager/UIErrorPane.h \
581 src/manager/UITaskCloudGetSettingsForm.h \
582 src/manager/UITaskCloudListMachines.h \
583 src/manager/UITaskCloudRefreshMachineInfo.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/QIToolButton.h \
783 src/extensions/QITreeView.h \
784 src/extensions/QITreeWidget.h \
785 src/extensions/QIWidgetValidator.h \
786 src/extensions/graphics/QIGraphicsView.h \
787 src/extensions/graphics/QIGraphicsWidget.h \
788 src/extradata/UIExtraDataDefs.h \
789 src/extradata/UIExtraDataManager.h \
790 src/globals/UIActionPool.h \
791 src/globals/UIActionPoolManager.h \
792 src/globals/UIActionPoolRuntime.h \
793 src/globals/UIAnimationFramework.h \
794 src/globals/UICommon.h \
795 src/globals/UICustomFileSystemModel.h \
796 src/globals/UIDesktopWidgetWatchdog.h \
797 src/globals/UIDialogPanel.h \
798 src/globals/UIMainEventListener.h \
799 src/globals/UIMessageCenter.h \
800 src/globals/UIModalWindowManager.h \
801 src/globals/UIPopupCenter.h \
802 src/globals/UIProgressEventHandler.h \
803 src/globals/UIQObjectStuff.h \
804 src/globals/UIShortcutPool.h \
805 src/globals/UITask.h \
806 src/globals/UIThreadPool.h \
807 src/globals/UITextTable.h \
808 src/globals/UIVirtualBoxEventHandler.h \
809 src/globals/VBoxUtils.h \
810 src/logviewer/UIVMLogPage.h \
811 src/logviewer/UIVMLogViewerBookmarksPanel.h \
812 src/logviewer/UIVMLogViewerDialog.h \
813 src/logviewer/UIVMLogViewerFilterPanel.h \
814 src/logviewer/UIVMLogViewerOptionsPanel.h \
815 src/logviewer/UIVMLogViewerPanel.h \
816 src/logviewer/UIVMLogViewerSearchPanel.h \
817 src/logviewer/UIVMLogViewerTextEdit.h \
818 src/logviewer/UIVMLogViewerWidget.h \
819 src/monitor/performance/UIPerformanceMonitor.h \
820 src/medium/UIFDCreationDialog.h \
821 src/medium/UIMediumEnumerator.h \
822 src/medium/UIMediumItem.h \
823 src/medium/UIMediumSearchWidget.h \
824 src/medium/UIMediumSelector.h \
825 src/medium/viso/UIVisoBrowserBase.h \
826 src/medium/viso/UIVisoContentBrowser.h \
827 src/medium/viso/UIVisoCreator.h \
828 src/medium/viso/UIVisoConfigurationPanel.h \
829 src/medium/viso/UIVisoCreatorOptionsPanel.h \
830 src/medium/viso/UIVisoHostBrowser.h \
831 src/settings/UISettingsDialog.h \
832 src/settings/UISettingsDialogSpecific.h \
833 src/settings/UISettingsPage.h \
834 src/settings/UISettingsSelector.h \
835 src/settings/UISettingsSerializer.h \
836 src/settings/global/UIGlobalSettingsExtension.h \
837 src/settings/global/UIGlobalSettingsGeneral.h \
838 src/settings/global/UIGlobalSettingsInput.h \
839 src/settings/global/UIGlobalSettingsLanguage.h \
840 src/settings/global/UIGlobalSettingsDisplay.h \
841 src/settings/global/UIGlobalSettingsNetwork.h \
842 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
843 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
844 src/settings/machine/UIMachineSettingsAudio.h \
845 src/settings/machine/UIMachineSettingsDisplay.h \
846 src/settings/machine/UIMachineSettingsGeneral.h \
847 src/settings/machine/UIMachineSettingsInterface.h \
848 src/settings/machine/UIMachineSettingsNetwork.h \
849 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
850 src/settings/machine/UIMachineSettingsSF.h \
851 src/settings/machine/UIMachineSettingsSFDetails.h \
852 src/settings/machine/UIMachineSettingsSerial.h \
853 src/settings/machine/UIMachineSettingsStorage.h \
854 src/settings/machine/UIMachineSettingsSystem.h \
855 src/settings/machine/UIMachineSettingsUSB.h \
856 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
857 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
858 src/widgets/UIAudioControllerEditor.h \
859 src/widgets/UIAudioHostDriverEditor.h \
860 src/widgets/UIBaseMemoryEditor.h \
861 src/widgets/UIBaseMemorySlider.h \
862 src/widgets/UIBootOrderEditor.h \
863 src/widgets/UIFilePathSelector.h \
864 src/widgets/UIFilmContainer.h \
865 src/widgets/UIGraphicsControllerEditor.h \
866 src/widgets/UIHostComboEditor.h \
867 src/widgets/UIHotKeyEditor.h \
868 src/widgets/UIMediaComboBox.h \
869 src/widgets/UIMediumSizeEditor.h \
870 src/widgets/UIMenuBar.h \
871 src/widgets/UIMenuBarEditorWindow.h \
872 src/widgets/UINameAndSystemEditor.h \
873 src/widgets/UINetworkAttachmentEditor.h \
874 src/widgets/UIPopupBox.h \
875 src/widgets/UIPopupPane.h \
876 src/widgets/UIPopupPaneButtonPane.h \
877 src/widgets/UIPopupPaneMessage.h \
878 src/widgets/UIPopupPaneDetails.h \
879 src/widgets/UIPopupStack.h \
880 src/widgets/UIPopupStackViewport.h \
881 src/widgets/UIPortForwardingTable.h \
882 src/widgets/UIProgressDialog.h \
883 src/widgets/UIScaleFactorEditor.h \
884 src/widgets/UISlidingToolBar.h \
885 src/widgets/UISpecialControls.h \
886 src/widgets/UIStatusBarEditorWindow.h \
887 src/widgets/UISearchLineEdit.h \
888 src/widgets/UIToolBar.h \
889 src/widgets/UIVideoMemoryEditor.h \
890 src/widgets/UIVirtualCPUEditor.h \
891 src/widgets/UIVisualStateEditor.h \
892 src/widgets/UIWarningPane.h \
893 src/wizards/UIWizard.h \
894 src/wizards/UIWizardPage.h \
895 src/wizards/newvd/UIWizardNewVD.h \
896 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
897 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
898 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
899 src/wizards/newvd/UIWizardNewVDPageExpert.h
900
901ifdef VBOX_GUI_WITH_NETWORK_MANAGER
902 UICommon_QT_MOCHDRS += \
903 src/net/UIDownloader.h \
904 src/net/UIDownloaderAdditions.h \
905 src/net/UIDownloaderExtensionPack.h \
906 src/net/UIDownloaderUserManual.h \
907 src/net/UINetworkCustomer.h \
908 src/net/UINetworkManager.h \
909 src/net/UINetworkManagerDialog.h \
910 src/net/UINetworkManagerIndicator.h \
911 src/net/UINetworkRequest.h \
912 src/net/UINetworkRequestWidget.h \
913 src/net/UINetworkReply.h \
914 src/net/UIUpdateManager.h \
915 src/settings/global/UIGlobalSettingsProxy.h \
916 src/settings/global/UIGlobalSettingsUpdate.h
917endif
918
919UICommon_QT_MOCHDRS.darwin += \
920 src/platform/darwin/UICocoaSpecialControls.h \
921 src/platform/darwin/UIWindowMenuManager.h
922
923
924#
925# VirtualBox Manager Application
926# Sources containing local definitions of classes that use the Q_OBJECT macro.
927#
928VirtualBox_QT_MOCSRCS = \
929 src/cloud/consolemanager/UICloudConsoleManager.cpp \
930 src/cloud/profilemanager/UICloudProfileManager.cpp \
931 src/hostnetwork/UIHostNetworkManager.cpp \
932 src/manager/UIVirtualBoxManager.cpp \
933 src/manager/UIWelcomePane.cpp \
934 src/manager/chooser/UIChooserAbstractModel.cpp \
935 src/monitor/resource/UIResourceMonitor.cpp \
936 src/snapshots/UISnapshotDetailsWidget.cpp \
937 src/snapshots/UISnapshotPane.cpp \
938 src/widgets/UIApplianceEditorWidget.cpp \
939 src/widgets/UIFormEditorWidget.cpp \
940 src/widgets/UIMenuToolBar.cpp \
941 src/widgets/UITabBar.cpp \
942 src/widgets/graphics/UIGraphicsScrollBar.cpp \
943 src/wizards/importappliance/UIWizardImportApp.cpp
944
945
946#
947# VirtualBox Virtual Machine Application
948# Sources containing local definitions of classes that use the Q_OBJECT macro.
949#
950VirtualBoxVM_QT_MOCSRCS = \
951 src/runtime/UIConsoleEventHandler.cpp \
952 src/runtime/UIFrameBuffer.cpp \
953 src/runtime/UIIndicatorsPool.cpp \
954 src/runtime/information/UIInformationRuntime.cpp \
955 src/guestctrl/UIFileManager.cpp \
956 src/guestctrl/UIFileManagerLogPanel.cpp \
957 src/guestctrl/UIFileManagerOperationsPanel.cpp \
958 src/guestctrl/UIFileManagerSessionPanel.cpp \
959 src/guestctrl/UIFileManagerTable.cpp \
960 src/guestctrl/UIFileManagerGuestTable.cpp \
961 src/guestctrl/UIFileManagerHostTable.cpp \
962 src/guestctrl/UIGuestProcessControlWidget.cpp \
963 src/softkeyboard/UISoftKeyboard.cpp \
964 src/widgets/UIMiniToolBar.cpp
965
966
967#
968# VirtualBox - GUI Global Shared Library.
969# Sources containing local definitions of classes that use the Q_OBJECT macro.
970#
971UICommon_QT_MOCSRCS = \
972 src/extensions/QIAdvancedSlider.cpp \
973 src/extensions/QIArrowSplitter.cpp \
974 src/extensions/QISplitter.cpp \
975 src/extradata/UIExtraDataManager.cpp \
976 src/globals/UIActionPool.cpp \
977 src/globals/UIActionPoolManager.cpp \
978 src/globals/UIActionPoolRuntime.cpp \
979 src/globals/UIMainEventListener.cpp \
980 src/globals/UIThreadPool.cpp \
981 src/globals/UIVirtualBoxEventHandler.cpp \
982 src/logviewer/UIVMLogViewerFilterPanel.cpp \
983 src/logviewer/UIVMLogViewerSearchPanel.cpp \
984 src/logviewer/UIVMLogViewerTextEdit.cpp \
985 src/monitor/performance/UIPerformanceMonitor.cpp \
986 src/medium/UIMediumEnumerator.cpp \
987 src/medium/viso/UIVisoContentBrowser.cpp \
988 src/medium/viso/UIVisoHostBrowser.cpp \
989 src/medium/viso/UIVisoBrowserBase.cpp \
990 src/settings/global/UIGlobalSettingsExtension.cpp \
991 src/settings/global/UIGlobalSettingsInput.cpp \
992 src/settings/global/UIGlobalSettingsLanguage.cpp \
993 src/settings/global/UIGlobalSettingsNetwork.cpp \
994 src/settings/machine/UIMachineSettingsNetwork.cpp \
995 src/settings/machine/UIMachineSettingsSerial.cpp \
996 src/settings/machine/UIMachineSettingsSF.cpp \
997 src/settings/machine/UIMachineSettingsStorage.cpp \
998 src/settings/machine/UIMachineSettingsUSB.cpp \
999 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1000 src/widgets/UIBootOrderEditor.cpp \
1001 src/widgets/UIFilmContainer.cpp \
1002 src/widgets/UIHotKeyEditor.cpp \
1003 src/widgets/UIPortForwardingTable.cpp \
1004 src/widgets/UIStatusBarEditorWindow.cpp
1005
1006ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1007 UICommon_QT_MOCSRCS += \
1008 src/net/UINetworkReply.cpp \
1009 src/net/UIUpdateManager.cpp
1010endif
1011
1012ifdef VBOX_WITH_XPCOM
1013 UICommon_QT_MOCSRCS += \
1014 src/globals/COMDefs.cpp
1015endif
1016
1017UICommon_QT_MOCSRCS.darwin += \
1018 src/platform/darwin/UIWindowMenuManager.cpp
1019
1020ifndef VBOX_GUI_WITH_CUSTOMIZATIONS1
1021 UICommon_QT_MOCSRCS.linux += \
1022 src/globals/UIDesktopWidgetWatchdog.cpp
1023 UICommon_QT_MOCSRCS.solaris += \
1024 src/globals/UIDesktopWidgetWatchdog.cpp
1025 UICommon_QT_MOCSRCS.freebsd += \
1026 src/globals/UIDesktopWidgetWatchdog.cpp
1027endif
1028
1029
1030#
1031# VirtualBox Manager Application
1032# Sources.
1033#
1034VirtualBox_SOURCES = \
1035 src/main.cpp \
1036 src/cloud/consolemanager/UICloudConsoleDetailsWidget.cpp \
1037 src/cloud/consolemanager/UICloudConsoleManager.cpp \
1038 src/cloud/machinesettings/UICloudMachineSettingsDialog.cpp \
1039 src/cloud/machinesettings/UICloudMachineSettingsDialogPage.cpp \
1040 src/cloud/profilemanager/UICloudProfileDetailsWidget.cpp \
1041 src/cloud/profilemanager/UICloudProfileManager.cpp \
1042 src/globals/UIStarter.cpp \
1043 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
1044 src/hostnetwork/UIHostNetworkManager.cpp \
1045 src/hostnetwork/UIHostNetworkUtils.cpp \
1046 src/manager/UIErrorPane.cpp \
1047 src/manager/UITaskCloudGetSettingsForm.cpp \
1048 src/manager/UITaskCloudListMachines.cpp \
1049 src/manager/UITaskCloudRefreshMachineInfo.cpp \
1050 src/manager/UIToolPaneGlobal.cpp \
1051 src/manager/UIToolPaneMachine.cpp \
1052 src/manager/UIVirtualBoxManager.cpp \
1053 src/manager/UIVirtualBoxManagerWidget.cpp \
1054 src/manager/UIVirtualMachineItem.cpp \
1055 src/manager/UIVirtualMachineItemCloud.cpp \
1056 src/manager/UIVirtualMachineItemLocal.cpp \
1057 src/manager/UIWelcomePane.cpp \
1058 src/manager/chooser/UIChooser.cpp \
1059 src/manager/chooser/UIChooserAbstractModel.cpp \
1060 src/manager/chooser/UIChooserModel.cpp \
1061 src/manager/chooser/UIChooserView.cpp \
1062 src/manager/chooser/UIChooserHandlerMouse.cpp \
1063 src/manager/chooser/UIChooserHandlerKeyboard.cpp \
1064 src/manager/chooser/UIChooserItem.cpp \
1065 src/manager/chooser/UIChooserItemGroup.cpp \
1066 src/manager/chooser/UIChooserItemGlobal.cpp \
1067 src/manager/chooser/UIChooserItemMachine.cpp \
1068 src/manager/chooser/UIChooserNode.cpp \
1069 src/manager/chooser/UIChooserNodeGroup.cpp \
1070 src/manager/chooser/UIChooserNodeGlobal.cpp \
1071 src/manager/chooser/UIChooserNodeMachine.cpp \
1072 src/manager/chooser/UIChooserSearchWidget.cpp \
1073 src/manager/details/UIDetails.cpp \
1074 src/manager/details/UIDetailsContextMenu.cpp \
1075 src/manager/details/UIDetailsModel.cpp \
1076 src/manager/details/UIDetailsView.cpp \
1077 src/manager/details/UIDetailsItem.cpp \
1078 src/manager/details/UIDetailsGroup.cpp \
1079 src/manager/details/UIDetailsSet.cpp \
1080 src/manager/details/UIDetailsElement.cpp \
1081 src/manager/details/UIDetailsElements.cpp \
1082 src/manager/details/UIMachinePreview.cpp \
1083 src/manager/tools/UITools.cpp \
1084 src/manager/tools/UIToolsModel.cpp \
1085 src/manager/tools/UIToolsView.cpp \
1086 src/manager/tools/UIToolsHandlerMouse.cpp \
1087 src/manager/tools/UIToolsHandlerKeyboard.cpp \
1088 src/manager/tools/UIToolsItem.cpp \
1089 src/medium/UIMediumDetailsWidget.cpp \
1090 src/medium/UIMediumManager.cpp \
1091 src/monitor/resource/UIResourceMonitor.cpp \
1092 src/snapshots/UISnapshotDetailsWidget.cpp \
1093 src/snapshots/UISnapshotPane.cpp \
1094 src/widgets/UIApplianceEditorWidget.cpp \
1095 src/widgets/UIApplianceExportEditorWidget.cpp \
1096 src/widgets/UIApplianceImportEditorWidget.cpp \
1097 src/widgets/UIEmptyFilePathSelector.cpp \
1098 src/widgets/UIFormEditorWidget.cpp \
1099 src/widgets/UIGuestOSTypeSelectionButton.cpp \
1100 src/widgets/UILineTextEdit.cpp \
1101 src/widgets/UISlidingAnimation.cpp \
1102 src/widgets/UISlidingWidget.cpp \
1103 src/widgets/UITabBar.cpp \
1104 src/widgets/UIUserNamePasswordEditor.cpp \
1105 src/widgets/UIMenuToolBar.cpp \
1106 src/widgets/graphics/UIGraphicsButton.cpp \
1107 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1108 src/widgets/graphics/UIGraphicsScrollArea.cpp \
1109 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1110 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1111 src/widgets/graphics/UIGraphicsToolBar.cpp \
1112 src/widgets/graphics/UIGraphicsTextPane.cpp \
1113 src/wizards/addcloudvm/UIWizardAddCloudVM.cpp \
1114 src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.cpp \
1115 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp \
1116 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \
1117 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp \
1118 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.cpp \
1119 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \
1120 src/wizards/newvm/UIWizardNewVM.cpp \
1121 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
1122 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
1123 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
1124 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
1125 src/wizards/clonevm/UIWizardCloneVM.cpp \
1126 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
1127 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
1128 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
1129 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
1130 src/wizards/clonevd/UIWizardCloneVD.cpp \
1131 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
1132 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
1133 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
1134 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
1135 src/wizards/exportappliance/UIWizardExportApp.cpp \
1136 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
1137 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
1138 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
1139 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1140 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.cpp \
1141 src/wizards/importappliance/UIWizardImportApp.cpp \
1142 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
1143 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
1144 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
1145
1146VirtualBox_SOURCES.darwin += \
1147 src/platform/darwin/UIDesktopServices_darwin.cpp \
1148 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1149
1150if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1151 VirtualBox_SOURCES += \
1152 src/platform/x11/UIDesktopServices_x11.cpp
1153endif
1154
1155VirtualBox_SOURCES.win += \
1156 src/platform/win/UIDesktopServices_win.cpp
1157
1158$(call VBOX_SET_VER_INFO_EXE,VirtualBox,VirtualBox Manager,$(VBOX_WINDOWS_ICON_FILE))
1159
1160
1161#
1162# VirtualBox Virtual Machine Application
1163# Sources.
1164#
1165VirtualBoxVM_SOURCES = \
1166 src/main.cpp \
1167 src/globals/UIStarter.cpp \
1168 src/runtime/UIConsoleEventHandler.cpp \
1169 src/runtime/UIFrameBuffer.cpp \
1170 src/runtime/UIIndicatorsPool.cpp \
1171 src/runtime/UIKeyboardHandler.cpp \
1172 src/runtime/UIMachine.cpp \
1173 src/runtime/UIMachineLogic.cpp \
1174 src/runtime/UIMachineView.cpp \
1175 src/runtime/UIMachineWindow.cpp \
1176 src/runtime/UIMouseHandler.cpp \
1177 src/runtime/UIMultiScreenLayout.cpp \
1178 src/runtime/UISession.cpp \
1179 src/runtime/UIVMCloseDialog.cpp \
1180 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1181 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1182 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1183 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1184 src/runtime/information/UIInformationConfiguration.cpp \
1185 src/runtime/information/UIVMInformationDialog.cpp \
1186 src/runtime/information/UIInformationRuntime.cpp \
1187 src/guestctrl/UIFileManager.cpp \
1188 src/guestctrl/UIFileManagerDialog.cpp \
1189 src/guestctrl/UIFileManagerGuestTable.cpp \
1190 src/guestctrl/UIFileManagerHostTable.cpp \
1191 src/guestctrl/UIFileManagerLogPanel.cpp \
1192 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1193 src/guestctrl/UIFileManagerOptionsPanel.cpp \
1194 src/guestctrl/UIFileManagerSessionPanel.cpp \
1195 src/guestctrl/UIFileManagerTable.cpp \
1196 src/guestctrl/UIGuestControlConsole.cpp \
1197 src/guestctrl/UIGuestControlInterface.cpp \
1198 src/guestctrl/UIGuestControlTreeItem.cpp \
1199 src/guestctrl/UIGuestProcessControlWidget.cpp \
1200 src/guestctrl/UIGuestProcessControlDialog.cpp \
1201 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1202 src/runtime/normal/UIMachineLogicNormal.cpp \
1203 src/runtime/normal/UIMachineViewNormal.cpp \
1204 src/runtime/normal/UIMachineWindowNormal.cpp \
1205 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1206 src/runtime/scale/UIMachineLogicScale.cpp \
1207 src/runtime/scale/UIMachineViewScale.cpp \
1208 src/runtime/scale/UIMachineWindowScale.cpp \
1209 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1210 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1211 src/runtime/seamless/UIMachineViewSeamless.cpp \
1212 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1213 src/softkeyboard/UISoftKeyboard.cpp \
1214 src/widgets/UIMiniToolBar.cpp \
1215 src/wizards/firstrun/UIWizardFirstRun.cpp \
1216 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
1217
1218ifdef VBOX_WITH_DRAG_AND_DROP
1219 VirtualBoxVM_SOURCES += \
1220 src/runtime/UIDnDHandler.cpp
1221 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1222 VirtualBoxVM_SOURCES += \
1223 src/runtime/UIDnDMIMEData.cpp
1224 VirtualBoxVM_SOURCES.win += \
1225 src/runtime/UIDnDDropSource_win.cpp \
1226 src/runtime/UIDnDDataObject_win.cpp \
1227 src/runtime/UIDnDEnumFormat_win.cpp
1228 endif
1229endif
1230
1231VirtualBoxVM_SOURCES.darwin += \
1232 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1233 src/platform/darwin/UICocoaDockIconPreview.mm
1234
1235ifdef VBOX_WITH_HARDENING
1236$(call VBOX_SET_VER_INFO_DLL,VirtualBoxVM,VirtualBox Virtual Machine (dll),$(VBOX_WINDOWS_ICON_FILE))
1237else
1238$(call VBOX_SET_VER_INFO_EXE,VirtualBoxVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
1239endif
1240
1241
1242#
1243# VirtualBox - GUI Global Shared Library.
1244# Sources.
1245#
1246UICommon_SOURCES = \
1247 src/VBoxAboutDlg.cpp \
1248 src/VBoxLicenseViewer.cpp \
1249 src/UITakeSnapshotDialog.cpp \
1250 src/extensions/QIAdvancedSlider.cpp \
1251 src/extensions/QIArrowButtonPress.cpp \
1252 src/extensions/QIArrowButtonSwitch.cpp \
1253 src/extensions/QIArrowSplitter.cpp \
1254 src/extensions/QIComboBox.cpp \
1255 src/extensions/QIDialog.cpp \
1256 src/extensions/QIDialogButtonBox.cpp \
1257 src/extensions/QIDialogContainer.cpp \
1258 src/extensions/QIFileDialog.cpp \
1259 src/extensions/QIFlowLayout.cpp \
1260 src/extensions/QIInputDialog.cpp \
1261 src/extensions/QILabel.cpp \
1262 src/extensions/QILabelSeparator.cpp \
1263 src/extensions/QILineEdit.cpp \
1264 src/extensions/QIMainDialog.cpp \
1265 src/extensions/QIManagerDialog.cpp \
1266 src/extensions/QIMenu.cpp \
1267 src/extensions/QIMessageBox.cpp \
1268 src/extensions/QIProcess.cpp \
1269 src/extensions/QIRichTextLabel.cpp \
1270 src/extensions/QIRichToolButton.cpp \
1271 src/extensions/QISplitter.cpp \
1272 src/extensions/QIStatusBar.cpp \
1273 src/extensions/QIStatusBarIndicator.cpp \
1274 src/extensions/QIStyledItemDelegate.cpp \
1275 src/extensions/QITableView.cpp \
1276 src/extensions/QITabWidget.cpp \
1277 src/extensions/QIToolButton.cpp \
1278 src/extensions/QITreeView.cpp \
1279 src/extensions/QITreeWidget.cpp \
1280 src/extensions/QIWidgetValidator.cpp \
1281 src/extensions/graphics/QIGraphicsView.cpp \
1282 src/extensions/graphics/QIGraphicsWidget.cpp \
1283 src/extradata/UIExtraDataDefs.cpp \
1284 src/extradata/UIExtraDataManager.cpp \
1285 src/converter/UIConverter.cpp \
1286 src/converter/UIConverterBackendCOM.cpp \
1287 src/converter/UIConverterBackendGlobal.cpp \
1288 src/globals/COMDefs.cpp \
1289 src/globals/UIActionPool.cpp \
1290 src/globals/UIActionPoolManager.cpp \
1291 src/globals/UIActionPoolRuntime.cpp \
1292 src/globals/UIAnimationFramework.cpp \
1293 src/globals/UICloudNetworkingStuff.cpp \
1294 src/globals/UICommon.cpp \
1295 src/globals/UICustomFileSystemModel.cpp \
1296 src/globals/UIDefs.cpp \
1297 src/globals/UIDesktopWidgetWatchdog.cpp \
1298 src/globals/UIDetailsGenerator.cpp \
1299 src/globals/UIDialogPanel.cpp \
1300 src/globals/UIErrorString.cpp \
1301 src/globals/UIIconPool.cpp \
1302 src/globals/UIImageTools.cpp \
1303 src/globals/UIMachineAttributeSetter.cpp \
1304 src/globals/UIMainEventListener.cpp \
1305 src/globals/UIMessageCenter.cpp \
1306 src/globals/UIModalWindowManager.cpp \
1307 src/globals/UIMousePointerShapeData.cpp \
1308 src/globals/UIPathOperations.cpp \
1309 src/globals/UIPopupCenter.cpp \
1310 src/globals/UIProgressEventHandler.cpp \
1311 src/globals/UIQObjectStuff.cpp \
1312 src/globals/UIShortcutPool.cpp \
1313 src/globals/UITextTable.cpp \
1314 src/globals/UITask.cpp \
1315 src/globals/UIThreadPool.cpp \
1316 src/globals/UIVersion.cpp \
1317 src/globals/UIVirtualBoxEventHandler.cpp \
1318 src/logviewer/UIVMLogPage.cpp \
1319 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1320 src/logviewer/UIVMLogViewerDialog.cpp \
1321 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1322 src/logviewer/UIVMLogViewerOptionsPanel.cpp \
1323 src/logviewer/UIVMLogViewerPanel.cpp \
1324 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1325 src/logviewer/UIVMLogViewerTextEdit.cpp \
1326 src/logviewer/UIVMLogViewerWidget.cpp \
1327 src/monitor/UIMonitorCommon.cpp \
1328 src/monitor/performance/UIPerformanceMonitor.cpp \
1329 src/medium/UIFDCreationDialog.cpp \
1330 src/medium/UIMedium.cpp \
1331 src/medium/UIMediumDefs.cpp \
1332 src/medium/UIMediumEnumerator.cpp \
1333 src/medium/UIMediumItem.cpp \
1334 src/medium/UIMediumSearchWidget.cpp \
1335 src/medium/UIMediumSelector.cpp \
1336 src/medium/viso/UIVisoBrowserBase.cpp \
1337 src/medium/viso/UIVisoContentBrowser.cpp \
1338 src/medium/viso/UIVisoCreator.cpp \
1339 src/medium/viso/UIVisoConfigurationPanel.cpp \
1340 src/medium/viso/UIVisoCreatorOptionsPanel.cpp \
1341 src/medium/viso/UIVisoHostBrowser.cpp \
1342 src/objects/UIRichTextString.cpp \
1343 src/settings/UISettingsDefs.cpp \
1344 src/settings/UISettingsDialog.cpp \
1345 src/settings/UISettingsDialogSpecific.cpp \
1346 src/settings/UISettingsPage.cpp \
1347 src/settings/UISettingsSelector.cpp \
1348 src/settings/UISettingsSerializer.cpp \
1349 src/settings/global/UIGlobalSettingsExtension.cpp \
1350 src/settings/global/UIGlobalSettingsGeneral.cpp \
1351 src/settings/global/UIGlobalSettingsInput.cpp \
1352 src/settings/global/UIGlobalSettingsLanguage.cpp \
1353 src/settings/global/UIGlobalSettingsDisplay.cpp \
1354 src/settings/global/UIGlobalSettingsNetwork.cpp \
1355 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1356 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1357 src/settings/machine/UIMachineSettingsAudio.cpp \
1358 src/settings/machine/UIMachineSettingsDisplay.cpp \
1359 src/settings/machine/UIMachineSettingsGeneral.cpp \
1360 src/settings/machine/UIMachineSettingsInterface.cpp \
1361 src/settings/machine/UIMachineSettingsNetwork.cpp \
1362 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1363 src/settings/machine/UIMachineSettingsSF.cpp \
1364 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1365 src/settings/machine/UIMachineSettingsSerial.cpp \
1366 src/settings/machine/UIMachineSettingsStorage.cpp \
1367 src/settings/machine/UIMachineSettingsSystem.cpp \
1368 src/settings/machine/UIMachineSettingsUSB.cpp \
1369 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1370 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1371 src/widgets/UIAudioControllerEditor.cpp \
1372 src/widgets/UIAudioHostDriverEditor.cpp \
1373 src/widgets/UIBaseMemoryEditor.cpp \
1374 src/widgets/UIBaseMemorySlider.cpp \
1375 src/widgets/UIBootOrderEditor.cpp \
1376 src/widgets/UIFilePathSelector.cpp \
1377 src/widgets/UIFilmContainer.cpp \
1378 src/widgets/UIGraphicsControllerEditor.cpp \
1379 src/widgets/UIHostComboEditor.cpp \
1380 src/widgets/UIHotKeyEditor.cpp \
1381 src/widgets/UIMediaComboBox.cpp \
1382 src/widgets/UIMediumSizeEditor.cpp \
1383 src/widgets/UIMenuBar.cpp \
1384 src/widgets/UIMenuBarEditorWindow.cpp \
1385 src/widgets/UINameAndSystemEditor.cpp \
1386 src/widgets/UINetworkAttachmentEditor.cpp \
1387 src/widgets/UIPopupBox.cpp \
1388 src/widgets/UIPopupPane.cpp \
1389 src/widgets/UIPopupPaneButtonPane.cpp \
1390 src/widgets/UIPopupPaneMessage.cpp \
1391 src/widgets/UIPopupPaneDetails.cpp \
1392 src/widgets/UIPopupStack.cpp \
1393 src/widgets/UIPopupStackViewport.cpp \
1394 src/widgets/UIPortForwardingTable.cpp \
1395 src/widgets/UIProgressDialog.cpp \
1396 src/widgets/UIScaleFactorEditor.cpp \
1397 src/widgets/UISearchLineEdit.cpp \
1398 src/widgets/UISlidingToolBar.cpp \
1399 src/widgets/UISpecialControls.cpp \
1400 src/widgets/UIStatusBarEditorWindow.cpp \
1401 src/widgets/UIToolBar.cpp \
1402 src/widgets/UIVideoMemoryEditor.cpp \
1403 src/widgets/UIVirtualCPUEditor.cpp \
1404 src/widgets/UIVisualStateEditor.cpp \
1405 src/widgets/UIWarningPane.cpp \
1406 src/wizards/UIWizard.cpp \
1407 src/wizards/UIWizardPage.cpp \
1408 src/wizards/newvd/UIWizardNewVD.cpp \
1409 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1410 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1411 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1412 src/wizards/newvd/UIWizardNewVDPageExpert.cpp
1413
1414ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1415 UICommon_SOURCES += \
1416 src/net/UIDownloader.cpp \
1417 src/net/UIDownloaderAdditions.cpp \
1418 src/net/UIDownloaderExtensionPack.cpp \
1419 src/net/UIDownloaderUserManual.cpp \
1420 src/net/UINetworkCustomer.cpp \
1421 src/net/UINetworkManager.cpp \
1422 src/net/UINetworkManagerDialog.cpp \
1423 src/net/UINetworkManagerIndicator.cpp \
1424 src/net/UINetworkRequest.cpp \
1425 src/net/UINetworkRequestWidget.cpp \
1426 src/net/UINetworkReply.cpp \
1427 src/net/UIUpdateDefs.cpp \
1428 src/net/UIUpdateManager.cpp \
1429 src/settings/global/UIGlobalSettingsProxy.cpp \
1430 src/settings/global/UIGlobalSettingsUpdate.cpp
1431endif
1432
1433if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1434 UICommon_SOURCES += \
1435 src/platform/x11/VBoxX11Helper.cpp \
1436 src/platform/x11/XKeyboard-new.cpp
1437endif
1438
1439UICommon_SOURCES.win += \
1440 src/platform/win/VBoxUtils-win.cpp \
1441 src/platform/win/WinKeyboard.cpp
1442
1443UICommon_SOURCES.darwin += \
1444 src/platform/darwin/CocoaEventHelper.mm \
1445 src/platform/darwin/DarwinKeyboard.cpp \
1446 src/platform/darwin/UICocoaApplication.mm \
1447 src/platform/darwin/UICocoaSpecialControls.mm \
1448 src/platform/darwin/UIWindowMenuManager.cpp \
1449 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1450 src/platform/darwin/VBoxUtils-darwin.cpp
1451
1452
1453#
1454# VirtualBox Manager Application
1455# Deployment.
1456#
1457if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1458 INSTALLS.linux += VirtualBox.qt.conf
1459 INSTALLS.solaris += VirtualBox.qt.conf
1460 VirtualBox.qt.conf_INST = $(INST_BIN)
1461 VirtualBox.qt.conf_MODE = 644
1462 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1463
1464$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1465 $(QUIET)$(RM) -f $@
1466 $(QUIET)$(APPEND) $@ "[Paths]"
1467 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1468endif
1469
1470
1471#
1472# VirtualBox Manager Application
1473# The Qt modules we're using.
1474# (The include directory and lib/framework for each module will be added by the Qt unit.)
1475#
1476VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1477VirtualBox_QT_MODULES.linux += X11Extras
1478VirtualBox_QT_MODULES.solaris += X11Extras
1479VirtualBox_QT_MODULES.freebsd += X11Extras
1480VirtualBox_QT_MODULES.darwin += MacExtras
1481VirtualBox_QT_MODULES.win += WinExtras
1482ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1483 VirtualBox_QT_MODULES += OpenGL
1484endif
1485
1486
1487#
1488# VirtualBox Virtual Machine Application
1489# The Qt modules we're using.
1490# (The include directory and lib/framework for each module will be added by the Qt unit.)
1491#
1492VirtualBoxVM_QT_MODULES = Core Gui Widgets PrintSupport
1493VirtualBoxVM_QT_MODULES.linux += X11Extras
1494VirtualBoxVM_QT_MODULES.solaris += X11Extras
1495VirtualBoxVM_QT_MODULES.freebsd += X11Extras
1496VirtualBoxVM_QT_MODULES.darwin += MacExtras
1497VirtualBoxVM_QT_MODULES.win += WinExtras
1498ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1499 VirtualBoxVM_QT_MODULES += OpenGL
1500endif
1501
1502
1503#
1504# VirtualBox - GUI Global Shared Library.
1505# The Qt modules we're using.
1506# (The include directory and lib/framework for each module will be added by the Qt unit.)
1507#
1508UICommon_QT_MODULES = Core Gui Widgets
1509UICommon_QT_MODULES.linux += X11Extras
1510UICommon_QT_MODULES.solaris += X11Extras
1511UICommon_QT_MODULES.freebsd += X11Extras
1512UICommon_QT_MODULES.darwin += MacExtras
1513UICommon_QT_MODULES.win += WinExtras
1514ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
1515 UICommon_QT_MODULES += OpenGL
1516endif
1517
1518
1519# Pull in the ui files
1520$(eval VirtualBox_SOURCES += $(FORMS))
1521$(eval VirtualBoxVM_SOURCES += $(FORMS))
1522$(eval UICommon_SOURCES += $(FORMS))
1523
1524
1525# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1526UICommon_SOURCES += VirtualBox1.qrc
1527VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1528UICommon_SOURCES += VirtualBox2.qrc
1529VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1530UICommon_SOURCES += VirtualBox1_x2.qrc
1531VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1532UICommon_SOURCES += VirtualBox2_x2.qrc
1533VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1534UICommon_SOURCES += VirtualBox1_x3.qrc
1535VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1536UICommon_SOURCES += VirtualBox2_x3.qrc
1537VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1538UICommon_SOURCES += VirtualBox1_x4.qrc
1539VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1540UICommon_SOURCES += VirtualBox2_x4.qrc
1541VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1542UICommon_SOURCES += VirtualBox_xml.qrc
1543VirtualBox_xml.qrc_RCCFLAGS = -name BASIC_XML
1544UICommon_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1545$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1546
1547
1548# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1549VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1550 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1551# Compress the translation units.
1552VirtualBox_LRCFLAGS = -silent
1553# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1554VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1555# All files which contain translatable strings.
1556VirtualBox_VBOX_ALL_NLS_SOURCES = $(VirtualBox_SOURCES) $(VirtualBoxVM_SOURCES) $(UICommon_SOURCES)
1557
1558
1559## @todo how to detect what tool is used?
1560## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1561# more generic -Wno-extra
1562# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1563ifdef VBOX_WITH_XPCOM
1564 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1565endif
1566
1567
1568#
1569# Build generated COM wrappers as part of app.
1570# VirtualBox - GUI Global Shared Library.
1571#
1572includedep $(PATH_TARGET)/UICommonComWrapperFiles.dep
1573UICommon_BLDDIRS += $(UICommon_0_OUTDIR)/include
1574UICommon_INTERMEDIATES += $(UICommon_0_OUTDIR)/include/COMWrappers
1575UICommon_SOURCES += $(UICommon_0_OUTDIR)/include/COMWrappers.cpp
1576UICommon_CLEAN += $(wildcard $(UICommon_0_OUTDIR)/include/*) $(PATH_TARGET)/UICommonComWrapperFiles.dep
1577
1578## @todo kmk doesn't remake optional outputs when they are missing...
1579$$(UICommon_0_OUTDIR)/include/COMWrappers \
1580+ $(PATH_TARGET)/UICommonComWrapperFiles.dep \
1581+| $(if-expr defined(UICommon_VBOX_COMWRAPPERS) \
1582, $(UICommon_VBOX_COMWRAPPERS) \
1583, $$(UICommon_0_OUTDIR)/include/COMEnums.h \
1584 $$(UICommon_0_OUTDIR)/include/COMWrappers.cpp \
1585): \
1586 $(VBOX_XIDL_FILE) \
1587 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1588 $(VBOX_FILESPLIT) \
1589 | $$(dir $$@)
1590 $(call MSG_GENERATE,UICommon,$<,$@)
1591 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/UICommonComWrapperFiles.dep"
1592 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1593 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1594 $(QUIET)$(VBOX_FILESPLIT) $@ $(UICommon_0_OUTDIR)/include \
1595 $(PATH_TARGET)/UICommonComWrapperFiles.dep UICommon_VBOX_COMWRAPPERS
1596 $(APPEND) "$@"
1597
1598# alias for generating the COM Wrappers file.
1599testwrappers:: $$(UICommon_0_OUTDIR)/include/COMWrappers
1600
1601
1602#
1603# Generate qrc file with branded icons.
1604#
1605VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1606VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1607$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1608 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1609 $(PATH_ROOT)/Config.kmk \
1610 | $$(dir $$@)
1611 $(call MSG_GENERATE,VirtualBox,$<,$@)
1612 $(QUIET)$(SED) \
1613 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1614 -e 's;@VBOX_ABOUT_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_X2_PNG);g' \
1615 -e 's;@VBOX_ABOUT_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_X3_PNG);g' \
1616 -e 's;@VBOX_ABOUT_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_X4_PNG);g' \
1617 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1618 -e 's;@VBOX_ABOUT_16PX_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X2_PNG);g' \
1619 -e 's;@VBOX_ABOUT_16PX_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X3_PNG);g' \
1620 -e 's;@VBOX_ABOUT_16PX_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X4_PNG);g' \
1621 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1622 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1623 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1624 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1625 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1626 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1627 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1628 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1629 --output $@ \
1630 $<
1631
1632
1633#
1634# Precompiled header
1635# win.amd64 without: kmk_time: 3m51.962058s
1636# win.amd64 with: kmk_time: 2m23.336252s
1637# linux.amd64 without: time: real 1m03.719s user 26m26.766s sys 2m03.526s
1638# linux.amd64 with: time: real 0m42.650s user 14m46.332s sys 1m28.463s
1639#
1640ifdef VBOX_WITH_PRECOMPILED_HEADERS
1641 if1of ($(KBUILD_TARGET),win)
1642 VirtualBox_USES += vccprecomp
1643 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1644
1645 VirtualBoxVM_USES += vccprecomp
1646 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1647
1648 UICommon_USES += vccprecomp
1649 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1650
1651 else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
1652 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
1653 UICommon_USES += gccprecomp
1654 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1655 #UICommon_CXXFLAGS.linux += -H
1656
1657 VirtualBox_USES += gccprecomp
1658 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1659 #VirtualBox_CXXFLAGS.linux += -H
1660
1661 VirtualBoxVM_USES += gccprecomp
1662 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1663 #VirtualBoxVM_CXXFLAGS.linux += -H
1664
1665 # GCC precompiled headers seems to work more efficiently when #pragma once is involved.
1666 # So, we've cooked our own camel cased qt wrapper headers with #pragma once inside.
1667 VBOX_GUI_INC_DIRS <= precomptricks
1668 endif
1669 endif
1670endif
1671
1672ifeq ($(KBUILD_TARGET),win)
1673#
1674# On Windows we'll have to generate/edit part of the resource file.
1675# The IDI_ICON1 name is Qt specific.
1676#
1677src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1678src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1679src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1680src/platform/win/VirtualBoxVM.rc_INCS = $(VirtualBox_0_OUTDIR)
1681src/platform/win/VirtualBoxVM.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1682src/platform/win/VirtualBoxVM.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1683
1684$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1685 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1686
1687endif # win
1688
1689
1690#
1691# Unset everything that was loaded from VBoxUI.pro.
1692#
1693FORMS :=
1694TRANSLATIONS :=
1695
1696
1697
1698ifeq ($(KBUILD_TARGET),win)
1699#
1700# Install the visual manifest and associated PNGs.
1701#
1702INSTALLS.win += VirtualBoxManifest
1703VirtualBoxManifest_INST = $(INST_VIRTUALBOX)
1704VirtualBoxManifest_DEFPATH = $(PATH_ROOT)/src/VBox/Artwork/$(if-expr defined(VBOX_OSE),OSE,NonOSE)/
1705VirtualBoxManifest_SOURCES := \
1706 virtualbox-70px.png=>VirtualBox_70px.png \
1707 virtualbox-150px.png=>VirtualBox_150px.png \
1708 $(PATH_SUB_CURRENT)/src/platform/win/VirtualBox.VisualElementsManifest.xml
1709
1710endif
1711
1712
1713ifeq ($(KBUILD_TARGET),darwin)
1714#
1715# Create directories for each approved language or the application
1716# menu won't be translated.
1717#
1718INSTALLS += VirtualBox.lproj
1719VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1720VirtualBox.lproj_MODE = 755
1721VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1722
1723#
1724# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1725# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1726#
1727INSTALLS += VirtualBox.app
1728VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1729VirtualBox.app_MODE = 644
1730VirtualBox.app_SOURCES = \
1731 src/platform/darwin/PkgInfo \
1732 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1733 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1734 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1735 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1736 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1737 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1738 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1739 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1740 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1741 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1742 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1743
1744 # Qt5 requires qt.conf on Mac OS X:
1745 VirtualBox.app_SOURCES += \
1746 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1747
1748 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1749 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1750 $(QUIET)$(RM) -f $@
1751 $(QUIET)$(SED) \
1752 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1753 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1754 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1755 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1756 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1757 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1758 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1759 $< > $@
1760
1761 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1762 $(QUIET)$(RM) -f $@
1763 $(QUIET)$(APPEND) $@ "[Paths]"
1764 ifdef VBOX_WITH_HARDENING # Not necessary and will screwup copying files elsewhere to test.
1765 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1766 endif
1767
1768 INSTALLS += VirtualBoxVM.app
1769 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1770 VirtualBoxVM.app_MODE = 644
1771 VirtualBoxVM.app_SOURCES = \
1772 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1773 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1774 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1775
1776 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1777 $(call MSG_GENERATE,VirtualBoxVM.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 --output $@ $<
1788
1789 PROGRAMS += vmstarter
1790 vmstarter_TEMPLATE = VBOXR3EXE
1791 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1792 vmstarter_LDFLAGS += -framework AppKit
1793 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1794 vmstarter_INST = $(INST_BIN)vmstarter
1795
1796 INSTALLS += vmstarter.app
1797 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1798 vmstarter.app_MODE = 644
1799 vmstarter.app_SOURCES = \
1800 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1801 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1802 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1803 vmstarter.app_SYMLINKS = \
1804 MacOS=>../../../MacOS \
1805
1806 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1807 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1808 $(QUIET)$(RM) -f $@
1809 $(QUIET)$(SED) \
1810 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1811 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1812 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1813 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1814 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1815 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1816 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1817 --output $@ $<
1818endif # darwin
1819
1820
1821#
1822# Testcase for the darwin keyboard routines.
1823#
1824ifdef VBOX_WITH_TESTCASES
1825 PROGRAMS.darwin += tstDarwinKeyboard
1826 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1827 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1828 tstDarwinKeyboard_INCS = \
1829 $(VBOX_GUI_INC_DIRS)
1830 tstDarwinKeyboard_SOURCES = \
1831 src/platform/darwin/tstDarwinKeyboard.cpp \
1832 src/platform/darwin/DarwinKeyboard.cpp
1833 tstDarwinKeyboard_SOURCES.amd64 = \
1834 src/platform/darwin/CocoaEventHelper.mm
1835 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1836 tstDarwinKeyboard_LIBS = \
1837 $(LIB_RUNTIME)
1838 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
1839endif
1840
1841
1842#
1843# Doxygen documentation.
1844#
1845QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1846BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1847OTHER_CLEAN += \
1848 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1849 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
1850 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1851
1852QTGUI_DOXYFILE_INPUT_DIRS := \
1853 $(addprefix $(PATH_SUB_CURRENT)/src/, \
1854 converter \
1855 extensions \
1856 extensions/graphics \
1857 extradata \
1858 globals \
1859 manager \
1860 manager/chooser \
1861 manager/details \
1862 manager/tools \
1863 manager \
1864 manager \
1865 medium \
1866 net \
1867 objects \
1868 platform \
1869 platform/darwin \
1870 platform/os2 \
1871 platform/win \
1872 platform/x11 \
1873 runtime \
1874 runtime/fullscreen \
1875 runtime/information \
1876 runtime/guestctrl \
1877 runtime/normal \
1878 runtime/scale \
1879 runtime/seamless \
1880 selector \
1881 selector/graphics \
1882 selector/graphics/chooser \
1883 selector/graphics/details \
1884 settings \
1885 settings/global \
1886 settings/machine \
1887 widgets \
1888 widgets/graphics \
1889 wizards \
1890 wizards/addcloudvm \
1891 wizards/clonevd \
1892 wizards/clonevm \
1893 wizards/exportappliance \
1894 wizards/firstrun \
1895 wizards/importappliance \
1896 wizards/newcloudvm \
1897 wizards/newvd \
1898 wizards/newvm)
1899
1900QTGUI_DOXYFILE_INPUT := \
1901 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
1902 $(sort $(wildcard $(dir)/*.h)) \
1903 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
1904
1905includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
1906
1907# Generate the Doxyfile
1908$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
1909 $(PATH_SUB_CURRENT)/Doxyfile \
1910 $(PATH_SUB_CURRENT)/Makefile.kmk \
1911 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
1912 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
1913 | $$(dir $$@)
1914 $(QUIET)$(RM) -f $@ [email protected] [email protected]
1915 $(QUIET)$(CP) -f $< [email protected]
1916 $(QUIET)$(APPEND) [email protected]
1917 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
1918 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
1919 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
1920 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1921 $(QUIET)$(APPEND) [email protected]
1922 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
1923 $(QUIET)$(APPEND) [email protected]
1924 $(QUIET)$(MV) -f [email protected] $@
1925 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
1926 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
1927
1928# Do the actual job.
1929$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
1930 | $(QTGUI_DOXYFILE_OUTPUT)/
1931 $(call MSG_L1,doxygen qtgui)
1932 $(QUIET)$(RM) -f $@
1933 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
1934 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
1935 $(APPEND) $@
1936
1937# aliases
1938docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1939if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1940docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1941endif
1942
1943
1944# Commit the magic.
1945# (note: before custom rules that make usage of generated variables!).
1946include $(FILE_KBUILD_SUB_FOOTER)
1947
1948
1949#
1950# Update all known NLS translation (.ts) files in the nls/ subdirectory.
1951#
1952# NOTE: This target is intended to be run only by the GUI maintainer shortly
1953# before a new product release. VirtualBox_xx_YY.ts is a template for new
1954# languages and should never be actually translated or installed.
1955#
1956# Use the checknls target for checking again common mistakes done by the
1957# translators.
1958#
1959# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
1960# lupdate call
1961#
1962#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
1963checknls::
1964 # Check for missing :/ in image paths
1965 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
1966
1967updatenls:: makeallnls nls/VirtualBox_en.ts
1968
1969makeallnls:: \
1970 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1971 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1972 $(call MSG_L1,lupdate all languages (nls/*.ts))
1973 $(QUIET)$(TOOL_QT5_LUPDATE) \
1974 $^ \
1975 -ts \
1976 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
1977 nls/VirtualBox_xx_YY.ts
1978
1979# Create the English translation file. This is something special cause it will
1980# contain the plural forms only.
1981nls/VirtualBox_en.ts: \
1982 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
1983 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
1984 $(call MSG_L1,lupdate $@)
1985 $(QUIET)$(TOOL_QT5_LUPDATE) \
1986 $^ \
1987 -ts \
1988 $@
1989 $(QUIET)$(SED) -n -i -e \
1990 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
1991 $@
1992
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