VirtualBox

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

Last change on this file since 78823 was 78724, checked in by vboxsync, 6 years ago

FE/Qt: bugref:7127: Make VBOX_GUI_WITH_NEW_MEDIA_EVENTS define global for whole the GUI (disabled for now), we can need it in various places.

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