VirtualBox

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

Last change on this file since 79151 was 78954, checked in by vboxsync, 6 years ago

FE/Qt: bugref:9434: Moving UIFormEditorWidget to widgets section of the project, it will be reused from different wizards.

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