VirtualBox

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

Last change on this file since 83992 was 83963, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9653: VirtualBox Manager: Initial cloud VM settings dialog implementation.

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