VirtualBox

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

Last change on this file since 83271 was 83157, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9653: VirtualBox Manager: Moving UICloudNetworkingStuff namespace to globals.

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