VirtualBox

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

Last change on this file since 83858 was 83853, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9653: Implement UIQObjectStuff classes which operates over QObject properties; These are helpers used to work with actions in our case.

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