VirtualBox

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

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

FE/Qt: bugref:6699. Further work for making guest control a machine tool

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