VirtualBox

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

Last change on this file since 79523 was 79365, checked in by vboxsync, 5 years ago

Renaming VBoxGlobal to UICommon for bugref:9049 as planned.

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