VirtualBox

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

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

FE/Qt: VirtualBox Manager UI: Replace Tools-tabbar with Tools-pane (very basic implementation).

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