VirtualBox

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

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

FE/Qt: UISlidingAnimation: Initial implementation.

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