VirtualBox

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

Last change on this file since 84188 was 84020, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9653: Implementing possibility to edit separate cloud VM settings directly from Details pane.

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