VirtualBox

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

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

FE/Qt: bugref:9434: Import Appliance wizard: Integrate new Form Editor widget (hidden/empty for now) onto 2nd basic page.

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