VirtualBox

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

Last change on this file since 80554 was 80413, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9510: Removing obsolete files/classes.

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