VirtualBox

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

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

FE/Qt: Removing source medium selector from the clone medium wizard(s)

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