VirtualBox

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

Last change on this file since 78722 was 78567, checked in by vboxsync, 6 years ago

FE/Qt: bugref:6143. Adding a new qrc file for layout xml files and some initial dialog implementation.

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