VirtualBox

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

Last change on this file since 83432 was 83350, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9080: Makefile cleanup for r127977.

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