VirtualBox

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

Last change on this file since 72227 was 72227, checked in by vboxsync, 7 years ago

FE/Qt bugref:6769: Replacing the path line edit with a label UIVMNamePathSelector

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 89.3 KB
Line 
1# $Id: Makefile.kmk 72227 2018-05-17 08:11:13Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2018 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 += VirtualBoxHardened
35 PROGRAMS.darwin += VirtualBoxVM
36 DLLS += VirtualBox
37else
38 PROGRAMS += VirtualBox
39 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
40 PROGRAMS += VirtualBoxVM
41 DLLS += VBoxGlobal
42 endif
43endif
44INSTALLS += VirtualBox.nls
45
46
47#
48# Include the language lists.
49#
50include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
51
52
53#
54# Hardened VirtualBox.
55#
56VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
57VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
58VirtualBoxHardened_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
59VirtualBoxHardened_NAME = VirtualBox
60VirtualBoxHardened_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
61src/platform/win/VirtualBoxHardened.rc_INCS = $(VirtualBox_0_OUTDIR)
62src/platform/win/VirtualBoxHardened.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
63
64
65#
66# Hardened VirtualBoxVM.
67#
68ifndef VBOX_GUI_WITH_SHARED_LIBRARY
69 ifeq ($(KBUILD_TARGET),darwin)
70 VirtualBoxVM_EXTENDS = VirtualBoxHardened
71 VirtualBoxVM_NAME = VirtualBoxVM
72 VirtualBoxVM_DEFS = $(VirtualBoxHardened_DEFS) VBOX_RUNTIME_UI
73 endif
74else
75 ifdef VBOX_WITH_HARDENING
76 VirtualBoxVM_EXTENDS = VirtualBoxHardened
77 VirtualBoxVM_NAME = VirtualBoxVM
78 VirtualBoxVM_DEFS = $(VirtualBoxHardened_DEFS)
79 endif
80endif
81
82
83#
84# Include Qt project file, we'll use FORMS and TRANSLATIONS in
85# the VirtualBox setup below.
86#
87# This is a bit messy. We boldly ASSUME that LANGUAGE, IMAGES, FORMS
88# and TRANSLATIONS are all unused by kBuild and the host toolchain.
89#
90SAVED_TEMPLATE := $(TEMPLATE)
91include $(PATH_SUB_CURRENT)/VBoxUI.pro
92TEMPLATE := $(SAVED_TEMPLATE)
93SAVED_TEMPLATE :=
94LANGUAGE :=
95IMAGES :=
96# FORMS and TRANSLATIONS are reset further down.
97
98
99#
100# Perform initial new version check on startup.
101# If this setting is disabled the user can still check using the menu.
102#
103ifndef VBOX_OSE
104VBOX_WITH_UPDATE_REQUEST := 1
105endif
106
107
108#
109# VirtualBox Manager Application
110#
111VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
112VirtualBox_NAME = VirtualBox
113# For the launch trick we need different inode numbers.
114if !defined(VBOX_WITH_HARDENING) && !defined(VBOX_GUI_WITH_SHARED_LIBRARY)
115 VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
116endif
117VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
118
119VirtualBox_DEFS =
120VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
121VirtualBox_DEFS.linux = VBOX_WS_X11
122VirtualBox_DEFS.solaris = VBOX_WS_X11
123VirtualBox_DEFS.freebsd = VBOX_WS_X11
124VirtualBox_DEFS.darwin = VBOX_WS_MAC
125VirtualBox_DEFS.win = VBOX_WS_WIN
126VirtualBox_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
127VirtualBox_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
128VirtualBox_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
129VirtualBox_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
130VirtualBox_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
131VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
132VirtualBox_DEFS.win += UNICODE QT_DLL
133VirtualBox_DEFS += \
134 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
135 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
136 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
137 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
138 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
139 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
140 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
141 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
142 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
143 $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
144 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
145 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
146 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
147 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
148 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
149 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
150 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
151 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
152 $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
153 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
154 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
155 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
156 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
157 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
158 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
159ifdef VBOX_WITH_DEBUGGER_GUI
160 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
161 if "$(KBUILD_TYPE)" != "release"
162 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
163 endif
164endif
165ifdef VBOX_WITH_VIDEOHWACCEL
166 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
167else ifdef VBOX_GUI_USE_QGL
168 VirtualBox_DEFS += VBOX_GUI_USE_QGL
169endif
170ifdef VBOX_WITH_LIBCURL
171 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
172 VBOX_GUI_WITH_NETWORK_MANAGER := 1
173endif
174ifneq ($(KBUILD_TYPE),release)
175 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
176endif
177ifdef VBOX_WITH_ICHAT_THEATER
178 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
179endif
180
181
182ifdef VBOX_GUI_WITH_SHARED_LIBRARY
183 #
184 # VirtualBox Virtual Machine Application
185 #
186 VirtualBoxVM_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
187 VirtualBoxVM_NAME = VirtualBoxRT
188 VirtualBoxVM_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
189 VirtualBoxVM_DEFS += VBOX_RUNTIME_UI
190 VirtualBoxVM_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
191 VirtualBoxVM_DEFS.linux = VBOX_WS_X11
192 VirtualBoxVM_DEFS.solaris = VBOX_WS_X11
193 VirtualBoxVM_DEFS.freebsd = VBOX_WS_X11
194 VirtualBoxVM_DEFS.darwin = VBOX_WS_MAC
195 VirtualBoxVM_DEFS.win = VBOX_WS_WIN
196 VirtualBoxVM_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
197 VirtualBoxVM_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
198 VirtualBoxVM_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
199 VirtualBoxVM_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
200 VirtualBoxVM_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
201 VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
202 VirtualBoxVM_DEFS.win += UNICODE QT_DLL
203 VirtualBoxVM_DEFS += \
204 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
205 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
206 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
207 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
208 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
209 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
210 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
211 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
212 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
213 $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
214 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
215 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
216 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
217 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
218 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
219 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
220 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
221 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
222 $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
223 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
224 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
225 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
226 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
227 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
228 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
229 ifdef VBOX_WITH_DEBUGGER_GUI
230 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI
231 if "$(KBUILD_TYPE)" != "release"
232 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
233 endif
234 endif
235 ifdef VBOX_WITH_VIDEOHWACCEL
236 VirtualBoxVM_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
237 else ifdef VBOX_GUI_USE_QGL
238 VirtualBoxVM_DEFS += VBOX_GUI_USE_QGL
239 endif
240 ifdef VBOX_WITH_LIBCURL
241 VirtualBoxVM_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
242 VBOX_GUI_WITH_NETWORK_MANAGER := 1
243 endif
244 ifneq ($(KBUILD_TYPE),release)
245 VirtualBoxVM_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
246 endif
247 ifdef VBOX_WITH_ICHAT_THEATER
248 VirtualBoxVM_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
249 endif
250
251
252 #
253 # VirtualBox - GUI Global Shared Library.
254 #
255 VBoxGlobal_TEMPLATE = VBOXQTGUI
256 VBoxGlobal_NAME = VBoxGlobal
257 VBoxGlobal_DEFS =
258 VBoxGlobal_DEFS += VBOX_GUI_LIBRARY
259 VBoxGlobal_DEFS.darwin = VBOX_WS_MAC
260 VBoxGlobal_DEFS.freebsd = VBOX_WS_X11
261 VBoxGlobal_DEFS.linux = VBOX_WS_X11
262 VBoxGlobal_DEFS.solaris = VBOX_WS_X11
263 VBoxGlobal_DEFS.win = VBOX_WS_WIN
264 VBoxGlobal_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
265 VBoxGlobal_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
266 #VBoxGlobal_DEFS.win += UNICODE QT_DLL
267 VBoxGlobal_DEFS += \
268 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
269 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
270 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
271 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
272 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
273 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
274 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
275 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
276 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
277 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
278 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
279 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
280 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
281 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
282 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
283 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
284 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
285 ifdef VBOX_WITH_DEBUGGER_GUI
286 VBoxGlobal_DEFS += VBOX_WITH_DEBUGGER_GUI
287 if "$(KBUILD_TYPE)" != "release"
288 VBoxGlobal_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
289 endif
290 endif
291 ifdef VBOX_WITH_VIDEOHWACCEL
292 VBoxGlobal_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
293 else ifdef VBOX_GUI_USE_QGL
294 VBoxGlobal_DEFS += VBOX_GUI_USE_QGL
295 endif
296 ifdef VBOX_WITH_LIBCURL
297 VBoxGlobal_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
298 VBOX_GUI_WITH_NETWORK_MANAGER := 1
299 endif
300 ifneq ($(KBUILD_TYPE),release)
301 VBoxGlobal_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
302 endif
303 ifdef VBOX_WITH_ICHAT_THEATER
304 VBoxGlobal_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
305 endif
306endif
307
308
309#
310# Include folders.
311#
312VBOX_GUI_INC_DIRS = \
313 ./src \
314 ./src/converter \
315 ./src/extensions \
316 ./src/extensions/graphics \
317 ./src/extradata \
318 ./src/globals \
319 ./src/hostnetwork \
320 ./src/logviewer \
321 ./src/medium \
322 ./src/objects \
323 ./src/platform \
324 ./src/platform/darwin \
325 ./src/platform/win \
326 ./src/platform/x11 \
327 ./src/runtime \
328 ./src/runtime/fullscreen \
329 ./src/runtime/normal \
330 ./src/runtime/scale \
331 ./src/runtime/seamless \
332 ./src/runtime/information \
333 ./src/runtime/guestctrl \
334 ./src/selector \
335 ./src/selector/graphics/chooser \
336 ./src/selector/graphics/details \
337 ./src/settings \
338 ./src/settings/global \
339 ./src/settings/machine \
340 ./src/widgets \
341 ./src/widgets/graphics \
342 ./src/wizards \
343 ./src/wizards/newvm \
344 ./src/wizards/newvd \
345 ./src/wizards/clonevm \
346 ./src/wizards/clonevd \
347 ./src/wizards/exportappliance \
348 ./src/wizards/importappliance \
349 ./src/wizards/firstrun
350
351ifdef VBOX_GUI_WITH_NETWORK_MANAGER
352VBOX_GUI_INC_DIRS += \
353 ./src/net
354endif
355
356#
357# VirtualBox Manager Application
358# Include folders.
359#
360VirtualBox_INCS = \
361 $(VBOX_GUI_INC_DIRS) \
362 $(VirtualBox_0_OUTDIR)/include \
363 $(VBoxGlobal_0_OUTDIR)/include \
364 $(VBOX_GRAPHICS_INCS)
365
366ifdef VBOX_GUI_WITH_SHARED_LIBRARY
367 #
368 # VirtualBox Virtual Machine Application
369 # Include folders.
370 #
371 VirtualBoxVM_INCS = \
372 $(VBOX_GUI_INC_DIRS) \
373 $(VirtualBoxVM_0_OUTDIR)/include \
374 $(VBoxGlobal_0_OUTDIR)/include \
375 $(VBOX_GRAPHICS_INCS)
376
377 #
378 # VirtualBox - GUI Global Shared Library.
379 # Include folders.
380 #
381 VBoxGlobal_INCS = \
382 $(VBOX_GUI_INC_DIRS) \
383 $(VBoxGlobal_0_OUTDIR)/include
384endif
385
386
387#
388# VirtualBox Manager Application
389# Compiling/linking flags.
390#
391ifneq ($(KBUILD_TARGET),win)
392VirtualBox_CXXFLAGS += -Wno-switch
393endif
394
395## @todo we're using a number of deprecated APIs, please fix and remove these!
396ifdef VBOX_WITH_NEW_XCODE
397 VirtualBox_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
398 VirtualBox_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
399 VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
400else
401 VirtualBox_CXXFLAGS.darwin += -Wno-deprecated-declarations
402 VirtualBox_OBJCFLAGS.darwin += -Wno-deprecated-declarations
403 VirtualBox_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
404endif
405
406ifeq ($(KBUILD_TYPE),release)
407 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
408else
409 VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
410 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
411endif
412
413VirtualBox_LDFLAGS.darwin = \
414 -framework AppKit -framework Carbon -framework IOKit \
415 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
416ifdef VBOX_WITH_ICHAT_THEATER
417 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
418endif
419
420if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
421 VirtualBox_LDFLAGS.darwin += -framework OpenGL
422endif
423
424
425ifdef VBOX_GUI_WITH_SHARED_LIBRARY
426 #
427 # VirtualBox Virtual Machine Application
428 # Compiling/linking flags.
429 #
430 ifneq ($(KBUILD_TARGET),win)
431 VirtualBoxVM_CXXFLAGS += -Wno-switch
432 endif
433
434 ## @todo we're using a number of deprecated APIs, please fix and remove these!
435 ifdef VBOX_WITH_NEW_XCODE
436 VirtualBoxVM_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
437 VirtualBoxVM_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
438 VirtualBoxVM_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
439 else
440 VirtualBoxVM_CXXFLAGS.darwin += -Wno-deprecated-declarations
441 VirtualBoxVM_OBJCFLAGS.darwin += -Wno-deprecated-declarations
442 VirtualBoxVM_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
443 endif
444
445 ifeq ($(KBUILD_TYPE),release)
446 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:windows
447 else
448 VirtualBoxVM_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
449 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:console
450 endif
451
452 VirtualBoxVM_LDFLAGS.darwin = \
453 -framework AppKit -framework Carbon -framework IOKit \
454 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBoxVM.dylib)
455 ifdef VBOX_WITH_ICHAT_THEATER
456 VirtualBoxVM_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
457 endif
458
459 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
460 VirtualBoxVM_LDFLAGS.darwin += -framework OpenGL
461 endif
462
463
464 #
465 # VirtualBox - GUI Global Shared Library.
466 # Compiling/linking flags.
467 #
468
469 ## @todo we're using a number of deprecated APIs, please fix and remove these!
470 ifdef VBOX_WITH_NEW_XCODE
471 VBoxGlobal_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
472 VBoxGlobal_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
473 VBoxGlobal_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
474 else
475 VBoxGlobal_CXXFLAGS.darwin += -Wno-deprecated-declarations
476 VBoxGlobal_OBJCFLAGS.darwin += -Wno-deprecated-declarations
477 VBoxGlobal_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
478 endif
479
480 VBoxGlobal_LDFLAGS.darwin = \
481 -framework AppKit -framework Carbon -framework IOKit
482
483 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
484 VBoxGlobal_LDFLAGS.darwin += -framework OpenGL
485 endif
486endif
487
488
489#
490# VirtualBox Manager Application
491# Libraries.
492#
493
494# Library required for the hdd backend enumeration:
495VirtualBox_LIBS = $(LIB_DDU)
496
497# Runtime library loader required on X11 hosts:
498if1of ($(KBUILD_TARGET), linux netbsd openbsd)
499 VirtualBox_LIBS += dl
500endif
501
502# Xinerama library required for multi-monitor support:
503VirtualBox_LIBS.linux += Xinerama
504VirtualBox_LIBS.solaris += Xinerama
505VirtualBox_LIBS.freebsd += Xinerama
506
507# XCB library required for direct XCB native code support:
508VirtualBox_LIBS.linux += xcb
509VirtualBox_LIBS.solaris += xcb
510VirtualBox_LIBS.freebsd += xcb
511
512# Various Windows hosts libraries:
513VirtualBox_LIBS.win = \
514 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
515 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
516 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
517
518# VBox keyboard shared library for X11 hosts:
519if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
520 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
521endif
522
523# These are 2D Video Acceleration and 3D Acceleration related libs:
524if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
525 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
526 VirtualBox_LIBS.solaris += GL
527 VirtualBox_LIBS.linux += GL
528 VirtualBox_LIBS.freebsd += GL
529endif
530ifdef VBOX_WITH_CROGL
531 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
532endif
533
534# This one is global shared GUI library:
535ifdef VBOX_GUI_WITH_SHARED_LIBRARY
536 ifeq ($(KBUILD_TARGET),win)
537 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxGlobal$(VBOX_SUFF_LIB)
538 else
539 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
540 endif
541endif
542
543
544ifdef VBOX_GUI_WITH_SHARED_LIBRARY
545 #
546 # VirtualBox Virtual Machine Application
547 # Libraries.
548 #
549
550 # Library required for the hdd backend enumeration:
551 VirtualBoxVM_LIBS = $(LIB_DDU)
552
553 # Runtime library loader required on X11 hosts:
554 if1of ($(KBUILD_TARGET), linux netbsd openbsd)
555 VirtualBoxVM_LIBS += dl
556 endif
557
558 # Xinerama library required for multi-monitor support:
559 VirtualBoxVM_LIBS.linux += Xinerama
560 VirtualBoxVM_LIBS.solaris += Xinerama
561 VirtualBoxVM_LIBS.freebsd += Xinerama
562
563 # XCB library required for direct XCB native code support:
564 VirtualBoxVM_LIBS.linux += xcb
565 VirtualBoxVM_LIBS.solaris += xcb
566 VirtualBoxVM_LIBS.freebsd += xcb
567
568 # Various Windows hosts libraries:
569 VirtualBoxVM_LIBS.win = \
570 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
571 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
572 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
573
574 # VBox keyboard shared library for X11 hosts:
575 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
576 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
577 endif
578
579 # These are 2D Video Acceleration and 3D Acceleration related libs:
580 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
581 VirtualBoxVM_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
582 VirtualBoxVM_LIBS.solaris += GL
583 VirtualBoxVM_LIBS.linux += GL
584 VirtualBoxVM_LIBS.freebsd += GL
585 endif
586 ifdef VBOX_WITH_CROGL
587 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
588 endif
589
590 # This one is global shared GUI library:
591 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
592 ifeq ($(KBUILD_TARGET),win)
593 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/VBoxGlobal$(VBOX_SUFF_LIB)
594 else
595 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
596 endif
597 endif
598
599
600 #
601 # VirtualBox - GUI Global Shared Library.
602 # Libraries.
603 #
604
605 # Xinerama library required for multi-monitor support:
606 VBoxGlobal_LIBS.linux += Xinerama
607 VBoxGlobal_LIBS.solaris += Xinerama
608 VBoxGlobal_LIBS.freebsd += Xinerama
609
610 # Various Windows hosts libraries:
611 VBoxGlobal_LIBS.win = \
612 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
613
614 # VBox keyboard shared library for X11 hosts:
615 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
616 VBoxGlobal_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
617 endif
618
619 # These are 2D Video Acceleration and 3D Acceleration related libs:
620 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
621 VBoxGlobal_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
622 VBoxGlobal_LIBS.solaris += GL
623 VBoxGlobal_LIBS.linux += GL
624 VBoxGlobal_LIBS.freebsd += GL
625 endif
626 ifdef VBOX_WITH_CROGL
627 VBoxGlobal_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
628 endif
629 if defined(VBOX_WITH_VIDEOHWACCEL)
630 if1of ($(KBUILD_TARGET), win linux freebsd)
631 VBoxGlobal_LIBS += $(PATH_STAGE_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB)
632 endif
633 endif
634endif
635
636
637#
638# VirtualBox Manager Application
639# Headers containing definitions of classes that use the Q_OBJECT macro.
640#
641VirtualBox_QT_MOCHDRS = \
642 src/globals/UIStarter.h \
643 src/hostnetwork/UIHostNetworkDetailsWidget.h \
644 src/hostnetwork/UIHostNetworkManager.h \
645 src/medium/UIMediumDetailsWidget.h \
646 src/medium/UIMediumManager.h \
647 src/selector/UIDesktopPane.h \
648 src/selector/UIVMItem.h \
649 src/selector/UISelectorWindow.h \
650 src/selector/UISnapshotDetailsWidget.h \
651 src/selector/UISnapshotPane.h \
652 src/selector/UIToolsPaneGlobal.h \
653 src/selector/UIToolsPaneMachine.h \
654 src/selector/UIToolsToolbar.h \
655 src/selector/graphics/chooser/UIGChooser.h \
656 src/selector/graphics/chooser/UIGChooserModel.h \
657 src/selector/graphics/chooser/UIGChooserView.h \
658 src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
659 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
660 src/selector/graphics/chooser/UIGChooserItem.h \
661 src/selector/graphics/chooser/UIGChooserItemGroup.h \
662 src/selector/graphics/chooser/UIGChooserItemMachine.h \
663 src/selector/graphics/details/UIGDetails.h \
664 src/selector/graphics/details/UIGDetailsModel.h \
665 src/selector/graphics/details/UIGDetailsView.h \
666 src/selector/graphics/details/UIGDetailsItem.h \
667 src/selector/graphics/details/UIGDetailsGroup.h \
668 src/selector/graphics/details/UIGDetailsSet.h \
669 src/selector/graphics/details/UIGDetailsElement.h \
670 src/selector/graphics/details/UIGDetailsElements.h \
671 src/selector/graphics/details/UIGMachinePreview.h \
672 src/widgets/UIApplianceEditorWidget.h \
673 src/widgets/UIApplianceExportEditorWidget.h \
674 src/widgets/UIApplianceImportEditorWidget.h \
675 src/widgets/UIEmptyFilePathSelector.h \
676 src/widgets/UILineTextEdit.h \
677 src/widgets/UISlidingWidget.h \
678 src/widgets/UITabBar.h \
679 src/widgets/UIMenuToolBar.h \
680 src/widgets/VBoxOSTypeSelectorButton.h \
681 src/widgets/graphics/UIGraphicsButton.h \
682 src/widgets/graphics/UIGraphicsRotatorButton.h \
683 src/widgets/graphics/UIGraphicsZoomButton.h \
684 src/widgets/graphics/UIGraphicsToolBar.h \
685 src/widgets/graphics/UIGraphicsTextPane.h \
686 src/wizards/newvm/UIWizardNewVM.h \
687 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
688 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
689 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
690 src/wizards/newvm/UIWizardNewVMPageExpert.h \
691 src/wizards/clonevm/UIWizardCloneVM.h \
692 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
693 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
694 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
695 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
696 src/wizards/clonevd/UIWizardCloneVD.h \
697 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
698 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
699 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
700 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
701 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
702 src/wizards/exportappliance/UIWizardExportApp.h \
703 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
704 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
705 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
706 src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
707 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
708 src/wizards/importappliance/UIWizardImportApp.h \
709 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
710 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
711 src/wizards/importappliance/UIWizardImportAppPageExpert.h
712
713ifndef VBOX_GUI_WITH_SHARED_LIBRARY
714 VirtualBox_QT_MOCHDRS += \
715 src/VBoxAboutDlg.h \
716 src/VBoxLicenseViewer.h \
717 src/UITakeSnapshotDialog.h \
718 src/extensions/QIAdvancedSlider.h \
719 src/extensions/QIArrowButtonPress.h \
720 src/extensions/QIArrowButtonSwitch.h \
721 src/extensions/QIArrowSplitter.h \
722 src/extensions/QIComboBox.h \
723 src/extensions/QIDialog.h \
724 src/extensions/QIDialogButtonBox.h \
725 src/extensions/QIFileDialog.h \
726 src/extensions/QIFlowLayout.h \
727 src/extensions/QILabel.h \
728 src/extensions/QILabelSeparator.h \
729 src/extensions/QILineEdit.h \
730 src/extensions/QIMainDialog.h \
731 src/extensions/QIMainWindow.h \
732 src/extensions/QIManagerDialog.h \
733 src/extensions/QIMenu.h \
734 src/extensions/QIMessageBox.h \
735 src/extensions/QIProcess.h \
736 src/extensions/QIRichTextLabel.h \
737 src/extensions/QIRichToolButton.h \
738 src/extensions/QISplitter.h \
739 src/extensions/QIStatusBar.h \
740 src/extensions/QIStatusBarIndicator.h \
741 src/extensions/QIStyledItemDelegate.h \
742 src/extensions/QITableView.h \
743 src/extensions/QITabWidget.h \
744 src/extensions/QIToolButton.h \
745 src/extensions/QITreeView.h \
746 src/extensions/QITreeWidget.h \
747 src/extensions/QIWidgetValidator.h \
748 src/extensions/graphics/QIGraphicsView.h \
749 src/extensions/graphics/QIGraphicsWidget.h \
750 src/extradata/UIExtraDataDefs.h \
751 src/extradata/UIExtraDataManager.h \
752 src/globals/UIActionPool.h \
753 src/globals/UIAnimationFramework.h \
754 src/globals/UIDesktopWidgetWatchdog.h \
755 src/globals/UIMainEventListener.h \
756 src/globals/UIMessageCenter.h \
757 src/globals/UIModalWindowManager.h \
758 src/globals/UIPopupCenter.h \
759 src/globals/UIShortcutPool.h \
760 src/globals/UIThreadPool.h \
761 src/globals/VBoxGlobal.h \
762 src/globals/VBoxUtils.h \
763 src/logviewer/UIVMLogPage.h \
764 src/logviewer/UIVMLogViewerBookmarksPanel.h \
765 src/logviewer/UIVMLogViewerDialog.h \
766 src/logviewer/UIVMLogViewerFilterPanel.h \
767 src/logviewer/UIVMLogViewerPanel.h \
768 src/logviewer/UIVMLogViewerSearchPanel.h \
769 src/logviewer/UIVMLogViewerSettingsPanel.h \
770 src/logviewer/UIVMLogViewerTextEdit.h \
771 src/logviewer/UIVMLogViewerWidget.h \
772 src/medium/UIMediumEnumerator.h \
773 src/runtime/UIActionPoolRuntime.h \
774 src/runtime/UIConsoleEventHandler.h \
775 src/runtime/UIFrameBuffer.h \
776 src/runtime/UIIndicatorsPool.h \
777 src/runtime/UIKeyboardHandler.h \
778 src/runtime/UIMachine.h \
779 src/runtime/UIMachineLogic.h \
780 src/runtime/UIMachineWindow.h \
781 src/runtime/UIMachineView.h \
782 src/runtime/UIMouseHandler.h \
783 src/runtime/UIMultiScreenLayout.h \
784 src/runtime/UISession.h \
785 src/runtime/UIVMCloseDialog.h \
786 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
787 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
788 src/runtime/fullscreen/UIMachineViewFullscreen.h \
789 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
790 src/runtime/information/UIInformationConfiguration.h \
791 src/runtime/information/UIInformationDataItem.h \
792 src/runtime/information/UIInformationItem.h \
793 src/runtime/information/UIInformationModel.h \
794 src/runtime/information/UIInformationRuntime.h \
795 src/runtime/information/UIInformationView.h \
796 src/runtime/information/UIVMInformationDialog.h \
797 src/runtime/guestctrl/UIGuestControlConsole.h \
798 src/runtime/guestctrl/UIGuestControlFileManager.h \
799 src/runtime/guestctrl/UIGuestControlFileModel.h \
800 src/runtime/guestctrl/UIGuestControlFileTable.h \
801 src/runtime/guestctrl/UIGuestControlInterface.h \
802 src/runtime/guestctrl/UIGuestControlTreeItem.h \
803 src/runtime/guestctrl/UIGuestControlWidget.h \
804 src/runtime/guestctrl/UIGuestFileTable.h \
805 src/runtime/guestctrl/UIHostFileTable.h \
806 src/runtime/normal/UIKeyboardHandlerNormal.h \
807 src/runtime/normal/UIMachineLogicNormal.h \
808 src/runtime/normal/UIMachineViewNormal.h \
809 src/runtime/normal/UIMachineWindowNormal.h \
810 src/runtime/scale/UIKeyboardHandlerScale.h \
811 src/runtime/scale/UIMachineLogicScale.h \
812 src/runtime/scale/UIMachineViewScale.h \
813 src/runtime/scale/UIMachineWindowScale.h \
814 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
815 src/runtime/seamless/UIMachineLogicSeamless.h \
816 src/runtime/seamless/UIMachineViewSeamless.h \
817 src/runtime/seamless/UIMachineWindowSeamless.h \
818 src/selector/UIActionPoolSelector.h \
819 src/selector/UIVirtualBoxEventHandler.h \
820 src/settings/UISettingsDialog.h \
821 src/settings/UISettingsDialogSpecific.h \
822 src/settings/UISettingsPage.h \
823 src/settings/UISettingsSelector.h \
824 src/settings/UISettingsSerializer.h \
825 src/settings/global/UIGlobalSettingsExtension.h \
826 src/settings/global/UIGlobalSettingsGeneral.h \
827 src/settings/global/UIGlobalSettingsInput.h \
828 src/settings/global/UIGlobalSettingsLanguage.h \
829 src/settings/global/UIGlobalSettingsDisplay.h \
830 src/settings/global/UIGlobalSettingsNetwork.h \
831 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
832 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
833 src/settings/machine/UIMachineSettingsAudio.h \
834 src/settings/machine/UIMachineSettingsDisplay.h \
835 src/settings/machine/UIMachineSettingsGeneral.h \
836 src/settings/machine/UIMachineSettingsInterface.h \
837 src/settings/machine/UIMachineSettingsNetwork.h \
838 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
839 src/settings/machine/UIMachineSettingsSF.h \
840 src/settings/machine/UIMachineSettingsSFDetails.h \
841 src/settings/machine/UIMachineSettingsSerial.h \
842 src/settings/machine/UIMachineSettingsStorage.h \
843 src/settings/machine/UIMachineSettingsSystem.h \
844 src/settings/machine/UIMachineSettingsUSB.h \
845 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
846 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
847 src/widgets/UIBootTable.h \
848 src/widgets/UIFilePathSelector.h \
849 src/widgets/UIFilmContainer.h \
850 src/widgets/UIGuestRAMSlider.h \
851 src/widgets/UIHostComboEditor.h \
852 src/widgets/UIHotKeyEditor.h \
853 src/widgets/UIMediaComboBox.h \
854 src/widgets/UIMediumSizeEditor.h \
855 src/widgets/UIMenuBar.h \
856 src/widgets/UIMenuBarEditorWindow.h \
857 src/widgets/UIMiniToolBar.h \
858 src/widgets/UINameAndSystemEditor.h \
859 src/widgets/UIPopupBox.h \
860 src/widgets/UIPopupPane.h \
861 src/widgets/UIPopupPaneButtonPane.h \
862 src/widgets/UIPopupPaneMessage.h \
863 src/widgets/UIPopupPaneDetails.h \
864 src/widgets/UIPopupStack.h \
865 src/widgets/UIPopupStackViewport.h \
866 src/widgets/UIPortForwardingTable.h \
867 src/widgets/UIProgressDialog.h \
868 src/widgets/UISlidingToolBar.h \
869 src/widgets/UISpecialControls.h \
870 src/widgets/UIStatusBarEditorWindow.h \
871 src/widgets/UIToolBar.h \
872 src/widgets/UIVMNamePathSelector.h \
873 src/widgets/UIWarningPane.h \
874 src/wizards/UIWizard.h \
875 src/wizards/UIWizardPage.h \
876 src/wizards/firstrun/UIWizardFirstRun.h \
877 src/wizards/firstrun/UIWizardFirstRunPageBasic.h \
878 src/wizards/newvd/UIWizardNewVD.h \
879 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
880 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
881 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
882 src/wizards/newvd/UIWizardNewVDPageExpert.h
883
884 ifdef VBOX_WITH_DRAG_AND_DROP
885 VirtualBox_QT_MOCHDRS += \
886 src/runtime/UIDnDHandler.h
887 ifdef VBOX_WITH_DRAG_AND_DROP_GH
888 VirtualBox_QT_MOCHDRS += \
889 src/runtime/UIDnDMIMEData.h
890 endif
891 endif
892
893 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
894 VirtualBox_QT_MOCHDRS += \
895 src/net/UIDownloader.h \
896 src/net/UIDownloaderAdditions.h \
897 src/net/UIDownloaderExtensionPack.h \
898 src/net/UIDownloaderUserManual.h \
899 src/net/UINetworkCustomer.h \
900 src/net/UINetworkManager.h \
901 src/net/UINetworkManagerDialog.h \
902 src/net/UINetworkManagerIndicator.h \
903 src/net/UINetworkRequest.h \
904 src/net/UINetworkRequestWidget.h \
905 src/net/UINetworkReply.h \
906 src/net/UIUpdateManager.h \
907 src/settings/global/UIGlobalSettingsProxy.h \
908 src/settings/global/UIGlobalSettingsUpdate.h
909 endif
910
911 VirtualBox_QT_MOCHDRS.darwin += \
912 src/platform/darwin/UICocoaSpecialControls.h \
913 src/platform/darwin/UIWindowMenuManager.h
914endif
915
916
917ifdef VBOX_GUI_WITH_SHARED_LIBRARY
918 #
919 # VirtualBox Virtual Machine Application
920 # Headers containing definitions of classes that use the Q_OBJECT macro.
921 #
922 VirtualBoxVM_QT_MOCHDRS = \
923 src/globals/UIStarter.h \
924 src/runtime/UIConsoleEventHandler.h \
925 src/runtime/UIFrameBuffer.h \
926 src/runtime/UIIndicatorsPool.h \
927 src/runtime/UIKeyboardHandler.h \
928 src/runtime/UIMachine.h \
929 src/runtime/UIMachineLogic.h \
930 src/runtime/UIMachineWindow.h \
931 src/runtime/UIMachineView.h \
932 src/runtime/UIMouseHandler.h \
933 src/runtime/UIMultiScreenLayout.h \
934 src/runtime/UISession.h \
935 src/runtime/UIVMCloseDialog.h \
936 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
937 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
938 src/runtime/fullscreen/UIMachineViewFullscreen.h \
939 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
940 src/runtime/information/UIInformationConfiguration.h \
941 src/runtime/information/UIInformationDataItem.h \
942 src/runtime/information/UIInformationItem.h \
943 src/runtime/information/UIInformationModel.h \
944 src/runtime/information/UIInformationRuntime.h \
945 src/runtime/information/UIInformationView.h \
946 src/runtime/information/UIVMInformationDialog.h \
947 src/runtime/guestctrl/UIGuestControlConsole.h \
948 src/runtime/guestctrl/UIGuestControlFileManager.h \
949 src/runtime/guestctrl/UIGuestControlFileModel.h \
950 src/runtime/guestctrl/UIGuestControlFileTable.h \
951 src/runtime/guestctrl/UIGuestControlInterface.h \
952 src/runtime/guestctrl/UIGuestControlTreeItem.h \
953 src/runtime/guestctrl/UIGuestControlWidget.h \
954 src/runtime/guestctrl/UIGuestFileTable.h \
955 src/runtime/guestctrl/UIHostFileTable.h \
956 src/runtime/normal/UIKeyboardHandlerNormal.h \
957 src/runtime/normal/UIMachineLogicNormal.h \
958 src/runtime/normal/UIMachineViewNormal.h \
959 src/runtime/normal/UIMachineWindowNormal.h \
960 src/runtime/scale/UIKeyboardHandlerScale.h \
961 src/runtime/scale/UIMachineLogicScale.h \
962 src/runtime/scale/UIMachineViewScale.h \
963 src/runtime/scale/UIMachineWindowScale.h \
964 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
965 src/runtime/seamless/UIMachineLogicSeamless.h \
966 src/runtime/seamless/UIMachineViewSeamless.h \
967 src/runtime/seamless/UIMachineWindowSeamless.h \
968 src/widgets/UIMiniToolBar.h \
969 src/wizards/firstrun/UIWizardFirstRun.h \
970 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
971
972 ifdef VBOX_WITH_DRAG_AND_DROP
973 VirtualBoxVM_QT_MOCHDRS += \
974 src/runtime/UIDnDHandler.h
975 ifdef VBOX_WITH_DRAG_AND_DROP_GH
976 VirtualBoxVM_QT_MOCHDRS += \
977 src/runtime/UIDnDMIMEData.h
978 endif
979 endif
980
981
982 #
983 # VirtualBox - GUI Global Shared Library.
984 # Headers containing definitions of classes that use the Q_OBJECT macro.
985 #
986 VBoxGlobal_QT_MOCHDRS = \
987 src/VBoxAboutDlg.h \
988 src/VBoxLicenseViewer.h \
989 src/UITakeSnapshotDialog.h \
990 src/extensions/QIAdvancedSlider.h \
991 src/extensions/QIArrowButtonPress.h \
992 src/extensions/QIArrowButtonSwitch.h \
993 src/extensions/QIArrowSplitter.h \
994 src/extensions/QIComboBox.h \
995 src/extensions/QIDialog.h \
996 src/extensions/QIDialogButtonBox.h \
997 src/extensions/QIFileDialog.h \
998 src/extensions/QIFlowLayout.h \
999 src/extensions/QILabel.h \
1000 src/extensions/QILabelSeparator.h \
1001 src/extensions/QILineEdit.h \
1002 src/extensions/QIMainDialog.h \
1003 src/extensions/QIMainWindow.h \
1004 src/extensions/QIManagerDialog.h \
1005 src/extensions/QIMenu.h \
1006 src/extensions/QIMessageBox.h \
1007 src/extensions/QIProcess.h \
1008 src/extensions/QIRichTextLabel.h \
1009 src/extensions/QIRichToolButton.h \
1010 src/extensions/QISplitter.h \
1011 src/extensions/QIStatusBar.h \
1012 src/extensions/QIStatusBarIndicator.h \
1013 src/extensions/QIStyledItemDelegate.h \
1014 src/extensions/QITableView.h \
1015 src/extensions/QITabWidget.h \
1016 src/extensions/QIToolButton.h \
1017 src/extensions/QITreeView.h \
1018 src/extensions/QITreeWidget.h \
1019 src/extensions/QIWidgetValidator.h \
1020 src/extensions/graphics/QIGraphicsView.h \
1021 src/extensions/graphics/QIGraphicsWidget.h \
1022 src/extradata/UIExtraDataDefs.h \
1023 src/extradata/UIExtraDataManager.h \
1024 src/globals/UIActionPool.h \
1025 src/globals/UIAnimationFramework.h \
1026 src/globals/UIDesktopWidgetWatchdog.h \
1027 src/globals/UIMainEventListener.h \
1028 src/globals/UIMessageCenter.h \
1029 src/globals/UIModalWindowManager.h \
1030 src/globals/UIPopupCenter.h \
1031 src/globals/UIShortcutPool.h \
1032 src/globals/UIThreadPool.h \
1033 src/globals/VBoxGlobal.h \
1034 src/globals/VBoxUtils.h \
1035 src/logviewer/UIVMLogPage.h \
1036 src/logviewer/UIVMLogViewerBookmarksPanel.h \
1037 src/logviewer/UIVMLogViewerDialog.h \
1038 src/logviewer/UIVMLogViewerFilterPanel.h \
1039 src/logviewer/UIVMLogViewerPanel.h \
1040 src/logviewer/UIVMLogViewerSearchPanel.h \
1041 src/logviewer/UIVMLogViewerSettingsPanel.h \
1042 src/logviewer/UIVMLogViewerTextEdit.h \
1043 src/logviewer/UIVMLogViewerWidget.h \
1044 src/medium/UIMediumEnumerator.h \
1045 src/runtime/UIActionPoolRuntime.h \
1046 src/selector/UIActionPoolSelector.h \
1047 src/selector/UIVirtualBoxEventHandler.h \
1048 src/settings/UISettingsDialog.h \
1049 src/settings/UISettingsDialogSpecific.h \
1050 src/settings/UISettingsPage.h \
1051 src/settings/UISettingsSelector.h \
1052 src/settings/UISettingsSerializer.h \
1053 src/settings/global/UIGlobalSettingsExtension.h \
1054 src/settings/global/UIGlobalSettingsGeneral.h \
1055 src/settings/global/UIGlobalSettingsInput.h \
1056 src/settings/global/UIGlobalSettingsLanguage.h \
1057 src/settings/global/UIGlobalSettingsDisplay.h \
1058 src/settings/global/UIGlobalSettingsNetwork.h \
1059 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
1060 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
1061 src/settings/machine/UIMachineSettingsAudio.h \
1062 src/settings/machine/UIMachineSettingsDisplay.h \
1063 src/settings/machine/UIMachineSettingsGeneral.h \
1064 src/settings/machine/UIMachineSettingsInterface.h \
1065 src/settings/machine/UIMachineSettingsNetwork.h \
1066 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
1067 src/settings/machine/UIMachineSettingsSF.h \
1068 src/settings/machine/UIMachineSettingsSFDetails.h \
1069 src/settings/machine/UIMachineSettingsSerial.h \
1070 src/settings/machine/UIMachineSettingsStorage.h \
1071 src/settings/machine/UIMachineSettingsSystem.h \
1072 src/settings/machine/UIMachineSettingsUSB.h \
1073 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
1074 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
1075 src/widgets/UIBootTable.h \
1076 src/widgets/UIFilePathSelector.h \
1077 src/widgets/UIFilmContainer.h \
1078 src/widgets/UIGuestRAMSlider.h \
1079 src/widgets/UIHostComboEditor.h \
1080 src/widgets/UIHotKeyEditor.h \
1081 src/widgets/UIMediaComboBox.h \
1082 src/widgets/UIMediumSizeEditor.h \
1083 src/widgets/UIMenuBar.h \
1084 src/widgets/UIMenuBarEditorWindow.h \
1085 src/widgets/UINameAndSystemEditor.h \
1086 src/widgets/UIPopupBox.h \
1087 src/widgets/UIPopupPane.h \
1088 src/widgets/UIPopupPaneButtonPane.h \
1089 src/widgets/UIPopupPaneMessage.h \
1090 src/widgets/UIPopupPaneDetails.h \
1091 src/widgets/UIPopupStack.h \
1092 src/widgets/UIPopupStackViewport.h \
1093 src/widgets/UIPortForwardingTable.h \
1094 src/widgets/UIProgressDialog.h \
1095 src/widgets/UISlidingToolBar.h \
1096 src/widgets/UISpecialControls.h \
1097 src/widgets/UIStatusBarEditorWindow.h \
1098 src/widgets/UIToolBar.h \
1099 src/widgets/UIVMNamePathSelector.h \
1100 src/widgets/UIWarningPane.h \
1101 src/wizards/UIWizard.h \
1102 src/wizards/UIWizardPage.h \
1103 src/wizards/newvd/UIWizardNewVD.h \
1104 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
1105 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
1106 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
1107 src/wizards/newvd/UIWizardNewVDPageExpert.h
1108
1109 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1110 VBoxGlobal_QT_MOCHDRS += \
1111 src/net/UIDownloader.h \
1112 src/net/UIDownloaderAdditions.h \
1113 src/net/UIDownloaderExtensionPack.h \
1114 src/net/UIDownloaderUserManual.h \
1115 src/net/UINetworkCustomer.h \
1116 src/net/UINetworkManager.h \
1117 src/net/UINetworkManagerDialog.h \
1118 src/net/UINetworkManagerIndicator.h \
1119 src/net/UINetworkRequest.h \
1120 src/net/UINetworkRequestWidget.h \
1121 src/net/UINetworkReply.h \
1122 src/net/UIUpdateManager.h \
1123 src/settings/global/UIGlobalSettingsProxy.h \
1124 src/settings/global/UIGlobalSettingsUpdate.h
1125 endif
1126
1127 VBoxGlobal_QT_MOCHDRS.darwin += \
1128 src/platform/darwin/UICocoaSpecialControls.h \
1129 src/platform/darwin/UIWindowMenuManager.h
1130endif
1131
1132
1133#
1134# VirtualBox Manager Application
1135# Sources containing local definitions of classes that use the Q_OBJECT macro.
1136#
1137VirtualBox_QT_MOCSRCS = \
1138 src/selector/UIDesktopPane.cpp \
1139 src/selector/UISnapshotDetailsWidget.cpp \
1140 src/selector/UISnapshotPane.cpp \
1141 src/widgets/UIMenuToolBar.cpp \
1142 src/widgets/UITabBar.cpp \
1143 src/wizards/importappliance/UIWizardImportApp.cpp
1144
1145ifndef VBOX_GUI_WITH_SHARED_LIBRARY
1146 VirtualBox_QT_MOCSRCS += \
1147 src/extensions/QIAdvancedSlider.cpp \
1148 src/extensions/QIArrowSplitter.cpp \
1149 src/extensions/QISplitter.cpp \
1150 src/extradata/UIExtraDataManager.cpp \
1151 src/globals/UIActionPool.cpp \
1152 src/globals/UIMainEventListener.cpp \
1153 src/globals/UIThreadPool.cpp \
1154 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1155 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1156 src/logviewer/UIVMLogViewerTextEdit.cpp \
1157 src/medium/UIMediumEnumerator.cpp \
1158 src/runtime/UIActionPoolRuntime.cpp \
1159 src/runtime/UIConsoleEventHandler.cpp \
1160 src/runtime/UIFrameBuffer.cpp \
1161 src/runtime/UIIndicatorsPool.cpp \
1162 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1163 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1164 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1165 src/runtime/guestctrl/UIGuestFileTable.cpp \
1166 src/runtime/guestctrl/UIHostFileTable.cpp \
1167 src/selector/UIActionPoolSelector.cpp \
1168 src/selector/UIVirtualBoxEventHandler.cpp \
1169 src/settings/global/UIGlobalSettingsInput.cpp \
1170 src/settings/machine/UIMachineSettingsNetwork.cpp \
1171 src/settings/machine/UIMachineSettingsSerial.cpp \
1172 src/settings/machine/UIMachineSettingsStorage.cpp \
1173 src/settings/machine/UIMachineSettingsUSB.cpp \
1174 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1175 src/widgets/UIFilmContainer.cpp \
1176 src/widgets/UIHotKeyEditor.cpp \
1177 src/widgets/UIMiniToolBar.cpp \
1178 src/widgets/UIPortForwardingTable.cpp \
1179 src/widgets/UIProgressDialog.cpp \
1180 src/widgets/UIStatusBarEditorWindow.cpp \
1181 src/widgets/UIVMNamePathSelector.cpp
1182
1183 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1184 VirtualBox_QT_MOCSRCS += \
1185 src/net/UINetworkReply.cpp \
1186 src/net/UIUpdateManager.cpp
1187 endif
1188
1189 ifdef VBOX_WITH_XPCOM
1190 VirtualBox_QT_MOCSRCS += \
1191 src/globals/COMDefs.cpp
1192 endif
1193
1194 VirtualBox_QT_MOCSRCS.darwin += \
1195 src/platform/darwin/UIWindowMenuManager.cpp
1196
1197 VirtualBox_QT_MOCSRCS.linux += \
1198 src/globals/UIDesktopWidgetWatchdog.cpp
1199 VirtualBox_QT_MOCSRCS.solaris += \
1200 src/globals/UIDesktopWidgetWatchdog.cpp
1201 VirtualBox_QT_MOCSRCS.freebsd += \
1202 src/globals/UIDesktopWidgetWatchdog.cpp
1203endif
1204
1205
1206ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1207 #
1208 # VirtualBox Virtual Machine Application
1209 # Sources containing local definitions of classes that use the Q_OBJECT macro.
1210 #
1211 VirtualBoxVM_QT_MOCSRCS = \
1212 src/runtime/UIConsoleEventHandler.cpp \
1213 src/runtime/UIFrameBuffer.cpp \
1214 src/runtime/UIIndicatorsPool.cpp \
1215 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1216 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1217 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1218 src/runtime/guestctrl/UIGuestFileTable.cpp \
1219 src/runtime/guestctrl/UIHostFileTable.cpp \
1220 src/widgets/UIMiniToolBar.cpp
1221
1222
1223 #
1224 # VirtualBox - GUI Global Shared Library.
1225 # Sources.
1226 #
1227 VBoxGlobal_QT_MOCSRCS = \
1228 src/extensions/QIAdvancedSlider.cpp \
1229 src/extensions/QIArrowSplitter.cpp \
1230 src/extensions/QISplitter.cpp \
1231 src/extradata/UIExtraDataManager.cpp \
1232 src/globals/UIActionPool.cpp \
1233 src/globals/UIMainEventListener.cpp \
1234 src/globals/UIThreadPool.cpp \
1235 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1236 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1237 src/logviewer/UIVMLogViewerTextEdit.cpp \
1238 src/medium/UIMediumEnumerator.cpp \
1239 src/runtime/UIActionPoolRuntime.cpp \
1240 src/selector/UIActionPoolSelector.cpp \
1241 src/selector/UIVirtualBoxEventHandler.cpp \
1242 src/settings/global/UIGlobalSettingsInput.cpp \
1243 src/settings/machine/UIMachineSettingsNetwork.cpp \
1244 src/settings/machine/UIMachineSettingsSerial.cpp \
1245 src/settings/machine/UIMachineSettingsStorage.cpp \
1246 src/settings/machine/UIMachineSettingsUSB.cpp \
1247 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1248 src/widgets/UIFilmContainer.cpp \
1249 src/widgets/UIHotKeyEditor.cpp \
1250 src/widgets/UIPortForwardingTable.cpp \
1251 src/widgets/UIProgressDialog.cpp \
1252 src/widgets/UIStatusBarEditorWindow.cpp
1253
1254 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1255 VBoxGlobal_QT_MOCSRCS += \
1256 src/net/UINetworkReply.cpp \
1257 src/net/UIUpdateManager.cpp
1258 endif
1259
1260 ifdef VBOX_WITH_XPCOM
1261 VBoxGlobal_QT_MOCSRCS += \
1262 src/globals/COMDefs.cpp
1263 endif
1264
1265 VBoxGlobal_QT_MOCSRCS.darwin += \
1266 src/platform/darwin/UIWindowMenuManager.cpp
1267
1268 VBoxGlobal_QT_MOCSRCS.linux += \
1269 src/globals/UIDesktopWidgetWatchdog.cpp
1270 VBoxGlobal_QT_MOCSRCS.solaris += \
1271 src/globals/UIDesktopWidgetWatchdog.cpp
1272 VBoxGlobal_QT_MOCSRCS.freebsd += \
1273 src/globals/UIDesktopWidgetWatchdog.cpp
1274endif
1275
1276
1277#
1278# VirtualBox Manager Application
1279# Sources.
1280#
1281VirtualBox_SOURCES = \
1282 src/main.cpp \
1283 src/globals/UIStarter.cpp \
1284 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
1285 src/hostnetwork/UIHostNetworkManager.cpp \
1286 src/hostnetwork/UIHostNetworkUtils.cpp \
1287 src/medium/UIMediumDetailsWidget.cpp \
1288 src/medium/UIMediumManager.cpp \
1289 src/selector/UIDesktopPane.cpp \
1290 src/selector/UIVMItem.cpp \
1291 src/selector/UISelectorWindow.cpp \
1292 src/selector/UISnapshotDetailsWidget.cpp \
1293 src/selector/UISnapshotPane.cpp \
1294 src/selector/UIToolsPaneGlobal.cpp \
1295 src/selector/UIToolsPaneMachine.cpp \
1296 src/selector/UIToolsToolbar.cpp \
1297 src/selector/graphics/chooser/UIGChooser.cpp \
1298 src/selector/graphics/chooser/UIGChooserModel.cpp \
1299 src/selector/graphics/chooser/UIGChooserView.cpp \
1300 src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
1301 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
1302 src/selector/graphics/chooser/UIGChooserItem.cpp \
1303 src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
1304 src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
1305 src/selector/graphics/details/UIGDetails.cpp \
1306 src/selector/graphics/details/UIGDetailsModel.cpp \
1307 src/selector/graphics/details/UIGDetailsView.cpp \
1308 src/selector/graphics/details/UIGDetailsItem.cpp \
1309 src/selector/graphics/details/UIGDetailsGroup.cpp \
1310 src/selector/graphics/details/UIGDetailsSet.cpp \
1311 src/selector/graphics/details/UIGDetailsElement.cpp \
1312 src/selector/graphics/details/UIGDetailsElements.cpp \
1313 src/selector/graphics/details/UIGMachinePreview.cpp \
1314 src/widgets/UIApplianceEditorWidget.cpp \
1315 src/widgets/UIApplianceExportEditorWidget.cpp \
1316 src/widgets/UIApplianceImportEditorWidget.cpp \
1317 src/widgets/UIEmptyFilePathSelector.cpp \
1318 src/widgets/UILineTextEdit.cpp \
1319 src/widgets/UISlidingWidget.cpp \
1320 src/widgets/UITabBar.cpp \
1321 src/widgets/UIMenuToolBar.cpp \
1322 src/widgets/VBoxOSTypeSelectorButton.cpp \
1323 src/widgets/graphics/UIGraphicsButton.cpp \
1324 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1325 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1326 src/widgets/graphics/UIGraphicsToolBar.cpp \
1327 src/widgets/graphics/UIGraphicsTextPane.cpp \
1328 src/wizards/newvm/UIWizardNewVM.cpp \
1329 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
1330 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
1331 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
1332 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
1333 src/wizards/clonevm/UIWizardCloneVM.cpp \
1334 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
1335 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
1336 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
1337 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
1338 src/wizards/clonevd/UIWizardCloneVD.cpp \
1339 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
1340 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
1341 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
1342 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
1343 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
1344 src/wizards/exportappliance/UIWizardExportApp.cpp \
1345 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
1346 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
1347 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
1348 src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
1349 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1350 src/wizards/importappliance/UIWizardImportApp.cpp \
1351 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
1352 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
1353 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
1354
1355VirtualBox_SOURCES.darwin += \
1356 src/platform/darwin/UIDesktopServices_darwin.cpp \
1357 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1358
1359if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1360 VirtualBox_SOURCES += \
1361 src/platform/x11/UIDesktopServices_x11.cpp
1362endif
1363
1364VirtualBox_SOURCES.win += \
1365 src/platform/win/VirtualBox.rc \
1366 src/platform/win/UIDesktopServices_win.cpp
1367
1368ifdef VBOX_WITH_ICHAT_THEATER
1369 VirtualBox_SOURCES.darwin += \
1370 src/platform/darwin/VBoxIChatTheaterWrapper.m
1371endif
1372
1373if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1374 VirtualBox_SOURCES += \
1375 src/VBox2DHelpers.cpp \
1376 src/VBoxFBOverlay.cpp \
1377 src/VBoxGLSupportInfo.cpp
1378endif
1379
1380ifndef VBOX_GUI_WITH_SHARED_LIBRARY
1381 VirtualBox_SOURCES += \
1382 src/VBoxAboutDlg.cpp \
1383 src/VBoxLicenseViewer.cpp \
1384 src/UITakeSnapshotDialog.cpp \
1385 src/extensions/QIAdvancedSlider.cpp \
1386 src/extensions/QIArrowButtonPress.cpp \
1387 src/extensions/QIArrowButtonSwitch.cpp \
1388 src/extensions/QIArrowSplitter.cpp \
1389 src/extensions/QIComboBox.cpp \
1390 src/extensions/QIDialog.cpp \
1391 src/extensions/QIDialogButtonBox.cpp \
1392 src/extensions/QIFileDialog.cpp \
1393 src/extensions/QIFlowLayout.cpp \
1394 src/extensions/QILabel.cpp \
1395 src/extensions/QILabelSeparator.cpp \
1396 src/extensions/QILineEdit.cpp \
1397 src/extensions/QIMainDialog.cpp \
1398 src/extensions/QIMainWindow.cpp \
1399 src/extensions/QIManagerDialog.cpp \
1400 src/extensions/QIMenu.cpp \
1401 src/extensions/QIMessageBox.cpp \
1402 src/extensions/QIProcess.cpp \
1403 src/extensions/QIRichTextLabel.cpp \
1404 src/extensions/QIRichToolButton.cpp \
1405 src/extensions/QISplitter.cpp \
1406 src/extensions/QIStatusBar.cpp \
1407 src/extensions/QIStatusBarIndicator.cpp \
1408 src/extensions/QIStyledItemDelegate.cpp \
1409 src/extensions/QITableView.cpp \
1410 src/extensions/QITabWidget.cpp \
1411 src/extensions/QIToolButton.cpp \
1412 src/extensions/QITreeView.cpp \
1413 src/extensions/QITreeWidget.cpp \
1414 src/extensions/QIWidgetValidator.cpp \
1415 src/extensions/graphics/QIGraphicsView.cpp \
1416 src/extensions/graphics/QIGraphicsWidget.cpp \
1417 src/extradata/UIExtraDataDefs.cpp \
1418 src/extradata/UIExtraDataManager.cpp \
1419 src/converter/UIConverter.cpp \
1420 src/converter/UIConverterBackendCOM.cpp \
1421 src/converter/UIConverterBackendGlobal.cpp \
1422 src/globals/COMDefs.cpp \
1423 src/globals/UIActionPool.cpp \
1424 src/globals/UIAnimationFramework.cpp \
1425 src/globals/UIDefs.cpp \
1426 src/globals/UIDesktopWidgetWatchdog.cpp \
1427 src/globals/UIErrorString.cpp \
1428 src/globals/UIIconPool.cpp \
1429 src/globals/UIImageTools.cpp \
1430 src/globals/UIMainEventListener.cpp \
1431 src/globals/UIMessageCenter.cpp \
1432 src/globals/UIModalWindowManager.cpp \
1433 src/globals/UIPopupCenter.cpp \
1434 src/globals/UIShortcutPool.cpp \
1435 src/globals/UIThreadPool.cpp \
1436 src/globals/VBoxGlobal.cpp \
1437 src/logviewer/UIVMLogPage.cpp \
1438 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1439 src/logviewer/UIVMLogViewerDialog.cpp \
1440 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1441 src/logviewer/UIVMLogViewerPanel.cpp \
1442 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1443 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
1444 src/logviewer/UIVMLogViewerTextEdit.cpp \
1445 src/logviewer/UIVMLogViewerWidget.cpp \
1446 src/medium/UIMedium.cpp \
1447 src/medium/UIMediumDefs.cpp \
1448 src/medium/UIMediumEnumerator.cpp \
1449 src/objects/UIRichTextString.cpp \
1450 src/runtime/UIActionPoolRuntime.cpp \
1451 src/runtime/UIConsoleEventHandler.cpp \
1452 src/runtime/UIFrameBuffer.cpp \
1453 src/runtime/UIIndicatorsPool.cpp \
1454 src/runtime/UIKeyboardHandler.cpp \
1455 src/runtime/UIMachine.cpp \
1456 src/runtime/UIMachineLogic.cpp \
1457 src/runtime/UIMachineView.cpp \
1458 src/runtime/UIMachineWindow.cpp \
1459 src/runtime/UIMouseHandler.cpp \
1460 src/runtime/UIMultiScreenLayout.cpp \
1461 src/runtime/UISession.cpp \
1462 src/runtime/UIVMCloseDialog.cpp \
1463 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1464 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1465 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1466 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1467 src/runtime/information/UIInformationConfiguration.cpp \
1468 src/runtime/information/UIInformationDataItem.cpp \
1469 src/runtime/information/UIInformationItem.cpp \
1470 src/runtime/information/UIInformationModel.cpp \
1471 src/runtime/information/UIInformationRuntime.cpp \
1472 src/runtime/information/UIInformationView.cpp \
1473 src/runtime/information/UIVMInformationDialog.cpp \
1474 src/runtime/guestctrl/UIGuestControlConsole.cpp \
1475 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1476 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
1477 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1478 src/runtime/guestctrl/UIGuestControlInterface.cpp \
1479 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
1480 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1481 src/runtime/guestctrl/UIGuestFileTable.cpp \
1482 src/runtime/guestctrl/UIHostFileTable.cpp \
1483 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1484 src/runtime/normal/UIMachineLogicNormal.cpp \
1485 src/runtime/normal/UIMachineViewNormal.cpp \
1486 src/runtime/normal/UIMachineWindowNormal.cpp \
1487 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1488 src/runtime/scale/UIMachineLogicScale.cpp \
1489 src/runtime/scale/UIMachineViewScale.cpp \
1490 src/runtime/scale/UIMachineWindowScale.cpp \
1491 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1492 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1493 src/runtime/seamless/UIMachineViewSeamless.cpp \
1494 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1495 src/selector/UIActionPoolSelector.cpp \
1496 src/selector/UIVirtualBoxEventHandler.cpp \
1497 src/settings/UISettingsDefs.cpp \
1498 src/settings/UISettingsDialog.cpp \
1499 src/settings/UISettingsDialogSpecific.cpp \
1500 src/settings/UISettingsPage.cpp \
1501 src/settings/UISettingsSelector.cpp \
1502 src/settings/UISettingsSerializer.cpp \
1503 src/settings/global/UIGlobalSettingsExtension.cpp \
1504 src/settings/global/UIGlobalSettingsGeneral.cpp \
1505 src/settings/global/UIGlobalSettingsInput.cpp \
1506 src/settings/global/UIGlobalSettingsLanguage.cpp \
1507 src/settings/global/UIGlobalSettingsDisplay.cpp \
1508 src/settings/global/UIGlobalSettingsNetwork.cpp \
1509 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1510 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1511 src/settings/machine/UIMachineSettingsAudio.cpp \
1512 src/settings/machine/UIMachineSettingsDisplay.cpp \
1513 src/settings/machine/UIMachineSettingsGeneral.cpp \
1514 src/settings/machine/UIMachineSettingsInterface.cpp \
1515 src/settings/machine/UIMachineSettingsNetwork.cpp \
1516 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1517 src/settings/machine/UIMachineSettingsSF.cpp \
1518 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1519 src/settings/machine/UIMachineSettingsSerial.cpp \
1520 src/settings/machine/UIMachineSettingsStorage.cpp \
1521 src/settings/machine/UIMachineSettingsSystem.cpp \
1522 src/settings/machine/UIMachineSettingsUSB.cpp \
1523 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1524 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1525 src/widgets/UIBootTable.cpp \
1526 src/widgets/UIFilePathSelector.cpp \
1527 src/widgets/UIFilmContainer.cpp \
1528 src/widgets/UIGuestRAMSlider.cpp \
1529 src/widgets/UIHostComboEditor.cpp \
1530 src/widgets/UIHotKeyEditor.cpp \
1531 src/widgets/UIMediaComboBox.cpp \
1532 src/widgets/UIMediumSizeEditor.cpp \
1533 src/widgets/UIMenuBar.cpp \
1534 src/widgets/UIMenuBarEditorWindow.cpp \
1535 src/widgets/UIMiniToolBar.cpp \
1536 src/widgets/UINameAndSystemEditor.cpp \
1537 src/widgets/UIPopupBox.cpp \
1538 src/widgets/UIPopupPane.cpp \
1539 src/widgets/UIPopupPaneButtonPane.cpp \
1540 src/widgets/UIPopupPaneMessage.cpp \
1541 src/widgets/UIPopupPaneDetails.cpp \
1542 src/widgets/UIPopupStack.cpp \
1543 src/widgets/UIPopupStackViewport.cpp \
1544 src/widgets/UIPortForwardingTable.cpp \
1545 src/widgets/UIProgressDialog.cpp \
1546 src/widgets/UISlidingToolBar.cpp \
1547 src/widgets/UISpecialControls.cpp \
1548 src/widgets/UIStatusBarEditorWindow.cpp \
1549 src/widgets/UIToolBar.cpp \
1550 src/widgets/UIVMNamePathSelector.cpp \
1551 src/widgets/UIWarningPane.cpp \
1552 src/wizards/UIWizard.cpp \
1553 src/wizards/UIWizardPage.cpp \
1554 src/wizards/firstrun/UIWizardFirstRun.cpp \
1555 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp \
1556 src/wizards/newvd/UIWizardNewVD.cpp \
1557 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1558 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1559 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1560 src/wizards/newvd/UIWizardNewVDPageExpert.cpp
1561
1562 ifdef VBOX_WITH_DRAG_AND_DROP
1563 VirtualBox_SOURCES += \
1564 src/runtime/UIDnDHandler.cpp
1565 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1566 VirtualBox_SOURCES += \
1567 src/runtime/UIDnDMIMEData.cpp
1568 VirtualBox_SOURCES.win += \
1569 src/runtime/UIDnDDropSource_win.cpp \
1570 src/runtime/UIDnDDataObject_win.cpp \
1571 src/runtime/UIDnDEnumFormat_win.cpp
1572 endif
1573 endif
1574
1575 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1576 VirtualBox_SOURCES += \
1577 src/net/UIDownloader.cpp \
1578 src/net/UIDownloaderAdditions.cpp \
1579 src/net/UIDownloaderExtensionPack.cpp \
1580 src/net/UIDownloaderUserManual.cpp \
1581 src/net/UINetworkCustomer.cpp \
1582 src/net/UINetworkManager.cpp \
1583 src/net/UINetworkManagerDialog.cpp \
1584 src/net/UINetworkManagerIndicator.cpp \
1585 src/net/UINetworkRequest.cpp \
1586 src/net/UINetworkRequestWidget.cpp \
1587 src/net/UINetworkReply.cpp \
1588 src/net/UIUpdateDefs.cpp \
1589 src/net/UIUpdateManager.cpp \
1590 src/settings/global/UIGlobalSettingsProxy.cpp \
1591 src/settings/global/UIGlobalSettingsUpdate.cpp
1592 endif
1593
1594 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1595 VirtualBox_SOURCES += \
1596 src/platform/x11/VBoxX11Helper.cpp \
1597 src/platform/x11/XKeyboard-new.cpp
1598 endif
1599
1600 VirtualBox_SOURCES.win += \
1601 src/platform/win/VBoxUtils-win.cpp \
1602 src/platform/win/WinKeyboard.cpp
1603
1604 VirtualBox_SOURCES.darwin += \
1605 src/platform/darwin/CocoaEventHelper.mm \
1606 src/platform/darwin/DarwinKeyboard.cpp \
1607 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1608 src/platform/darwin/UICocoaApplication.mm \
1609 src/platform/darwin/UICocoaDockIconPreview.mm \
1610 src/platform/darwin/UICocoaSpecialControls.mm \
1611 src/platform/darwin/UIWindowMenuManager.cpp \
1612 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1613 src/platform/darwin/VBoxUtils-darwin.cpp
1614endif
1615
1616
1617ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1618 #
1619 # VirtualBox Virtual Machine Application
1620 # Sources.
1621 #
1622 VirtualBoxVM_SOURCES = \
1623 src/main.cpp \
1624 src/globals/UIStarter.cpp \
1625 src/runtime/UIConsoleEventHandler.cpp \
1626 src/runtime/UIFrameBuffer.cpp \
1627 src/runtime/UIIndicatorsPool.cpp \
1628 src/runtime/UIKeyboardHandler.cpp \
1629 src/runtime/UIMachine.cpp \
1630 src/runtime/UIMachineLogic.cpp \
1631 src/runtime/UIMachineView.cpp \
1632 src/runtime/UIMachineWindow.cpp \
1633 src/runtime/UIMouseHandler.cpp \
1634 src/runtime/UIMultiScreenLayout.cpp \
1635 src/runtime/UISession.cpp \
1636 src/runtime/UIVMCloseDialog.cpp \
1637 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1638 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1639 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1640 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1641 src/runtime/information/UIInformationConfiguration.cpp \
1642 src/runtime/information/UIInformationDataItem.cpp \
1643 src/runtime/information/UIInformationItem.cpp \
1644 src/runtime/information/UIInformationModel.cpp \
1645 src/runtime/information/UIInformationRuntime.cpp \
1646 src/runtime/information/UIInformationView.cpp \
1647 src/runtime/information/UIVMInformationDialog.cpp \
1648 src/runtime/guestctrl/UIGuestControlConsole.cpp \
1649 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1650 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
1651 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1652 src/runtime/guestctrl/UIGuestControlInterface.cpp \
1653 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
1654 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1655 src/runtime/guestctrl/UIGuestFileTable.cpp \
1656 src/runtime/guestctrl/UIHostFileTable.cpp \
1657 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1658 src/runtime/normal/UIMachineLogicNormal.cpp \
1659 src/runtime/normal/UIMachineViewNormal.cpp \
1660 src/runtime/normal/UIMachineWindowNormal.cpp \
1661 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1662 src/runtime/scale/UIMachineLogicScale.cpp \
1663 src/runtime/scale/UIMachineViewScale.cpp \
1664 src/runtime/scale/UIMachineWindowScale.cpp \
1665 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1666 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1667 src/runtime/seamless/UIMachineViewSeamless.cpp \
1668 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1669 src/widgets/UIMiniToolBar.cpp \
1670 src/wizards/firstrun/UIWizardFirstRun.cpp \
1671 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
1672
1673 ifdef VBOX_WITH_DRAG_AND_DROP
1674 VirtualBoxVM_SOURCES += \
1675 src/runtime/UIDnDHandler.cpp
1676 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1677 VirtualBoxVM_SOURCES += \
1678 src/runtime/UIDnDMIMEData.cpp
1679 VirtualBoxVM_SOURCES.win += \
1680 src/runtime/UIDnDDropSource_win.cpp \
1681 src/runtime/UIDnDDataObject_win.cpp \
1682 src/runtime/UIDnDEnumFormat_win.cpp
1683 endif
1684 endif
1685
1686 ifdef VBOX_WITH_ICHAT_THEATER
1687 VirtualBoxVM_SOURCES.darwin += \
1688 src/platform/darwin/VBoxIChatTheaterWrapper.m
1689 endif
1690
1691 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1692 VirtualBoxVM_SOURCES += \
1693 src/VBox2DHelpers.cpp \
1694 src/VBoxFBOverlay.cpp \
1695 src/VBoxGLSupportInfo.cpp
1696 endif
1697
1698 VirtualBoxVM_SOURCES.darwin += \
1699 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1700 src/platform/darwin/UICocoaDockIconPreview.mm
1701
1702 VirtualBoxVM_SOURCES.win += \
1703 src/platform/win/VirtualBox.rc
1704
1705
1706 #
1707 # VirtualBox - GUI Global Shared Library.
1708 # Sources.
1709 #
1710 VBoxGlobal_SOURCES = \
1711 src/VBoxAboutDlg.cpp \
1712 src/VBoxLicenseViewer.cpp \
1713 src/UITakeSnapshotDialog.cpp \
1714 src/extensions/QIAdvancedSlider.cpp \
1715 src/extensions/QIArrowButtonPress.cpp \
1716 src/extensions/QIArrowButtonSwitch.cpp \
1717 src/extensions/QIArrowSplitter.cpp \
1718 src/extensions/QIComboBox.cpp \
1719 src/extensions/QIDialog.cpp \
1720 src/extensions/QIDialogButtonBox.cpp \
1721 src/extensions/QIFileDialog.cpp \
1722 src/extensions/QIFlowLayout.cpp \
1723 src/extensions/QILabel.cpp \
1724 src/extensions/QILabelSeparator.cpp \
1725 src/extensions/QILineEdit.cpp \
1726 src/extensions/QIMainDialog.cpp \
1727 src/extensions/QIMainWindow.cpp \
1728 src/extensions/QIManagerDialog.cpp \
1729 src/extensions/QIMenu.cpp \
1730 src/extensions/QIMessageBox.cpp \
1731 src/extensions/QIProcess.cpp \
1732 src/extensions/QIRichTextLabel.cpp \
1733 src/extensions/QIRichToolButton.cpp \
1734 src/extensions/QISplitter.cpp \
1735 src/extensions/QIStatusBar.cpp \
1736 src/extensions/QIStatusBarIndicator.cpp \
1737 src/extensions/QIStyledItemDelegate.cpp \
1738 src/extensions/QITableView.cpp \
1739 src/extensions/QITabWidget.cpp \
1740 src/extensions/QIToolButton.cpp \
1741 src/extensions/QITreeView.cpp \
1742 src/extensions/QITreeWidget.cpp \
1743 src/extensions/QIWidgetValidator.cpp \
1744 src/extensions/graphics/QIGraphicsView.cpp \
1745 src/extensions/graphics/QIGraphicsWidget.cpp \
1746 src/extradata/UIExtraDataDefs.cpp \
1747 src/extradata/UIExtraDataManager.cpp \
1748 src/converter/UIConverter.cpp \
1749 src/converter/UIConverterBackendCOM.cpp \
1750 src/converter/UIConverterBackendGlobal.cpp \
1751 src/globals/COMDefs.cpp \
1752 src/globals/UIActionPool.cpp \
1753 src/globals/UIAnimationFramework.cpp \
1754 src/globals/UIDefs.cpp \
1755 src/globals/UIDesktopWidgetWatchdog.cpp \
1756 src/globals/UIErrorString.cpp \
1757 src/globals/UIIconPool.cpp \
1758 src/globals/UIImageTools.cpp \
1759 src/globals/UIMainEventListener.cpp \
1760 src/globals/UIMessageCenter.cpp \
1761 src/globals/UIModalWindowManager.cpp \
1762 src/globals/UIPopupCenter.cpp \
1763 src/globals/UIShortcutPool.cpp \
1764 src/globals/UIThreadPool.cpp \
1765 src/globals/VBoxGlobal.cpp \
1766 src/logviewer/UIVMLogPage.cpp \
1767 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1768 src/logviewer/UIVMLogViewerDialog.cpp \
1769 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1770 src/logviewer/UIVMLogViewerPanel.cpp \
1771 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1772 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
1773 src/logviewer/UIVMLogViewerTextEdit.cpp \
1774 src/logviewer/UIVMLogViewerWidget.cpp \
1775 src/medium/UIMedium.cpp \
1776 src/medium/UIMediumDefs.cpp \
1777 src/medium/UIMediumEnumerator.cpp \
1778 src/objects/UIRichTextString.cpp \
1779 src/runtime/UIActionPoolRuntime.cpp \
1780 src/selector/UIActionPoolSelector.cpp \
1781 src/selector/UIVirtualBoxEventHandler.cpp \
1782 src/settings/UISettingsDefs.cpp \
1783 src/settings/UISettingsDialog.cpp \
1784 src/settings/UISettingsDialogSpecific.cpp \
1785 src/settings/UISettingsPage.cpp \
1786 src/settings/UISettingsSelector.cpp \
1787 src/settings/UISettingsSerializer.cpp \
1788 src/settings/global/UIGlobalSettingsExtension.cpp \
1789 src/settings/global/UIGlobalSettingsGeneral.cpp \
1790 src/settings/global/UIGlobalSettingsInput.cpp \
1791 src/settings/global/UIGlobalSettingsLanguage.cpp \
1792 src/settings/global/UIGlobalSettingsDisplay.cpp \
1793 src/settings/global/UIGlobalSettingsNetwork.cpp \
1794 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1795 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1796 src/settings/machine/UIMachineSettingsAudio.cpp \
1797 src/settings/machine/UIMachineSettingsDisplay.cpp \
1798 src/settings/machine/UIMachineSettingsGeneral.cpp \
1799 src/settings/machine/UIMachineSettingsInterface.cpp \
1800 src/settings/machine/UIMachineSettingsNetwork.cpp \
1801 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1802 src/settings/machine/UIMachineSettingsSF.cpp \
1803 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1804 src/settings/machine/UIMachineSettingsSerial.cpp \
1805 src/settings/machine/UIMachineSettingsStorage.cpp \
1806 src/settings/machine/UIMachineSettingsSystem.cpp \
1807 src/settings/machine/UIMachineSettingsUSB.cpp \
1808 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1809 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1810 src/widgets/UIBootTable.cpp \
1811 src/widgets/UIFilePathSelector.cpp \
1812 src/widgets/UIFilmContainer.cpp \
1813 src/widgets/UIGuestRAMSlider.cpp \
1814 src/widgets/UIHostComboEditor.cpp \
1815 src/widgets/UIHotKeyEditor.cpp \
1816 src/widgets/UIMediaComboBox.cpp \
1817 src/widgets/UIMediumSizeEditor.cpp \
1818 src/widgets/UIMenuBar.cpp \
1819 src/widgets/UIMenuBarEditorWindow.cpp \
1820 src/widgets/UINameAndSystemEditor.cpp \
1821 src/widgets/UIPopupBox.cpp \
1822 src/widgets/UIPopupPane.cpp \
1823 src/widgets/UIPopupPaneButtonPane.cpp \
1824 src/widgets/UIPopupPaneMessage.cpp \
1825 src/widgets/UIPopupPaneDetails.cpp \
1826 src/widgets/UIPopupStack.cpp \
1827 src/widgets/UIPopupStackViewport.cpp \
1828 src/widgets/UIPortForwardingTable.cpp \
1829 src/widgets/UIProgressDialog.cpp \
1830 src/widgets/UISlidingToolBar.cpp \
1831 src/widgets/UISpecialControls.cpp \
1832 src/widgets/UIStatusBarEditorWindow.cpp \
1833 src/widgets/UIToolBar.cpp \
1834 src/widgets/UIVMNamePathSelector.cpp \
1835 src/widgets/UIWarningPane.cpp \
1836 src/wizards/UIWizard.cpp \
1837 src/wizards/UIWizardPage.cpp \
1838 src/wizards/newvd/UIWizardNewVD.cpp \
1839 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1840 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1841 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1842 src/wizards/newvd/UIWizardNewVDPageExpert.cpp
1843
1844 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1845 VBoxGlobal_SOURCES += \
1846 src/net/UIDownloader.cpp \
1847 src/net/UIDownloaderAdditions.cpp \
1848 src/net/UIDownloaderExtensionPack.cpp \
1849 src/net/UIDownloaderUserManual.cpp \
1850 src/net/UINetworkCustomer.cpp \
1851 src/net/UINetworkManager.cpp \
1852 src/net/UINetworkManagerDialog.cpp \
1853 src/net/UINetworkManagerIndicator.cpp \
1854 src/net/UINetworkRequest.cpp \
1855 src/net/UINetworkRequestWidget.cpp \
1856 src/net/UINetworkReply.cpp \
1857 src/net/UIUpdateDefs.cpp \
1858 src/net/UIUpdateManager.cpp \
1859 src/settings/global/UIGlobalSettingsProxy.cpp \
1860 src/settings/global/UIGlobalSettingsUpdate.cpp
1861 endif
1862
1863 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1864 VBoxGlobal_SOURCES += \
1865 src/platform/x11/VBoxX11Helper.cpp \
1866 src/platform/x11/XKeyboard-new.cpp
1867 endif
1868
1869 VBoxGlobal_SOURCES.win += \
1870 src/platform/win/VBoxUtils-win.cpp \
1871 src/platform/win/WinKeyboard.cpp
1872
1873 VBoxGlobal_SOURCES.darwin += \
1874 src/platform/darwin/CocoaEventHelper.mm \
1875 src/platform/darwin/DarwinKeyboard.cpp \
1876 src/platform/darwin/UICocoaApplication.mm \
1877 src/platform/darwin/UICocoaSpecialControls.mm \
1878 src/platform/darwin/UIWindowMenuManager.cpp \
1879 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1880 src/platform/darwin/VBoxUtils-darwin.cpp
1881
1882 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1883 VBoxGlobal_SOURCES += \
1884 src/VBox2DHelpers.cpp \
1885 src/VBoxGLSupportInfo.cpp
1886 endif
1887endif
1888
1889
1890#
1891# VirtualBox Manager Application
1892# Deployment.
1893#
1894if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1895 INSTALLS.linux += VirtualBox.qt.conf
1896 INSTALLS.solaris += VirtualBox.qt.conf
1897 VirtualBox.qt.conf_INST = $(INST_BIN)
1898 VirtualBox.qt.conf_MODE = 644
1899 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1900
1901$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1902 $(QUIET)$(RM) -f $@
1903 $(QUIET)$(APPEND) $@ "[Paths]"
1904 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1905endif
1906
1907
1908#
1909# VirtualBox Manager Application
1910# The Qt modules we're using.
1911# (The include directory and lib/framework for each module will be added by the Qt unit.)
1912#
1913VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1914VirtualBox_QT_MODULES.linux += X11Extras
1915VirtualBox_QT_MODULES.solaris += X11Extras
1916VirtualBox_QT_MODULES.freebsd += X11Extras
1917VirtualBox_QT_MODULES.darwin += MacExtras
1918VirtualBox_QT_MODULES.win += WinExtras
1919if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1920 VirtualBox_QT_MODULES += OpenGL
1921endif
1922
1923
1924ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1925 #
1926 # VirtualBox Virtual Machine Application
1927 # The Qt modules we're using.
1928 # (The include directory and lib/framework for each module will be added by the Qt unit.)
1929 #
1930 VirtualBoxVM_QT_MODULES = Core Gui Widgets PrintSupport
1931 VirtualBoxVM_QT_MODULES.linux += X11Extras
1932 VirtualBoxVM_QT_MODULES.solaris += X11Extras
1933 VirtualBoxVM_QT_MODULES.freebsd += X11Extras
1934 VirtualBoxVM_QT_MODULES.darwin += MacExtras
1935 VirtualBoxVM_QT_MODULES.win += WinExtras
1936 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1937 VirtualBoxVM_QT_MODULES += OpenGL
1938 endif
1939
1940
1941 #
1942 # VirtualBox - GUI Global Shared Library.
1943 # The Qt modules we're using.
1944 # (The include directory and lib/framework for each module will be added by the Qt unit.)
1945 #
1946 VBoxGlobal_QT_MODULES = Core Gui Widgets
1947 VBoxGlobal_QT_MODULES.linux += X11Extras
1948 VBoxGlobal_QT_MODULES.solaris += X11Extras
1949 VBoxGlobal_QT_MODULES.freebsd += X11Extras
1950 VBoxGlobal_QT_MODULES.darwin += MacExtras
1951 VBoxGlobal_QT_MODULES.win += WinExtras
1952 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1953 VBoxGlobal_QT_MODULES += OpenGL
1954 endif
1955endif
1956
1957
1958# Pull in the ui files
1959$(eval VirtualBox_SOURCES += $(FORMS))
1960ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1961 $(eval VirtualBoxVM_SOURCES += $(FORMS))
1962 $(eval VBoxGlobal_SOURCES += $(FORMS))
1963endif
1964
1965
1966# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1967VirtualBox_SOURCES += VirtualBox1.qrc
1968VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1969VirtualBox_SOURCES += VirtualBox2.qrc
1970VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1971VirtualBox_SOURCES += VirtualBox1_x2.qrc
1972VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1973VirtualBox_SOURCES += VirtualBox2_x2.qrc
1974VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1975VirtualBox_SOURCES += VirtualBox1_x3.qrc
1976VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1977VirtualBox_SOURCES += VirtualBox2_x3.qrc
1978VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1979VirtualBox_SOURCES += VirtualBox1_x4.qrc
1980VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1981VirtualBox_SOURCES += VirtualBox2_x4.qrc
1982VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1983VirtualBox_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1984$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1985if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1986 VirtualBox_SOURCES += VirtualBoxShaders.qrc
1987 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
1988endif
1989
1990
1991ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1992 # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1993 VirtualBoxVM_SOURCES += VirtualBox1.qrc
1994 VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1995 VirtualBoxVM_SOURCES += VirtualBox2.qrc
1996 VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1997 VirtualBoxVM_SOURCES += VirtualBox1_x2.qrc
1998 VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1999 VirtualBoxVM_SOURCES += VirtualBox2_x2.qrc
2000 VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
2001 VirtualBoxVM_SOURCES += VirtualBox1_x3.qrc
2002 VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
2003 VirtualBoxVM_SOURCES += VirtualBox2_x3.qrc
2004 VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
2005 VirtualBoxVM_SOURCES += VirtualBox1_x4.qrc
2006 VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
2007 VirtualBoxVM_SOURCES += VirtualBox2_x4.qrc
2008 VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
2009 VirtualBoxVM_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
2010 $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
2011 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
2012 VirtualBoxVM_SOURCES += VirtualBoxShaders.qrc
2013 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
2014 endif
2015endif
2016
2017
2018# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
2019VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
2020 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
2021# Compress the translation units.
2022VirtualBox_LRCFLAGS = -silent
2023# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
2024VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
2025
2026
2027## @todo how to detect what tool is used?
2028## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
2029# more generic -Wno-extra
2030# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
2031ifdef VBOX_WITH_XPCOM
2032 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
2033endif
2034
2035
2036#
2037# Build generated COM wrappers as part of app.
2038#
2039ifndef VBOX_GUI_WITH_SHARED_LIBRARY
2040
2041 #
2042 # VirtualBox Manager Application
2043 #
2044 includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
2045 VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
2046 VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
2047 VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
2048 VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
2049
2050 ## @todo kmk doesn't remake optional outputs when they are missing...
2051 $$(VirtualBox_0_OUTDIR)/include/COMWrappers \
2052 + $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
2053 +| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
2054 , $(VirtualBox_VBOX_COMWRAPPERS) \
2055 , $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
2056 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
2057 ): \
2058 $(VBOX_XIDL_FILE) \
2059 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
2060 $(VBOX_FILESPLIT) \
2061 | $$(dir $$@)
2062 $(call MSG_GENERATE,VirtualBox,$<,$@)
2063 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
2064 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
2065 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
2066 $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
2067 $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
2068 $(APPEND) "$@"
2069
2070 # alias for generating the COM Wrappers file.
2071 testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
2072
2073else
2074
2075 #
2076 # VirtualBox - GUI Global Shared Library.
2077 #
2078 includedep $(PATH_TARGET)/VboxGlobalComWrapperFiles.dep
2079 VBoxGlobal_BLDDIRS += $(VBoxGlobal_0_OUTDIR)/include
2080 VBoxGlobal_INTERMEDIATES += $(VBoxGlobal_0_OUTDIR)/include/COMWrappers
2081 VBoxGlobal_SOURCES += $(VBoxGlobal_0_OUTDIR)/include/COMWrappers.cpp
2082 VBoxGlobal_CLEAN += $(wildcard $(VBoxGlobal_0_OUTDIR)/include/*) $(PATH_TARGET)/VboxGlobalComWrapperFiles.dep
2083
2084 ## @todo kmk doesn't remake optional outputs when they are missing...
2085 $$(VBoxGlobal_0_OUTDIR)/include/COMWrappers \
2086 + $(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep \
2087 +| $(if-expr defined(VBoxGlobal_VBOX_COMWRAPPERS) \
2088 , $(VBoxGlobal_VBOX_COMWRAPPERS) \
2089 , $$(VBoxGlobal_0_OUTDIR)/include/COMEnums.h \
2090 $$(VBoxGlobal_0_OUTDIR)/include/COMWrappers.cpp \
2091 ): \
2092 $(VBOX_XIDL_FILE) \
2093 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
2094 $(VBOX_FILESPLIT) \
2095 | $$(dir $$@)
2096 $(call MSG_GENERATE,VBoxGlobal,$<,$@)
2097 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep"
2098 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
2099 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
2100 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxGlobal_0_OUTDIR)/include \
2101 $(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep VBoxGlobal_VBOX_COMWRAPPERS
2102 $(APPEND) "$@"
2103
2104 # alias for generating the COM Wrappers file.
2105 testwrappers:: $$(VBoxGlobal_0_OUTDIR)/include/COMWrappers
2106
2107endif
2108
2109
2110#
2111# Generate qrc file with branded icons.
2112#
2113VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
2114VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
2115$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
2116 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
2117 $(PATH_ROOT)/Config.kmk \
2118 | $$(dir $$@)
2119 $(call MSG_GENERATE,VirtualBox,$<,$@)
2120 $(QUIET)$(SED) \
2121 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
2122 -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
2123 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
2124 -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
2125 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
2126 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
2127 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
2128 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
2129 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
2130 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
2131 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
2132 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
2133 --output $@ \
2134 $<
2135
2136
2137#
2138# Precompiled header - non-functional atm.
2139#
2140ifdef VBOX_WITH_PRECOMPILED_HEADERS
2141 if1of ($(KBUILD_TARGET),win)
2142 VirtualBox_USES += vccprecomp
2143 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
2144
2145 else # obsolete experiment
2146 VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
2147 VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
2148 VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
2149 $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
2150 $(VirtualBox_SOURCES) \
2151 $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
2152 $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
2153 )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
2154
2155 TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
2156 define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
2157 $(APPEND) -t $(out)
2158 endef
2159
2160 MISCBINS += VirtualBoxPch
2161 VirtualBoxPch_EXTENDS = VirtualBox
2162 VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
2163 VirtualBoxPch_INSTTYPE = none
2164 VirtualBoxPch_NAME = VirtualBoxPch
2165 VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
2166 VirtualBoxPch_SOURCES = src/precomp.h
2167 VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
2168 VirtualBoxPch_CXXOBJSUFF = .h.gch
2169 VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
2170 VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
2171 VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
2172 VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
2173 VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
2174 VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
2175 VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
2176 VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
2177 endif # obsolete experiment
2178endif
2179
2180ifeq ($(KBUILD_TARGET),win)
2181#
2182# On Windows we'll have to generate/edit part of the resource file.
2183# The IDI_ICON1 name is Qt specific.
2184#
2185src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
2186src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
2187src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
2188
2189$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
2190 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
2191
2192endif # win
2193
2194
2195#
2196# Unset everything that was loaded from VBoxUI.pro.
2197#
2198FORMS :=
2199TRANSLATIONS :=
2200
2201
2202ifeq ($(KBUILD_TARGET),darwin)
2203#
2204# Create directories for each approved language or the application
2205# menu won't be translated.
2206#
2207INSTALLS += VirtualBox.lproj
2208VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
2209VirtualBox.lproj_MODE = 755
2210VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
2211
2212#
2213# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
2214# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
2215#
2216INSTALLS += VirtualBox.app
2217VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
2218VirtualBox.app_MODE = 644
2219VirtualBox.app_SOURCES = \
2220 src/platform/darwin/PkgInfo \
2221 $(VirtualBox.app_0_OUTDIR)/Info.plist \
2222 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
2223 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
2224 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
2225 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
2226 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
2227 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
2228 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
2229 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
2230 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
2231 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
2232
2233 # Qt5 requires qt.conf on Mac OS X:
2234 VirtualBox.app_SOURCES += \
2235 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
2236
2237 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2238 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
2239 $(QUIET)$(RM) -f $@
2240 $(QUIET)$(SED) \
2241 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2242 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2243 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2244 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2245 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2246 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2247 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2248 $< > $@
2249
2250 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
2251 $(QUIET)$(RM) -f $@
2252 $(QUIET)$(APPEND) $@ "[Paths]"
2253 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
2254
2255 INSTALLS += VirtualBoxVM.app
2256 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
2257 VirtualBoxVM.app_MODE = 644
2258 VirtualBoxVM.app_SOURCES = \
2259 src/platform/darwin/VM-PkgInfo=>PkgInfo \
2260 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
2261 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
2262 VirtualBoxVM.app_SYMLINKS = \
2263 MacOS=>../../../MacOS/
2264
2265 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2266 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
2267 $(QUIET)$(RM) -f $@
2268 $(QUIET)$(SED) \
2269 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2270 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2271 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2272 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2273 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2274 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2275 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2276 --output $@ $<
2277
2278 PROGRAMS += vmstarter
2279 vmstarter_TEMPLATE = VBOXR3EXE
2280 ifdef VBOX_WITH_NEW_XCODE
2281 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
2282 else
2283 vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
2284 endif
2285 vmstarter_LDFLAGS += -framework AppKit
2286 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
2287 vmstarter_INST = $(INST_BIN)vmstarter
2288
2289 INSTALLS += vmstarter.app
2290 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
2291 vmstarter.app_MODE = 644
2292 vmstarter.app_SOURCES = \
2293 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
2294 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
2295 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
2296 vmstarter.app_SYMLINKS = \
2297 MacOS=>../../../MacOS \
2298
2299 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2300 $(call MSG_GENERATE,vmstarter.app,$<,$@)
2301 $(QUIET)$(RM) -f $@
2302 $(QUIET)$(SED) \
2303 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2304 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2305 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2306 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2307 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2308 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2309 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2310 --output $@ $<
2311endif # darwin
2312
2313#
2314# App for testing GL support
2315#
2316if defined(VBOX_WITH_VIDEOHWACCEL)
2317 if1of ($(KBUILD_TARGET), win linux freebsd)
2318 LIBRARIES += VBoxOGL2D
2319 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
2320 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
2321 VBoxOGL2D_QT_MODULES += OpenGL
2322 VBoxOGL2D_SOURCES = \
2323 src/VBoxGLSupportInfo.cpp
2324 VBoxOGL2D_INCS = include
2325 endif
2326endif
2327
2328
2329#
2330# Testcase for the darwin keyboard routines.
2331#
2332ifdef VBOX_WITH_TESTCASES
2333 PROGRAMS.darwin += tstDarwinKeyboard
2334 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
2335 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
2336 tstDarwinKeyboard_INCS = \
2337 $(VBOX_GUI_INC_DIRS)
2338 tstDarwinKeyboard_SOURCES = \
2339 src/platform/darwin/tstDarwinKeyboard.cpp \
2340 src/platform/darwin/DarwinKeyboard.cpp
2341 tstDarwinKeyboard_SOURCES.amd64 = \
2342 src/platform/darwin/CocoaEventHelper.mm
2343 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
2344 tstDarwinKeyboard_LIBS = \
2345 $(LIB_RUNTIME)
2346 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
2347 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
2348 endif
2349endif
2350
2351
2352#
2353# Testcase for SSL certificate downloading.
2354#
2355if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
2356 PROGRAMS += tstSSLCertDownloads
2357 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
2358 tstSSLCertDownloads_USES = qt5
2359 tstSSLCertDownloads_QTTOOL = QT5
2360 tstSSLCertDownloads_QT_MODULES = Core Gui
2361 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
2362 tstSSLCertDownloads_INCS = \
2363 $(VBOX_GUI_INC_DIRS)
2364 tstSSLCertDownloads_SOURCES = \
2365 src/net/tstSSLCertDownloads.cpp
2366endif
2367
2368
2369#
2370# Doxygen documentation.
2371#
2372QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
2373BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
2374OTHER_CLEAN += \
2375 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
2376 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
2377 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2378
2379QTGUI_DOXYFILE_INPUT_DIRS := \
2380 $(addprefix $(PATH_SUB_CURRENT)/src/, \
2381 converter \
2382 extensions \
2383 extensions/graphics \
2384 extradata \
2385 globals \
2386 medium \
2387 net \
2388 objects \
2389 platform \
2390 platform/darwin \
2391 platform/os2 \
2392 platform/win \
2393 platform/x11 \
2394 runtime \
2395 runtime/fullscreen \
2396 runtime/information \
2397 runtime/guestctrl \
2398 runtime/normal \
2399 runtime/scale \
2400 runtime/seamless \
2401 selector \
2402 selector/graphics \
2403 selector/graphics/chooser \
2404 selector/graphics/details \
2405 settings \
2406 settings/global \
2407 settings/machine \
2408 widgets \
2409 widgets/graphics \
2410 wizards \
2411 wizards/clonevd \
2412 wizards/clonevm \
2413 wizards/exportappliance \
2414 wizards/firstrun \
2415 wizards/importappliance \
2416 wizards/newvd \
2417 wizards/newvm)
2418
2419QTGUI_DOXYFILE_INPUT := \
2420 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
2421 $(sort $(wildcard $(dir)/*.h)) \
2422 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
2423
2424includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
2425
2426# Generate the Doxyfile
2427$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
2428 $(PATH_SUB_CURRENT)/Doxyfile \
2429 $(PATH_SUB_CURRENT)/Makefile.kmk \
2430 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
2431 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
2432 | $$(dir $$@)
2433 $(QUIET)$(RM) -f $@ [email protected] [email protected]
2434 $(QUIET)$(CP) -f $< [email protected]
2435 $(QUIET)$(APPEND) [email protected]
2436 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
2437 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
2438 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
2439 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
2440 $(QUIET)$(APPEND) [email protected]
2441 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
2442 $(QUIET)$(APPEND) [email protected]
2443 $(QUIET)$(MV) -f [email protected] $@
2444 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
2445 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
2446
2447# Do the actual job.
2448$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
2449 | $(QTGUI_DOXYFILE_OUTPUT)/
2450 $(call MSG_L1,doxygen qtgui)
2451 $(QUIET)$(RM) -f $@
2452 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
2453 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
2454 $(APPEND) $@
2455
2456# aliases
2457docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2458if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2459docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2460endif
2461
2462
2463
2464# Commit the magic.
2465# (note: before custom rules that make usage of generated variables!).
2466include $(FILE_KBUILD_SUB_FOOTER)
2467
2468
2469#
2470# Update all known NLS translation (.ts) files in the nls/ subdirectory.
2471#
2472# NOTE: This target is intended to be run only by the GUI maintainer shortly
2473# before a new product release. VirtualBox_xx_YY.ts is a template for new
2474# languages and should never be actually translated or installed.
2475#
2476# Use the checknls target for checking again common mistakes done by the
2477# translators.
2478#
2479# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
2480# lupdate call
2481#
2482#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
2483checknls::
2484 # Check for missing :/ in image paths
2485 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
2486
2487updatenls:: makeallnls nls/VirtualBox_en.ts
2488
2489makeallnls:: \
2490 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2491 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2492 $(call MSG_L1,lupdate all languages (nls/*.ts))
2493 $(QUIET)$(TOOL_QT5_LUPDATE) \
2494 $^ \
2495 -ts \
2496 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
2497 nls/VirtualBox_xx_YY.ts
2498
2499# Create the English translation file. This is something special cause it will
2500# contain the plural forms only.
2501nls/VirtualBox_en.ts: \
2502 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2503 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2504 $(call MSG_L1,lupdate $@)
2505 $(QUIET)$(TOOL_QT5_LUPDATE) \
2506 $^ \
2507 -ts \
2508 $@
2509 $(QUIET)$(SED) -n -i -e \
2510 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
2511 $@
2512
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