VirtualBox

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

Last change on this file since 80222 was 80200, checked in by vboxsync, 5 years ago

FE/Qt: bugref:7720: VM settings / Network page: Replace heavily distributed across network page widgets related to network attachment type & adapter name functionality with single UINetworkAttachmentEditor.

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