VirtualBox

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

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

FE/Qt: bugref:9241: VirtualBox Manager: Chooser pane: Move UIChooserAbstractModel to separate files.

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