VirtualBox

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

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

FE/Qt: Copy Selector UI functionality too VirtualBox Manager UI, that's initial body of new Manager.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 92.7 KB
Line 
1# $Id: Makefile.kmk 73424 2018-08-01 14:07:18Z 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/UISlidingWidget.h \
714 src/widgets/UITabBar.h \
715 src/widgets/UIMenuToolBar.h \
716 src/widgets/graphics/UIGraphicsButton.h \
717 src/widgets/graphics/UIGraphicsRotatorButton.h \
718 src/widgets/graphics/UIGraphicsZoomButton.h \
719 src/widgets/graphics/UIGraphicsToolBar.h \
720 src/widgets/graphics/UIGraphicsTextPane.h \
721 src/wizards/newvm/UIWizardNewVM.h \
722 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
723 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
724 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
725 src/wizards/newvm/UIWizardNewVMPageExpert.h \
726 src/wizards/clonevm/UIWizardCloneVM.h \
727 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
728 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
729 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
730 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
731 src/wizards/clonevd/UIWizardCloneVD.h \
732 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
733 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
734 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
735 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
736 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
737 src/wizards/exportappliance/UIWizardExportApp.h \
738 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
739 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
740 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
741 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
742 src/wizards/importappliance/UIWizardImportApp.h \
743 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
744 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
745 src/wizards/importappliance/UIWizardImportAppPageExpert.h
746
747ifdef VBOX_GUI_WITH_NEW_MANAGER
748 VirtualBox_QT_MOCHDRS += \
749 src/manager/UIToolbarTools.h \
750 src/manager/UIToolPaneGlobal.h \
751 src/manager/UIToolPaneMachine.h \
752 src/manager/UIVirtualBoxManager.h \
753 src/manager/UIVirtualMachineItem.h \
754 src/manager/UIWelcomePane.h \
755 src/manager/chooser/UIChooser.h \
756 src/manager/chooser/UIChooserModel.h \
757 src/manager/chooser/UIChooserView.h \
758 src/manager/chooser/UIChooserHandlerMouse.h \
759 src/manager/chooser/UIChooserHandlerKeyboard.h \
760 src/manager/chooser/UIChooserItem.h \
761 src/manager/chooser/UIChooserItemGroup.h \
762 src/manager/chooser/UIChooserItemMachine.h \
763 src/manager/details/UIDetails.h \
764 src/manager/details/UIDetailsModel.h \
765 src/manager/details/UIDetailsView.h \
766 src/manager/details/UIDetailsItem.h \
767 src/manager/details/UIDetailsGroup.h \
768 src/manager/details/UIDetailsSet.h \
769 src/manager/details/UIDetailsElement.h \
770 src/manager/details/UIDetailsElements.h \
771 src/manager/details/UIMachinePreview.h
772endif
773
774ifndef VBOX_GUI_WITH_SHARED_LIBRARY
775 VirtualBox_QT_MOCHDRS += \
776 src/VBoxAboutDlg.h \
777 src/VBoxLicenseViewer.h \
778 src/UITakeSnapshotDialog.h \
779 src/extensions/QIAdvancedSlider.h \
780 src/extensions/QIArrowButtonPress.h \
781 src/extensions/QIArrowButtonSwitch.h \
782 src/extensions/QIArrowSplitter.h \
783 src/extensions/QIComboBox.h \
784 src/extensions/QIDialog.h \
785 src/extensions/QIDialogButtonBox.h \
786 src/extensions/QIFileDialog.h \
787 src/extensions/QIFlowLayout.h \
788 src/extensions/QILabel.h \
789 src/extensions/QILabelSeparator.h \
790 src/extensions/QILineEdit.h \
791 src/extensions/QIMainDialog.h \
792 src/extensions/QIMainWindow.h \
793 src/extensions/QIManagerDialog.h \
794 src/extensions/QIMenu.h \
795 src/extensions/QIMessageBox.h \
796 src/extensions/QIProcess.h \
797 src/extensions/QIRichTextLabel.h \
798 src/extensions/QIRichToolButton.h \
799 src/extensions/QISplitter.h \
800 src/extensions/QIStatusBar.h \
801 src/extensions/QIStatusBarIndicator.h \
802 src/extensions/QIStyledItemDelegate.h \
803 src/extensions/QITableView.h \
804 src/extensions/QITabWidget.h \
805 src/extensions/QIToolButton.h \
806 src/extensions/QITreeView.h \
807 src/extensions/QITreeWidget.h \
808 src/extensions/QIWidgetValidator.h \
809 src/extensions/graphics/QIGraphicsView.h \
810 src/extensions/graphics/QIGraphicsWidget.h \
811 src/extradata/UIExtraDataDefs.h \
812 src/extradata/UIExtraDataManager.h \
813 src/globals/UIActionPool.h \
814 src/globals/UIActionPoolRuntime.h \
815 src/globals/UIActionPoolSelector.h \
816 src/globals/UIAnimationFramework.h \
817 src/globals/UIDesktopWidgetWatchdog.h \
818 src/globals/UIMainEventListener.h \
819 src/globals/UIMessageCenter.h \
820 src/globals/UIModalWindowManager.h \
821 src/globals/UIPopupCenter.h \
822 src/globals/UIShortcutPool.h \
823 src/globals/UIThreadPool.h \
824 src/globals/UIVirtualBoxEventHandler.h \
825 src/globals/VBoxGlobal.h \
826 src/globals/VBoxUtils.h \
827 src/logviewer/UIVMLogPage.h \
828 src/logviewer/UIVMLogViewerBookmarksPanel.h \
829 src/logviewer/UIVMLogViewerDialog.h \
830 src/logviewer/UIVMLogViewerFilterPanel.h \
831 src/logviewer/UIVMLogViewerPanel.h \
832 src/logviewer/UIVMLogViewerSearchPanel.h \
833 src/logviewer/UIVMLogViewerSettingsPanel.h \
834 src/logviewer/UIVMLogViewerTextEdit.h \
835 src/logviewer/UIVMLogViewerWidget.h \
836 src/medium/UIFDCreationDialog.h \
837 src/medium/UIMediumEnumerator.h \
838 src/medium/UIMediumSelector.h \
839 src/runtime/UIConsoleEventHandler.h \
840 src/runtime/UIFrameBuffer.h \
841 src/runtime/UIIndicatorsPool.h \
842 src/runtime/UIKeyboardHandler.h \
843 src/runtime/UIMachine.h \
844 src/runtime/UIMachineLogic.h \
845 src/runtime/UIMachineWindow.h \
846 src/runtime/UIMachineView.h \
847 src/runtime/UIMouseHandler.h \
848 src/runtime/UIMultiScreenLayout.h \
849 src/runtime/UISession.h \
850 src/runtime/UIVMCloseDialog.h \
851 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
852 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
853 src/runtime/fullscreen/UIMachineViewFullscreen.h \
854 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
855 src/runtime/information/UIInformationConfiguration.h \
856 src/runtime/information/UIInformationDataItem.h \
857 src/runtime/information/UIInformationItem.h \
858 src/runtime/information/UIInformationModel.h \
859 src/runtime/information/UIInformationRuntime.h \
860 src/runtime/information/UIInformationView.h \
861 src/runtime/information/UIVMInformationDialog.h \
862 src/runtime/guestctrl/UIGuestControlConsole.h \
863 src/runtime/guestctrl/UIGuestControlFileManager.h \
864 src/runtime/guestctrl/UIGuestControlFileModel.h \
865 src/runtime/guestctrl/UIGuestControlFileTable.h \
866 src/runtime/guestctrl/UIGuestControlInterface.h \
867 src/runtime/guestctrl/UIGuestControlTreeItem.h \
868 src/runtime/guestctrl/UIGuestControlWidget.h \
869 src/runtime/guestctrl/UIGuestFileTable.h \
870 src/runtime/guestctrl/UIHostFileTable.h \
871 src/runtime/normal/UIKeyboardHandlerNormal.h \
872 src/runtime/normal/UIMachineLogicNormal.h \
873 src/runtime/normal/UIMachineViewNormal.h \
874 src/runtime/normal/UIMachineWindowNormal.h \
875 src/runtime/scale/UIKeyboardHandlerScale.h \
876 src/runtime/scale/UIMachineLogicScale.h \
877 src/runtime/scale/UIMachineViewScale.h \
878 src/runtime/scale/UIMachineWindowScale.h \
879 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
880 src/runtime/seamless/UIMachineLogicSeamless.h \
881 src/runtime/seamless/UIMachineViewSeamless.h \
882 src/runtime/seamless/UIMachineWindowSeamless.h \
883 src/settings/UISettingsDialog.h \
884 src/settings/UISettingsDialogSpecific.h \
885 src/settings/UISettingsPage.h \
886 src/settings/UISettingsSelector.h \
887 src/settings/UISettingsSerializer.h \
888 src/settings/global/UIGlobalSettingsExtension.h \
889 src/settings/global/UIGlobalSettingsGeneral.h \
890 src/settings/global/UIGlobalSettingsInput.h \
891 src/settings/global/UIGlobalSettingsLanguage.h \
892 src/settings/global/UIGlobalSettingsDisplay.h \
893 src/settings/global/UIGlobalSettingsNetwork.h \
894 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
895 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
896 src/settings/machine/UIMachineSettingsAudio.h \
897 src/settings/machine/UIMachineSettingsDisplay.h \
898 src/settings/machine/UIMachineSettingsGeneral.h \
899 src/settings/machine/UIMachineSettingsInterface.h \
900 src/settings/machine/UIMachineSettingsNetwork.h \
901 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
902 src/settings/machine/UIMachineSettingsSF.h \
903 src/settings/machine/UIMachineSettingsSFDetails.h \
904 src/settings/machine/UIMachineSettingsSerial.h \
905 src/settings/machine/UIMachineSettingsStorage.h \
906 src/settings/machine/UIMachineSettingsSystem.h \
907 src/settings/machine/UIMachineSettingsUSB.h \
908 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
909 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
910 src/widgets/UIBootTable.h \
911 src/widgets/UIFilePathSelector.h \
912 src/widgets/UIFilmContainer.h \
913 src/widgets/UIGuestRAMSlider.h \
914 src/widgets/UIHostComboEditor.h \
915 src/widgets/UIHotKeyEditor.h \
916 src/widgets/UIMediaComboBox.h \
917 src/widgets/UIMediumSizeEditor.h \
918 src/widgets/UIMenuBar.h \
919 src/widgets/UIMenuBarEditorWindow.h \
920 src/widgets/UIMiniToolBar.h \
921 src/widgets/UINameAndSystemEditor.h \
922 src/widgets/UIPopupBox.h \
923 src/widgets/UIPopupPane.h \
924 src/widgets/UIPopupPaneButtonPane.h \
925 src/widgets/UIPopupPaneMessage.h \
926 src/widgets/UIPopupPaneDetails.h \
927 src/widgets/UIPopupStack.h \
928 src/widgets/UIPopupStackViewport.h \
929 src/widgets/UIPortForwardingTable.h \
930 src/widgets/UIProgressDialog.h \
931 src/widgets/UISlidingToolBar.h \
932 src/widgets/UISpecialControls.h \
933 src/widgets/UIStatusBarEditorWindow.h \
934 src/widgets/UIToolBar.h \
935 src/widgets/UIWarningPane.h \
936 src/wizards/UIWizard.h \
937 src/wizards/UIWizardPage.h \
938 src/wizards/firstrun/UIWizardFirstRun.h \
939 src/wizards/firstrun/UIWizardFirstRunPageBasic.h \
940 src/wizards/newvd/UIWizardNewVD.h \
941 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
942 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
943 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
944 src/wizards/newvd/UIWizardNewVDPageExpert.h
945
946 ifdef VBOX_WITH_DRAG_AND_DROP
947 VirtualBox_QT_MOCHDRS += \
948 src/runtime/UIDnDHandler.h
949 ifdef VBOX_WITH_DRAG_AND_DROP_GH
950 VirtualBox_QT_MOCHDRS += \
951 src/runtime/UIDnDMIMEData.h
952 endif
953 endif
954
955 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
956 VirtualBox_QT_MOCHDRS += \
957 src/net/UIDownloader.h \
958 src/net/UIDownloaderAdditions.h \
959 src/net/UIDownloaderExtensionPack.h \
960 src/net/UIDownloaderUserManual.h \
961 src/net/UINetworkCustomer.h \
962 src/net/UINetworkManager.h \
963 src/net/UINetworkManagerDialog.h \
964 src/net/UINetworkManagerIndicator.h \
965 src/net/UINetworkRequest.h \
966 src/net/UINetworkRequestWidget.h \
967 src/net/UINetworkReply.h \
968 src/net/UIUpdateManager.h \
969 src/settings/global/UIGlobalSettingsProxy.h \
970 src/settings/global/UIGlobalSettingsUpdate.h
971 endif
972
973 VirtualBox_QT_MOCHDRS.darwin += \
974 src/platform/darwin/UICocoaSpecialControls.h \
975 src/platform/darwin/UIWindowMenuManager.h
976endif
977
978
979ifdef VBOX_GUI_WITH_SHARED_LIBRARY
980 #
981 # VirtualBox Virtual Machine Application
982 # Headers containing definitions of classes that use the Q_OBJECT macro.
983 #
984 VirtualBoxVM_QT_MOCHDRS = \
985 src/globals/UIStarter.h \
986 src/runtime/UIConsoleEventHandler.h \
987 src/runtime/UIFrameBuffer.h \
988 src/runtime/UIIndicatorsPool.h \
989 src/runtime/UIKeyboardHandler.h \
990 src/runtime/UIMachine.h \
991 src/runtime/UIMachineLogic.h \
992 src/runtime/UIMachineWindow.h \
993 src/runtime/UIMachineView.h \
994 src/runtime/UIMouseHandler.h \
995 src/runtime/UIMultiScreenLayout.h \
996 src/runtime/UISession.h \
997 src/runtime/UIVMCloseDialog.h \
998 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
999 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
1000 src/runtime/fullscreen/UIMachineViewFullscreen.h \
1001 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
1002 src/runtime/information/UIInformationConfiguration.h \
1003 src/runtime/information/UIInformationDataItem.h \
1004 src/runtime/information/UIInformationItem.h \
1005 src/runtime/information/UIInformationModel.h \
1006 src/runtime/information/UIInformationRuntime.h \
1007 src/runtime/information/UIInformationView.h \
1008 src/runtime/information/UIVMInformationDialog.h \
1009 src/runtime/guestctrl/UIGuestControlConsole.h \
1010 src/runtime/guestctrl/UIGuestControlFileManager.h \
1011 src/runtime/guestctrl/UIGuestControlFileModel.h \
1012 src/runtime/guestctrl/UIGuestControlFileTable.h \
1013 src/runtime/guestctrl/UIGuestControlInterface.h \
1014 src/runtime/guestctrl/UIGuestControlTreeItem.h \
1015 src/runtime/guestctrl/UIGuestControlWidget.h \
1016 src/runtime/guestctrl/UIGuestFileTable.h \
1017 src/runtime/guestctrl/UIHostFileTable.h \
1018 src/runtime/normal/UIKeyboardHandlerNormal.h \
1019 src/runtime/normal/UIMachineLogicNormal.h \
1020 src/runtime/normal/UIMachineViewNormal.h \
1021 src/runtime/normal/UIMachineWindowNormal.h \
1022 src/runtime/scale/UIKeyboardHandlerScale.h \
1023 src/runtime/scale/UIMachineLogicScale.h \
1024 src/runtime/scale/UIMachineViewScale.h \
1025 src/runtime/scale/UIMachineWindowScale.h \
1026 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
1027 src/runtime/seamless/UIMachineLogicSeamless.h \
1028 src/runtime/seamless/UIMachineViewSeamless.h \
1029 src/runtime/seamless/UIMachineWindowSeamless.h \
1030 src/widgets/UIMiniToolBar.h \
1031 src/wizards/firstrun/UIWizardFirstRun.h \
1032 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
1033
1034 ifdef VBOX_WITH_DRAG_AND_DROP
1035 VirtualBoxVM_QT_MOCHDRS += \
1036 src/runtime/UIDnDHandler.h
1037 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1038 VirtualBoxVM_QT_MOCHDRS += \
1039 src/runtime/UIDnDMIMEData.h
1040 endif
1041 endif
1042
1043
1044 #
1045 # VirtualBox - GUI Global Shared Library.
1046 # Headers containing definitions of classes that use the Q_OBJECT macro.
1047 #
1048 VBoxGlobal_QT_MOCHDRS = \
1049 src/VBoxAboutDlg.h \
1050 src/VBoxLicenseViewer.h \
1051 src/UITakeSnapshotDialog.h \
1052 src/extensions/QIAdvancedSlider.h \
1053 src/extensions/QIArrowButtonPress.h \
1054 src/extensions/QIArrowButtonSwitch.h \
1055 src/extensions/QIArrowSplitter.h \
1056 src/extensions/QIComboBox.h \
1057 src/extensions/QIDialog.h \
1058 src/extensions/QIDialogButtonBox.h \
1059 src/extensions/QIFileDialog.h \
1060 src/extensions/QIFlowLayout.h \
1061 src/extensions/QILabel.h \
1062 src/extensions/QILabelSeparator.h \
1063 src/extensions/QILineEdit.h \
1064 src/extensions/QIMainDialog.h \
1065 src/extensions/QIMainWindow.h \
1066 src/extensions/QIManagerDialog.h \
1067 src/extensions/QIMenu.h \
1068 src/extensions/QIMessageBox.h \
1069 src/extensions/QIProcess.h \
1070 src/extensions/QIRichTextLabel.h \
1071 src/extensions/QIRichToolButton.h \
1072 src/extensions/QISplitter.h \
1073 src/extensions/QIStatusBar.h \
1074 src/extensions/QIStatusBarIndicator.h \
1075 src/extensions/QIStyledItemDelegate.h \
1076 src/extensions/QITableView.h \
1077 src/extensions/QITabWidget.h \
1078 src/extensions/QIToolButton.h \
1079 src/extensions/QITreeView.h \
1080 src/extensions/QITreeWidget.h \
1081 src/extensions/QIWidgetValidator.h \
1082 src/extensions/graphics/QIGraphicsView.h \
1083 src/extensions/graphics/QIGraphicsWidget.h \
1084 src/extradata/UIExtraDataDefs.h \
1085 src/extradata/UIExtraDataManager.h \
1086 src/globals/UIActionPool.h \
1087 src/globals/UIActionPoolRuntime.h \
1088 src/globals/UIActionPoolSelector.h \
1089 src/globals/UIAnimationFramework.h \
1090 src/globals/UIDesktopWidgetWatchdog.h \
1091 src/globals/UIMainEventListener.h \
1092 src/globals/UIMessageCenter.h \
1093 src/globals/UIModalWindowManager.h \
1094 src/globals/UIPopupCenter.h \
1095 src/globals/UIShortcutPool.h \
1096 src/globals/UIThreadPool.h \
1097 src/globals/UIVirtualBoxEventHandler.h \
1098 src/globals/VBoxGlobal.h \
1099 src/globals/VBoxUtils.h \
1100 src/logviewer/UIVMLogPage.h \
1101 src/logviewer/UIVMLogViewerBookmarksPanel.h \
1102 src/logviewer/UIVMLogViewerDialog.h \
1103 src/logviewer/UIVMLogViewerFilterPanel.h \
1104 src/logviewer/UIVMLogViewerPanel.h \
1105 src/logviewer/UIVMLogViewerSearchPanel.h \
1106 src/logviewer/UIVMLogViewerSettingsPanel.h \
1107 src/logviewer/UIVMLogViewerTextEdit.h \
1108 src/logviewer/UIVMLogViewerWidget.h \
1109 src/medium/UIFDCreationDialog.h \
1110 src/medium/UIMediumEnumerator.h \
1111 src/medium/UIMediumSelector.h \
1112 src/settings/UISettingsDialog.h \
1113 src/settings/UISettingsDialogSpecific.h \
1114 src/settings/UISettingsPage.h \
1115 src/settings/UISettingsSelector.h \
1116 src/settings/UISettingsSerializer.h \
1117 src/settings/global/UIGlobalSettingsExtension.h \
1118 src/settings/global/UIGlobalSettingsGeneral.h \
1119 src/settings/global/UIGlobalSettingsInput.h \
1120 src/settings/global/UIGlobalSettingsLanguage.h \
1121 src/settings/global/UIGlobalSettingsDisplay.h \
1122 src/settings/global/UIGlobalSettingsNetwork.h \
1123 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
1124 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
1125 src/settings/machine/UIMachineSettingsAudio.h \
1126 src/settings/machine/UIMachineSettingsDisplay.h \
1127 src/settings/machine/UIMachineSettingsGeneral.h \
1128 src/settings/machine/UIMachineSettingsInterface.h \
1129 src/settings/machine/UIMachineSettingsNetwork.h \
1130 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
1131 src/settings/machine/UIMachineSettingsSF.h \
1132 src/settings/machine/UIMachineSettingsSFDetails.h \
1133 src/settings/machine/UIMachineSettingsSerial.h \
1134 src/settings/machine/UIMachineSettingsStorage.h \
1135 src/settings/machine/UIMachineSettingsSystem.h \
1136 src/settings/machine/UIMachineSettingsUSB.h \
1137 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
1138 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
1139 src/widgets/UIBootTable.h \
1140 src/widgets/UIFilePathSelector.h \
1141 src/widgets/UIFilmContainer.h \
1142 src/widgets/UIGuestRAMSlider.h \
1143 src/widgets/UIHostComboEditor.h \
1144 src/widgets/UIHotKeyEditor.h \
1145 src/widgets/UIMediaComboBox.h \
1146 src/widgets/UIMediumSizeEditor.h \
1147 src/widgets/UIMenuBar.h \
1148 src/widgets/UIMenuBarEditorWindow.h \
1149 src/widgets/UINameAndSystemEditor.h \
1150 src/widgets/UIPopupBox.h \
1151 src/widgets/UIPopupPane.h \
1152 src/widgets/UIPopupPaneButtonPane.h \
1153 src/widgets/UIPopupPaneMessage.h \
1154 src/widgets/UIPopupPaneDetails.h \
1155 src/widgets/UIPopupStack.h \
1156 src/widgets/UIPopupStackViewport.h \
1157 src/widgets/UIPortForwardingTable.h \
1158 src/widgets/UIProgressDialog.h \
1159 src/widgets/UISlidingToolBar.h \
1160 src/widgets/UISpecialControls.h \
1161 src/widgets/UIStatusBarEditorWindow.h \
1162 src/widgets/UIToolBar.h \
1163 src/widgets/UIWarningPane.h \
1164 src/wizards/UIWizard.h \
1165 src/wizards/UIWizardPage.h \
1166 src/wizards/newvd/UIWizardNewVD.h \
1167 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
1168 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
1169 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
1170 src/wizards/newvd/UIWizardNewVDPageExpert.h
1171
1172 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1173 VBoxGlobal_QT_MOCHDRS += \
1174 src/net/UIDownloader.h \
1175 src/net/UIDownloaderAdditions.h \
1176 src/net/UIDownloaderExtensionPack.h \
1177 src/net/UIDownloaderUserManual.h \
1178 src/net/UINetworkCustomer.h \
1179 src/net/UINetworkManager.h \
1180 src/net/UINetworkManagerDialog.h \
1181 src/net/UINetworkManagerIndicator.h \
1182 src/net/UINetworkRequest.h \
1183 src/net/UINetworkRequestWidget.h \
1184 src/net/UINetworkReply.h \
1185 src/net/UIUpdateManager.h \
1186 src/settings/global/UIGlobalSettingsProxy.h \
1187 src/settings/global/UIGlobalSettingsUpdate.h
1188 endif
1189
1190 VBoxGlobal_QT_MOCHDRS.darwin += \
1191 src/platform/darwin/UICocoaSpecialControls.h \
1192 src/platform/darwin/UIWindowMenuManager.h
1193endif
1194
1195
1196#
1197# VirtualBox Manager Application
1198# Sources containing local definitions of classes that use the Q_OBJECT macro.
1199#
1200VirtualBox_QT_MOCSRCS = \
1201 src/selector/UIDesktopPane.cpp \
1202 src/snapshots/UISnapshotDetailsWidget.cpp \
1203 src/snapshots/UISnapshotPane.cpp \
1204 src/widgets/UIMenuToolBar.cpp \
1205 src/widgets/UITabBar.cpp \
1206 src/wizards/importappliance/UIWizardImportApp.cpp
1207
1208ifdef VBOX_GUI_WITH_NEW_MANAGER
1209 VirtualBox_QT_MOCSRCS = \
1210 src/manager/UIWelcomePane.cpp
1211endif
1212
1213ifndef VBOX_GUI_WITH_SHARED_LIBRARY
1214 VirtualBox_QT_MOCSRCS += \
1215 src/extensions/QIAdvancedSlider.cpp \
1216 src/extensions/QIArrowSplitter.cpp \
1217 src/extensions/QISplitter.cpp \
1218 src/extradata/UIExtraDataManager.cpp \
1219 src/globals/UIActionPool.cpp \
1220 src/globals/UIActionPoolRuntime.cpp \
1221 src/globals/UIActionPoolSelector.cpp \
1222 src/globals/UIMainEventListener.cpp \
1223 src/globals/UIThreadPool.cpp \
1224 src/globals/UIVirtualBoxEventHandler.cpp \
1225 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1226 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1227 src/logviewer/UIVMLogViewerTextEdit.cpp \
1228 src/medium/UIMediumEnumerator.cpp \
1229 src/medium/UIMediumSelector.cpp \
1230 src/runtime/UIConsoleEventHandler.cpp \
1231 src/runtime/UIFrameBuffer.cpp \
1232 src/runtime/UIIndicatorsPool.cpp \
1233 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1234 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1235 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1236 src/runtime/guestctrl/UIGuestFileTable.cpp \
1237 src/runtime/guestctrl/UIHostFileTable.cpp \
1238 src/settings/global/UIGlobalSettingsInput.cpp \
1239 src/settings/machine/UIMachineSettingsNetwork.cpp \
1240 src/settings/machine/UIMachineSettingsSerial.cpp \
1241 src/settings/machine/UIMachineSettingsStorage.cpp \
1242 src/settings/machine/UIMachineSettingsUSB.cpp \
1243 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1244 src/widgets/UIFilmContainer.cpp \
1245 src/widgets/UIHotKeyEditor.cpp \
1246 src/widgets/UIMiniToolBar.cpp \
1247 src/widgets/UIPortForwardingTable.cpp \
1248 src/widgets/UIProgressDialog.cpp \
1249 src/widgets/UIStatusBarEditorWindow.cpp
1250
1251 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1252 VirtualBox_QT_MOCSRCS += \
1253 src/net/UINetworkReply.cpp \
1254 src/net/UIUpdateManager.cpp
1255 endif
1256
1257 ifdef VBOX_WITH_XPCOM
1258 VirtualBox_QT_MOCSRCS += \
1259 src/globals/COMDefs.cpp
1260 endif
1261
1262 VirtualBox_QT_MOCSRCS.darwin += \
1263 src/platform/darwin/UIWindowMenuManager.cpp
1264
1265 VirtualBox_QT_MOCSRCS.linux += \
1266 src/globals/UIDesktopWidgetWatchdog.cpp
1267 VirtualBox_QT_MOCSRCS.solaris += \
1268 src/globals/UIDesktopWidgetWatchdog.cpp
1269 VirtualBox_QT_MOCSRCS.freebsd += \
1270 src/globals/UIDesktopWidgetWatchdog.cpp
1271endif
1272
1273
1274ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1275 #
1276 # VirtualBox Virtual Machine Application
1277 # Sources containing local definitions of classes that use the Q_OBJECT macro.
1278 #
1279 VirtualBoxVM_QT_MOCSRCS = \
1280 src/runtime/UIConsoleEventHandler.cpp \
1281 src/runtime/UIFrameBuffer.cpp \
1282 src/runtime/UIIndicatorsPool.cpp \
1283 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1284 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1285 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1286 src/runtime/guestctrl/UIGuestFileTable.cpp \
1287 src/runtime/guestctrl/UIHostFileTable.cpp \
1288 src/widgets/UIMiniToolBar.cpp
1289
1290
1291 #
1292 # VirtualBox - GUI Global Shared Library.
1293 # Sources.
1294 #
1295 VBoxGlobal_QT_MOCSRCS = \
1296 src/extensions/QIAdvancedSlider.cpp \
1297 src/extensions/QIArrowSplitter.cpp \
1298 src/extensions/QISplitter.cpp \
1299 src/extradata/UIExtraDataManager.cpp \
1300 src/globals/UIActionPool.cpp \
1301 src/globals/UIActionPoolRuntime.cpp \
1302 src/globals/UIActionPoolSelector.cpp \
1303 src/globals/UIMainEventListener.cpp \
1304 src/globals/UIThreadPool.cpp \
1305 src/globals/UIVirtualBoxEventHandler.cpp \
1306 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1307 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1308 src/logviewer/UIVMLogViewerTextEdit.cpp \
1309 src/medium/UIMediumEnumerator.cpp \
1310 src/medium/UIMediumSelector.cpp \
1311 src/settings/global/UIGlobalSettingsInput.cpp \
1312 src/settings/machine/UIMachineSettingsNetwork.cpp \
1313 src/settings/machine/UIMachineSettingsSerial.cpp \
1314 src/settings/machine/UIMachineSettingsStorage.cpp \
1315 src/settings/machine/UIMachineSettingsUSB.cpp \
1316 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1317 src/widgets/UIFilmContainer.cpp \
1318 src/widgets/UIHotKeyEditor.cpp \
1319 src/widgets/UIPortForwardingTable.cpp \
1320 src/widgets/UIProgressDialog.cpp \
1321 src/widgets/UIStatusBarEditorWindow.cpp
1322
1323 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1324 VBoxGlobal_QT_MOCSRCS += \
1325 src/net/UINetworkReply.cpp \
1326 src/net/UIUpdateManager.cpp
1327 endif
1328
1329 ifdef VBOX_WITH_XPCOM
1330 VBoxGlobal_QT_MOCSRCS += \
1331 src/globals/COMDefs.cpp
1332 endif
1333
1334 VBoxGlobal_QT_MOCSRCS.darwin += \
1335 src/platform/darwin/UIWindowMenuManager.cpp
1336
1337 VBoxGlobal_QT_MOCSRCS.linux += \
1338 src/globals/UIDesktopWidgetWatchdog.cpp
1339 VBoxGlobal_QT_MOCSRCS.solaris += \
1340 src/globals/UIDesktopWidgetWatchdog.cpp
1341 VBoxGlobal_QT_MOCSRCS.freebsd += \
1342 src/globals/UIDesktopWidgetWatchdog.cpp
1343endif
1344
1345
1346#
1347# VirtualBox Manager Application
1348# Sources.
1349#
1350VirtualBox_SOURCES = \
1351 src/main.cpp \
1352 src/globals/UIStarter.cpp \
1353 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
1354 src/hostnetwork/UIHostNetworkManager.cpp \
1355 src/hostnetwork/UIHostNetworkUtils.cpp \
1356 src/medium/UIMediumDetailsWidget.cpp \
1357 src/medium/UIMediumManager.cpp \
1358 src/selector/UIDesktopPane.cpp \
1359 src/selector/UIVMItem.cpp \
1360 src/selector/UISelectorWindow.cpp \
1361 src/selector/UIToolsPaneGlobal.cpp \
1362 src/selector/UIToolsPaneMachine.cpp \
1363 src/selector/UIToolsToolbar.cpp \
1364 src/selector/graphics/chooser/UIGChooser.cpp \
1365 src/selector/graphics/chooser/UIGChooserModel.cpp \
1366 src/selector/graphics/chooser/UIGChooserView.cpp \
1367 src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
1368 src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
1369 src/selector/graphics/chooser/UIGChooserItem.cpp \
1370 src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
1371 src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
1372 src/selector/graphics/details/UIGDetails.cpp \
1373 src/selector/graphics/details/UIGDetailsModel.cpp \
1374 src/selector/graphics/details/UIGDetailsView.cpp \
1375 src/selector/graphics/details/UIGDetailsItem.cpp \
1376 src/selector/graphics/details/UIGDetailsGroup.cpp \
1377 src/selector/graphics/details/UIGDetailsSet.cpp \
1378 src/selector/graphics/details/UIGDetailsElement.cpp \
1379 src/selector/graphics/details/UIGDetailsElements.cpp \
1380 src/selector/graphics/details/UIGMachinePreview.cpp \
1381 src/snapshots/UISnapshotDetailsWidget.cpp \
1382 src/snapshots/UISnapshotPane.cpp \
1383 src/widgets/UIApplianceEditorWidget.cpp \
1384 src/widgets/UIApplianceExportEditorWidget.cpp \
1385 src/widgets/UIApplianceImportEditorWidget.cpp \
1386 src/widgets/UIEmptyFilePathSelector.cpp \
1387 src/widgets/UIGuestOSTypeSelectionButton.cpp \
1388 src/widgets/UILineTextEdit.cpp \
1389 src/widgets/UISlidingWidget.cpp \
1390 src/widgets/UITabBar.cpp \
1391 src/widgets/UIMenuToolBar.cpp \
1392 src/widgets/graphics/UIGraphicsButton.cpp \
1393 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1394 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1395 src/widgets/graphics/UIGraphicsToolBar.cpp \
1396 src/widgets/graphics/UIGraphicsTextPane.cpp \
1397 src/wizards/newvm/UIWizardNewVM.cpp \
1398 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
1399 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
1400 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
1401 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
1402 src/wizards/clonevm/UIWizardCloneVM.cpp \
1403 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
1404 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
1405 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
1406 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
1407 src/wizards/clonevd/UIWizardCloneVD.cpp \
1408 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
1409 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
1410 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
1411 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
1412 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
1413 src/wizards/exportappliance/UIWizardExportApp.cpp \
1414 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
1415 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
1416 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
1417 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1418 src/wizards/importappliance/UIWizardImportApp.cpp \
1419 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
1420 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
1421 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
1422
1423ifdef VBOX_GUI_WITH_NEW_MANAGER
1424 VirtualBox_SOURCES += \
1425 src/manager/UIToolbarTools.cpp \
1426 src/manager/UIToolPaneGlobal.cpp \
1427 src/manager/UIToolPaneMachine.cpp \
1428 src/manager/UIVirtualBoxManager.cpp \
1429 src/manager/UIVirtualMachineItem.cpp \
1430 src/manager/UIWelcomePane.cpp \
1431 src/manager/chooser/UIChooser.cpp \
1432 src/manager/chooser/UIChooserModel.cpp \
1433 src/manager/chooser/UIChooserView.cpp \
1434 src/manager/chooser/UIChooserHandlerMouse.cpp \
1435 src/manager/chooser/UIChooserHandlerKeyboard.cpp \
1436 src/manager/chooser/UIChooserItem.cpp \
1437 src/manager/chooser/UIChooserItemGroup.cpp \
1438 src/manager/chooser/UIChooserItemMachine.cpp \
1439 src/manager/details/UIDetails.cpp \
1440 src/manager/details/UIDetailsModel.cpp \
1441 src/manager/details/UIDetailsView.cpp \
1442 src/manager/details/UIDetailsItem.cpp \
1443 src/manager/details/UIDetailsGroup.cpp \
1444 src/manager/details/UIDetailsSet.cpp \
1445 src/manager/details/UIDetailsElement.cpp \
1446 src/manager/details/UIDetailsElements.cpp \
1447 src/manager/details/UIMachinePreview.cpp
1448endif
1449
1450VirtualBox_SOURCES.darwin += \
1451 src/platform/darwin/UIDesktopServices_darwin.cpp \
1452 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1453
1454if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1455 VirtualBox_SOURCES += \
1456 src/platform/x11/UIDesktopServices_x11.cpp
1457endif
1458
1459VirtualBox_SOURCES.win += \
1460 src/platform/win/VirtualBox.rc \
1461 src/platform/win/UIDesktopServices_win.cpp
1462
1463ifdef VBOX_WITH_ICHAT_THEATER
1464 VirtualBox_SOURCES.darwin += \
1465 src/platform/darwin/VBoxIChatTheaterWrapper.m
1466endif
1467
1468if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1469 VirtualBox_SOURCES += \
1470 src/VBox2DHelpers.cpp \
1471 src/VBoxFBOverlay.cpp \
1472 src/VBoxGLSupportInfo.cpp
1473endif
1474
1475ifndef VBOX_GUI_WITH_SHARED_LIBRARY
1476 VirtualBox_SOURCES += \
1477 src/VBoxAboutDlg.cpp \
1478 src/VBoxLicenseViewer.cpp \
1479 src/UITakeSnapshotDialog.cpp \
1480 src/extensions/QIAdvancedSlider.cpp \
1481 src/extensions/QIArrowButtonPress.cpp \
1482 src/extensions/QIArrowButtonSwitch.cpp \
1483 src/extensions/QIArrowSplitter.cpp \
1484 src/extensions/QIComboBox.cpp \
1485 src/extensions/QIDialog.cpp \
1486 src/extensions/QIDialogButtonBox.cpp \
1487 src/extensions/QIFileDialog.cpp \
1488 src/extensions/QIFlowLayout.cpp \
1489 src/extensions/QILabel.cpp \
1490 src/extensions/QILabelSeparator.cpp \
1491 src/extensions/QILineEdit.cpp \
1492 src/extensions/QIMainDialog.cpp \
1493 src/extensions/QIMainWindow.cpp \
1494 src/extensions/QIManagerDialog.cpp \
1495 src/extensions/QIMenu.cpp \
1496 src/extensions/QIMessageBox.cpp \
1497 src/extensions/QIProcess.cpp \
1498 src/extensions/QIRichTextLabel.cpp \
1499 src/extensions/QIRichToolButton.cpp \
1500 src/extensions/QISplitter.cpp \
1501 src/extensions/QIStatusBar.cpp \
1502 src/extensions/QIStatusBarIndicator.cpp \
1503 src/extensions/QIStyledItemDelegate.cpp \
1504 src/extensions/QITableView.cpp \
1505 src/extensions/QITabWidget.cpp \
1506 src/extensions/QIToolButton.cpp \
1507 src/extensions/QITreeView.cpp \
1508 src/extensions/QITreeWidget.cpp \
1509 src/extensions/QIWidgetValidator.cpp \
1510 src/extensions/graphics/QIGraphicsView.cpp \
1511 src/extensions/graphics/QIGraphicsWidget.cpp \
1512 src/extradata/UIExtraDataDefs.cpp \
1513 src/extradata/UIExtraDataManager.cpp \
1514 src/converter/UIConverter.cpp \
1515 src/converter/UIConverterBackendCOM.cpp \
1516 src/converter/UIConverterBackendGlobal.cpp \
1517 src/globals/COMDefs.cpp \
1518 src/globals/UIActionPool.cpp \
1519 src/globals/UIActionPoolRuntime.cpp \
1520 src/globals/UIActionPoolSelector.cpp \
1521 src/globals/UIAnimationFramework.cpp \
1522 src/globals/UIDefs.cpp \
1523 src/globals/UIDesktopWidgetWatchdog.cpp \
1524 src/globals/UIErrorString.cpp \
1525 src/globals/UIIconPool.cpp \
1526 src/globals/UIImageTools.cpp \
1527 src/globals/UIMainEventListener.cpp \
1528 src/globals/UIMessageCenter.cpp \
1529 src/globals/UIModalWindowManager.cpp \
1530 src/globals/UIPopupCenter.cpp \
1531 src/globals/UIShortcutPool.cpp \
1532 src/globals/UIThreadPool.cpp \
1533 src/globals/UIVirtualBoxEventHandler.cpp \
1534 src/globals/VBoxGlobal.cpp \
1535 src/logviewer/UIVMLogPage.cpp \
1536 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1537 src/logviewer/UIVMLogViewerDialog.cpp \
1538 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1539 src/logviewer/UIVMLogViewerPanel.cpp \
1540 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1541 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
1542 src/logviewer/UIVMLogViewerTextEdit.cpp \
1543 src/logviewer/UIVMLogViewerWidget.cpp \
1544 src/medium/UIFDCreationDialog.cpp \
1545 src/medium/UIMedium.cpp \
1546 src/medium/UIMediumDefs.cpp \
1547 src/medium/UIMediumEnumerator.cpp \
1548 src/medium/UIMediumItem.cpp \
1549 src/medium/UIMediumSelector.cpp \
1550 src/objects/UIRichTextString.cpp \
1551 src/runtime/UIConsoleEventHandler.cpp \
1552 src/runtime/UIFrameBuffer.cpp \
1553 src/runtime/UIIndicatorsPool.cpp \
1554 src/runtime/UIKeyboardHandler.cpp \
1555 src/runtime/UIMachine.cpp \
1556 src/runtime/UIMachineLogic.cpp \
1557 src/runtime/UIMachineView.cpp \
1558 src/runtime/UIMachineWindow.cpp \
1559 src/runtime/UIMouseHandler.cpp \
1560 src/runtime/UIMultiScreenLayout.cpp \
1561 src/runtime/UISession.cpp \
1562 src/runtime/UIVMCloseDialog.cpp \
1563 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1564 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1565 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1566 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1567 src/runtime/information/UIInformationConfiguration.cpp \
1568 src/runtime/information/UIInformationDataItem.cpp \
1569 src/runtime/information/UIInformationItem.cpp \
1570 src/runtime/information/UIInformationModel.cpp \
1571 src/runtime/information/UIInformationRuntime.cpp \
1572 src/runtime/information/UIInformationView.cpp \
1573 src/runtime/information/UIVMInformationDialog.cpp \
1574 src/runtime/guestctrl/UIGuestControlConsole.cpp \
1575 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1576 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
1577 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1578 src/runtime/guestctrl/UIGuestControlInterface.cpp \
1579 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
1580 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1581 src/runtime/guestctrl/UIGuestFileTable.cpp \
1582 src/runtime/guestctrl/UIHostFileTable.cpp \
1583 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1584 src/runtime/normal/UIMachineLogicNormal.cpp \
1585 src/runtime/normal/UIMachineViewNormal.cpp \
1586 src/runtime/normal/UIMachineWindowNormal.cpp \
1587 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1588 src/runtime/scale/UIMachineLogicScale.cpp \
1589 src/runtime/scale/UIMachineViewScale.cpp \
1590 src/runtime/scale/UIMachineWindowScale.cpp \
1591 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1592 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1593 src/runtime/seamless/UIMachineViewSeamless.cpp \
1594 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1595 src/settings/UISettingsDefs.cpp \
1596 src/settings/UISettingsDialog.cpp \
1597 src/settings/UISettingsDialogSpecific.cpp \
1598 src/settings/UISettingsPage.cpp \
1599 src/settings/UISettingsSelector.cpp \
1600 src/settings/UISettingsSerializer.cpp \
1601 src/settings/global/UIGlobalSettingsExtension.cpp \
1602 src/settings/global/UIGlobalSettingsGeneral.cpp \
1603 src/settings/global/UIGlobalSettingsInput.cpp \
1604 src/settings/global/UIGlobalSettingsLanguage.cpp \
1605 src/settings/global/UIGlobalSettingsDisplay.cpp \
1606 src/settings/global/UIGlobalSettingsNetwork.cpp \
1607 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1608 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1609 src/settings/machine/UIMachineSettingsAudio.cpp \
1610 src/settings/machine/UIMachineSettingsDisplay.cpp \
1611 src/settings/machine/UIMachineSettingsGeneral.cpp \
1612 src/settings/machine/UIMachineSettingsInterface.cpp \
1613 src/settings/machine/UIMachineSettingsNetwork.cpp \
1614 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1615 src/settings/machine/UIMachineSettingsSF.cpp \
1616 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1617 src/settings/machine/UIMachineSettingsSerial.cpp \
1618 src/settings/machine/UIMachineSettingsStorage.cpp \
1619 src/settings/machine/UIMachineSettingsSystem.cpp \
1620 src/settings/machine/UIMachineSettingsUSB.cpp \
1621 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1622 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1623 src/widgets/UIBootTable.cpp \
1624 src/widgets/UIFilePathSelector.cpp \
1625 src/widgets/UIFilmContainer.cpp \
1626 src/widgets/UIGuestRAMSlider.cpp \
1627 src/widgets/UIHostComboEditor.cpp \
1628 src/widgets/UIHotKeyEditor.cpp \
1629 src/widgets/UIMediaComboBox.cpp \
1630 src/widgets/UIMediumSizeEditor.cpp \
1631 src/widgets/UIMenuBar.cpp \
1632 src/widgets/UIMenuBarEditorWindow.cpp \
1633 src/widgets/UIMiniToolBar.cpp \
1634 src/widgets/UINameAndSystemEditor.cpp \
1635 src/widgets/UIPopupBox.cpp \
1636 src/widgets/UIPopupPane.cpp \
1637 src/widgets/UIPopupPaneButtonPane.cpp \
1638 src/widgets/UIPopupPaneMessage.cpp \
1639 src/widgets/UIPopupPaneDetails.cpp \
1640 src/widgets/UIPopupStack.cpp \
1641 src/widgets/UIPopupStackViewport.cpp \
1642 src/widgets/UIPortForwardingTable.cpp \
1643 src/widgets/UIProgressDialog.cpp \
1644 src/widgets/UISlidingToolBar.cpp \
1645 src/widgets/UISpecialControls.cpp \
1646 src/widgets/UIStatusBarEditorWindow.cpp \
1647 src/widgets/UIToolBar.cpp \
1648 src/widgets/UIWarningPane.cpp \
1649 src/wizards/UIWizard.cpp \
1650 src/wizards/UIWizardPage.cpp \
1651 src/wizards/firstrun/UIWizardFirstRun.cpp \
1652 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp \
1653 src/wizards/newvd/UIWizardNewVD.cpp \
1654 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1655 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1656 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1657 src/wizards/newvd/UIWizardNewVDPageExpert.cpp
1658
1659 ifdef VBOX_WITH_DRAG_AND_DROP
1660 VirtualBox_SOURCES += \
1661 src/runtime/UIDnDHandler.cpp
1662 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1663 VirtualBox_SOURCES += \
1664 src/runtime/UIDnDMIMEData.cpp
1665 VirtualBox_SOURCES.win += \
1666 src/runtime/UIDnDDropSource_win.cpp \
1667 src/runtime/UIDnDDataObject_win.cpp \
1668 src/runtime/UIDnDEnumFormat_win.cpp
1669 endif
1670 endif
1671
1672 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1673 VirtualBox_SOURCES += \
1674 src/net/UIDownloader.cpp \
1675 src/net/UIDownloaderAdditions.cpp \
1676 src/net/UIDownloaderExtensionPack.cpp \
1677 src/net/UIDownloaderUserManual.cpp \
1678 src/net/UINetworkCustomer.cpp \
1679 src/net/UINetworkManager.cpp \
1680 src/net/UINetworkManagerDialog.cpp \
1681 src/net/UINetworkManagerIndicator.cpp \
1682 src/net/UINetworkRequest.cpp \
1683 src/net/UINetworkRequestWidget.cpp \
1684 src/net/UINetworkReply.cpp \
1685 src/net/UIUpdateDefs.cpp \
1686 src/net/UIUpdateManager.cpp \
1687 src/settings/global/UIGlobalSettingsProxy.cpp \
1688 src/settings/global/UIGlobalSettingsUpdate.cpp
1689 endif
1690
1691 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1692 VirtualBox_SOURCES += \
1693 src/platform/x11/VBoxX11Helper.cpp \
1694 src/platform/x11/XKeyboard-new.cpp
1695 endif
1696
1697 VirtualBox_SOURCES.win += \
1698 src/platform/win/VBoxUtils-win.cpp \
1699 src/platform/win/WinKeyboard.cpp
1700
1701 VirtualBox_SOURCES.darwin += \
1702 src/platform/darwin/CocoaEventHelper.mm \
1703 src/platform/darwin/DarwinKeyboard.cpp \
1704 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1705 src/platform/darwin/UICocoaApplication.mm \
1706 src/platform/darwin/UICocoaDockIconPreview.mm \
1707 src/platform/darwin/UICocoaSpecialControls.mm \
1708 src/platform/darwin/UIWindowMenuManager.cpp \
1709 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1710 src/platform/darwin/VBoxUtils-darwin.cpp
1711endif
1712
1713
1714ifdef VBOX_GUI_WITH_SHARED_LIBRARY
1715 #
1716 # VirtualBox Virtual Machine Application
1717 # Sources.
1718 #
1719 VirtualBoxVM_SOURCES = \
1720 src/main.cpp \
1721 src/globals/UIStarter.cpp \
1722 src/runtime/UIConsoleEventHandler.cpp \
1723 src/runtime/UIFrameBuffer.cpp \
1724 src/runtime/UIIndicatorsPool.cpp \
1725 src/runtime/UIKeyboardHandler.cpp \
1726 src/runtime/UIMachine.cpp \
1727 src/runtime/UIMachineLogic.cpp \
1728 src/runtime/UIMachineView.cpp \
1729 src/runtime/UIMachineWindow.cpp \
1730 src/runtime/UIMouseHandler.cpp \
1731 src/runtime/UIMultiScreenLayout.cpp \
1732 src/runtime/UISession.cpp \
1733 src/runtime/UIVMCloseDialog.cpp \
1734 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1735 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1736 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1737 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1738 src/runtime/information/UIInformationConfiguration.cpp \
1739 src/runtime/information/UIInformationDataItem.cpp \
1740 src/runtime/information/UIInformationItem.cpp \
1741 src/runtime/information/UIInformationModel.cpp \
1742 src/runtime/information/UIInformationRuntime.cpp \
1743 src/runtime/information/UIInformationView.cpp \
1744 src/runtime/information/UIVMInformationDialog.cpp \
1745 src/runtime/guestctrl/UIGuestControlConsole.cpp \
1746 src/runtime/guestctrl/UIGuestControlFileManager.cpp \
1747 src/runtime/guestctrl/UIGuestControlFileModel.cpp \
1748 src/runtime/guestctrl/UIGuestControlFileTable.cpp \
1749 src/runtime/guestctrl/UIGuestControlInterface.cpp \
1750 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \
1751 src/runtime/guestctrl/UIGuestControlWidget.cpp \
1752 src/runtime/guestctrl/UIGuestFileTable.cpp \
1753 src/runtime/guestctrl/UIHostFileTable.cpp \
1754 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1755 src/runtime/normal/UIMachineLogicNormal.cpp \
1756 src/runtime/normal/UIMachineViewNormal.cpp \
1757 src/runtime/normal/UIMachineWindowNormal.cpp \
1758 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1759 src/runtime/scale/UIMachineLogicScale.cpp \
1760 src/runtime/scale/UIMachineViewScale.cpp \
1761 src/runtime/scale/UIMachineWindowScale.cpp \
1762 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1763 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1764 src/runtime/seamless/UIMachineViewSeamless.cpp \
1765 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1766 src/widgets/UIMiniToolBar.cpp \
1767 src/wizards/firstrun/UIWizardFirstRun.cpp \
1768 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
1769
1770 ifdef VBOX_WITH_DRAG_AND_DROP
1771 VirtualBoxVM_SOURCES += \
1772 src/runtime/UIDnDHandler.cpp
1773 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1774 VirtualBoxVM_SOURCES += \
1775 src/runtime/UIDnDMIMEData.cpp
1776 VirtualBoxVM_SOURCES.win += \
1777 src/runtime/UIDnDDropSource_win.cpp \
1778 src/runtime/UIDnDDataObject_win.cpp \
1779 src/runtime/UIDnDEnumFormat_win.cpp
1780 endif
1781 endif
1782
1783 ifdef VBOX_WITH_ICHAT_THEATER
1784 VirtualBoxVM_SOURCES.darwin += \
1785 src/platform/darwin/VBoxIChatTheaterWrapper.m
1786 endif
1787
1788 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1789 VirtualBoxVM_SOURCES += \
1790 src/VBox2DHelpers.cpp \
1791 src/VBoxFBOverlay.cpp \
1792 src/VBoxGLSupportInfo.cpp
1793 endif
1794
1795 VirtualBoxVM_SOURCES.darwin += \
1796 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1797 src/platform/darwin/UICocoaDockIconPreview.mm
1798
1799 VirtualBoxVM_SOURCES.win += \
1800 src/platform/win/VirtualBox.rc
1801
1802
1803 #
1804 # VirtualBox - GUI Global Shared Library.
1805 # Sources.
1806 #
1807 VBoxGlobal_SOURCES = \
1808 src/VBoxAboutDlg.cpp \
1809 src/VBoxLicenseViewer.cpp \
1810 src/UITakeSnapshotDialog.cpp \
1811 src/extensions/QIAdvancedSlider.cpp \
1812 src/extensions/QIArrowButtonPress.cpp \
1813 src/extensions/QIArrowButtonSwitch.cpp \
1814 src/extensions/QIArrowSplitter.cpp \
1815 src/extensions/QIComboBox.cpp \
1816 src/extensions/QIDialog.cpp \
1817 src/extensions/QIDialogButtonBox.cpp \
1818 src/extensions/QIFileDialog.cpp \
1819 src/extensions/QIFlowLayout.cpp \
1820 src/extensions/QILabel.cpp \
1821 src/extensions/QILabelSeparator.cpp \
1822 src/extensions/QILineEdit.cpp \
1823 src/extensions/QIMainDialog.cpp \
1824 src/extensions/QIMainWindow.cpp \
1825 src/extensions/QIManagerDialog.cpp \
1826 src/extensions/QIMenu.cpp \
1827 src/extensions/QIMessageBox.cpp \
1828 src/extensions/QIProcess.cpp \
1829 src/extensions/QIRichTextLabel.cpp \
1830 src/extensions/QIRichToolButton.cpp \
1831 src/extensions/QISplitter.cpp \
1832 src/extensions/QIStatusBar.cpp \
1833 src/extensions/QIStatusBarIndicator.cpp \
1834 src/extensions/QIStyledItemDelegate.cpp \
1835 src/extensions/QITableView.cpp \
1836 src/extensions/QITabWidget.cpp \
1837 src/extensions/QIToolButton.cpp \
1838 src/extensions/QITreeView.cpp \
1839 src/extensions/QITreeWidget.cpp \
1840 src/extensions/QIWidgetValidator.cpp \
1841 src/extensions/graphics/QIGraphicsView.cpp \
1842 src/extensions/graphics/QIGraphicsWidget.cpp \
1843 src/extradata/UIExtraDataDefs.cpp \
1844 src/extradata/UIExtraDataManager.cpp \
1845 src/converter/UIConverter.cpp \
1846 src/converter/UIConverterBackendCOM.cpp \
1847 src/converter/UIConverterBackendGlobal.cpp \
1848 src/globals/COMDefs.cpp \
1849 src/globals/UIActionPool.cpp \
1850 src/globals/UIActionPoolRuntime.cpp \
1851 src/globals/UIActionPoolSelector.cpp \
1852 src/globals/UIAnimationFramework.cpp \
1853 src/globals/UIDefs.cpp \
1854 src/globals/UIDesktopWidgetWatchdog.cpp \
1855 src/globals/UIErrorString.cpp \
1856 src/globals/UIIconPool.cpp \
1857 src/globals/UIImageTools.cpp \
1858 src/globals/UIMainEventListener.cpp \
1859 src/globals/UIMessageCenter.cpp \
1860 src/globals/UIModalWindowManager.cpp \
1861 src/globals/UIPopupCenter.cpp \
1862 src/globals/UIShortcutPool.cpp \
1863 src/globals/UIThreadPool.cpp \
1864 src/globals/UIVirtualBoxEventHandler.cpp \
1865 src/globals/VBoxGlobal.cpp \
1866 src/logviewer/UIVMLogPage.cpp \
1867 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1868 src/logviewer/UIVMLogViewerDialog.cpp \
1869 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1870 src/logviewer/UIVMLogViewerPanel.cpp \
1871 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1872 src/logviewer/UIVMLogViewerSettingsPanel.cpp \
1873 src/logviewer/UIVMLogViewerTextEdit.cpp \
1874 src/logviewer/UIVMLogViewerWidget.cpp \
1875 src/medium/UIFDCreationDialog.cpp \
1876 src/medium/UIMedium.cpp \
1877 src/medium/UIMediumDefs.cpp \
1878 src/medium/UIMediumEnumerator.cpp \
1879 src/medium/UIMediumItem.cpp \
1880 src/medium/UIMediumSelector.cpp \
1881 src/objects/UIRichTextString.cpp \
1882 src/settings/UISettingsDefs.cpp \
1883 src/settings/UISettingsDialog.cpp \
1884 src/settings/UISettingsDialogSpecific.cpp \
1885 src/settings/UISettingsPage.cpp \
1886 src/settings/UISettingsSelector.cpp \
1887 src/settings/UISettingsSerializer.cpp \
1888 src/settings/global/UIGlobalSettingsExtension.cpp \
1889 src/settings/global/UIGlobalSettingsGeneral.cpp \
1890 src/settings/global/UIGlobalSettingsInput.cpp \
1891 src/settings/global/UIGlobalSettingsLanguage.cpp \
1892 src/settings/global/UIGlobalSettingsDisplay.cpp \
1893 src/settings/global/UIGlobalSettingsNetwork.cpp \
1894 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1895 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1896 src/settings/machine/UIMachineSettingsAudio.cpp \
1897 src/settings/machine/UIMachineSettingsDisplay.cpp \
1898 src/settings/machine/UIMachineSettingsGeneral.cpp \
1899 src/settings/machine/UIMachineSettingsInterface.cpp \
1900 src/settings/machine/UIMachineSettingsNetwork.cpp \
1901 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1902 src/settings/machine/UIMachineSettingsSF.cpp \
1903 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1904 src/settings/machine/UIMachineSettingsSerial.cpp \
1905 src/settings/machine/UIMachineSettingsStorage.cpp \
1906 src/settings/machine/UIMachineSettingsSystem.cpp \
1907 src/settings/machine/UIMachineSettingsUSB.cpp \
1908 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1909 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1910 src/widgets/UIBootTable.cpp \
1911 src/widgets/UIFilePathSelector.cpp \
1912 src/widgets/UIFilmContainer.cpp \
1913 src/widgets/UIGuestRAMSlider.cpp \
1914 src/widgets/UIHostComboEditor.cpp \
1915 src/widgets/UIHotKeyEditor.cpp \
1916 src/widgets/UIMediaComboBox.cpp \
1917 src/widgets/UIMediumSizeEditor.cpp \
1918 src/widgets/UIMenuBar.cpp \
1919 src/widgets/UIMenuBarEditorWindow.cpp \
1920 src/widgets/UINameAndSystemEditor.cpp \
1921 src/widgets/UIPopupBox.cpp \
1922 src/widgets/UIPopupPane.cpp \
1923 src/widgets/UIPopupPaneButtonPane.cpp \
1924 src/widgets/UIPopupPaneMessage.cpp \
1925 src/widgets/UIPopupPaneDetails.cpp \
1926 src/widgets/UIPopupStack.cpp \
1927 src/widgets/UIPopupStackViewport.cpp \
1928 src/widgets/UIPortForwardingTable.cpp \
1929 src/widgets/UIProgressDialog.cpp \
1930 src/widgets/UISlidingToolBar.cpp \
1931 src/widgets/UISpecialControls.cpp \
1932 src/widgets/UIStatusBarEditorWindow.cpp \
1933 src/widgets/UIToolBar.cpp \
1934 src/widgets/UIWarningPane.cpp \
1935 src/wizards/UIWizard.cpp \
1936 src/wizards/UIWizardPage.cpp \
1937 src/wizards/newvd/UIWizardNewVD.cpp \
1938 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1939 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1940 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1941 src/wizards/newvd/UIWizardNewVDPageExpert.cpp
1942
1943 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1944 VBoxGlobal_SOURCES += \
1945 src/net/UIDownloader.cpp \
1946 src/net/UIDownloaderAdditions.cpp \
1947 src/net/UIDownloaderExtensionPack.cpp \
1948 src/net/UIDownloaderUserManual.cpp \
1949 src/net/UINetworkCustomer.cpp \
1950 src/net/UINetworkManager.cpp \
1951 src/net/UINetworkManagerDialog.cpp \
1952 src/net/UINetworkManagerIndicator.cpp \
1953 src/net/UINetworkRequest.cpp \
1954 src/net/UINetworkRequestWidget.cpp \
1955 src/net/UINetworkReply.cpp \
1956 src/net/UIUpdateDefs.cpp \
1957 src/net/UIUpdateManager.cpp \
1958 src/settings/global/UIGlobalSettingsProxy.cpp \
1959 src/settings/global/UIGlobalSettingsUpdate.cpp
1960 endif
1961
1962 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1963 VBoxGlobal_SOURCES += \
1964 src/platform/x11/VBoxX11Helper.cpp \
1965 src/platform/x11/XKeyboard-new.cpp
1966 endif
1967
1968 VBoxGlobal_SOURCES.win += \
1969 src/platform/win/VBoxUtils-win.cpp \
1970 src/platform/win/WinKeyboard.cpp
1971
1972 VBoxGlobal_SOURCES.darwin += \
1973 src/platform/darwin/CocoaEventHelper.mm \
1974 src/platform/darwin/DarwinKeyboard.cpp \
1975 src/platform/darwin/UICocoaApplication.mm \
1976 src/platform/darwin/UICocoaSpecialControls.mm \
1977 src/platform/darwin/UIWindowMenuManager.cpp \
1978 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1979 src/platform/darwin/VBoxUtils-darwin.cpp
1980
1981 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1982 VBoxGlobal_SOURCES += \
1983 src/VBox2DHelpers.cpp \
1984 src/VBoxGLSupportInfo.cpp
1985 endif
1986endif
1987
1988
1989#
1990# VirtualBox Manager Application
1991# Deployment.
1992#
1993if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1994 INSTALLS.linux += VirtualBox.qt.conf
1995 INSTALLS.solaris += VirtualBox.qt.conf
1996 VirtualBox.qt.conf_INST = $(INST_BIN)
1997 VirtualBox.qt.conf_MODE = 644
1998 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1999
2000$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
2001 $(QUIET)$(RM) -f $@
2002 $(QUIET)$(APPEND) $@ "[Paths]"
2003 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
2004endif
2005
2006
2007#
2008# VirtualBox Manager Application
2009# The Qt modules we're using.
2010# (The include directory and lib/framework for each module will be added by the Qt unit.)
2011#
2012VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
2013VirtualBox_QT_MODULES.linux += X11Extras
2014VirtualBox_QT_MODULES.solaris += X11Extras
2015VirtualBox_QT_MODULES.freebsd += X11Extras
2016VirtualBox_QT_MODULES.darwin += MacExtras
2017VirtualBox_QT_MODULES.win += WinExtras
2018if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
2019 VirtualBox_QT_MODULES += OpenGL
2020endif
2021
2022
2023ifdef VBOX_GUI_WITH_SHARED_LIBRARY
2024 #
2025 # VirtualBox Virtual Machine Application
2026 # The Qt modules we're using.
2027 # (The include directory and lib/framework for each module will be added by the Qt unit.)
2028 #
2029 VirtualBoxVM_QT_MODULES = Core Gui Widgets PrintSupport
2030 VirtualBoxVM_QT_MODULES.linux += X11Extras
2031 VirtualBoxVM_QT_MODULES.solaris += X11Extras
2032 VirtualBoxVM_QT_MODULES.freebsd += X11Extras
2033 VirtualBoxVM_QT_MODULES.darwin += MacExtras
2034 VirtualBoxVM_QT_MODULES.win += WinExtras
2035 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
2036 VirtualBoxVM_QT_MODULES += OpenGL
2037 endif
2038
2039
2040 #
2041 # VirtualBox - GUI Global Shared Library.
2042 # The Qt modules we're using.
2043 # (The include directory and lib/framework for each module will be added by the Qt unit.)
2044 #
2045 VBoxGlobal_QT_MODULES = Core Gui Widgets
2046 VBoxGlobal_QT_MODULES.linux += X11Extras
2047 VBoxGlobal_QT_MODULES.solaris += X11Extras
2048 VBoxGlobal_QT_MODULES.freebsd += X11Extras
2049 VBoxGlobal_QT_MODULES.darwin += MacExtras
2050 VBoxGlobal_QT_MODULES.win += WinExtras
2051 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
2052 VBoxGlobal_QT_MODULES += OpenGL
2053 endif
2054endif
2055
2056
2057# Pull in the ui files
2058$(eval VirtualBox_SOURCES += $(FORMS))
2059ifdef VBOX_GUI_WITH_SHARED_LIBRARY
2060 $(eval VirtualBoxVM_SOURCES += $(FORMS))
2061 $(eval VBoxGlobal_SOURCES += $(FORMS))
2062endif
2063
2064
2065# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
2066VirtualBox_SOURCES += VirtualBox1.qrc
2067VirtualBox1.qrc_RCCFLAGS = -name BASIC1
2068VirtualBox_SOURCES += VirtualBox2.qrc
2069VirtualBox2.qrc_RCCFLAGS = -name BASIC2
2070VirtualBox_SOURCES += VirtualBox1_x2.qrc
2071VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
2072VirtualBox_SOURCES += VirtualBox2_x2.qrc
2073VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
2074VirtualBox_SOURCES += VirtualBox1_x3.qrc
2075VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
2076VirtualBox_SOURCES += VirtualBox2_x3.qrc
2077VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
2078VirtualBox_SOURCES += VirtualBox1_x4.qrc
2079VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
2080VirtualBox_SOURCES += VirtualBox2_x4.qrc
2081VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
2082VirtualBox_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
2083$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
2084if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
2085 VirtualBox_SOURCES += VirtualBoxShaders.qrc
2086 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
2087endif
2088
2089
2090ifdef VBOX_GUI_WITH_SHARED_LIBRARY
2091 # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
2092 VirtualBoxVM_SOURCES += VirtualBox1.qrc
2093 VirtualBox1.qrc_RCCFLAGS = -name BASIC1
2094 VirtualBoxVM_SOURCES += VirtualBox2.qrc
2095 VirtualBox2.qrc_RCCFLAGS = -name BASIC2
2096 VirtualBoxVM_SOURCES += VirtualBox1_x2.qrc
2097 VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
2098 VirtualBoxVM_SOURCES += VirtualBox2_x2.qrc
2099 VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
2100 VirtualBoxVM_SOURCES += VirtualBox1_x3.qrc
2101 VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
2102 VirtualBoxVM_SOURCES += VirtualBox2_x3.qrc
2103 VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
2104 VirtualBoxVM_SOURCES += VirtualBox1_x4.qrc
2105 VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
2106 VirtualBoxVM_SOURCES += VirtualBox2_x4.qrc
2107 VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
2108 VirtualBoxVM_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
2109 $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
2110 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
2111 VirtualBoxVM_SOURCES += VirtualBoxShaders.qrc
2112 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
2113 endif
2114endif
2115
2116
2117# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
2118VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
2119 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
2120# Compress the translation units.
2121VirtualBox_LRCFLAGS = -silent
2122# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
2123VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
2124
2125
2126## @todo how to detect what tool is used?
2127## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
2128# more generic -Wno-extra
2129# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
2130ifdef VBOX_WITH_XPCOM
2131 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
2132endif
2133
2134
2135#
2136# Build generated COM wrappers as part of app.
2137#
2138ifndef VBOX_GUI_WITH_SHARED_LIBRARY
2139
2140 #
2141 # VirtualBox Manager Application
2142 #
2143 includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
2144 VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
2145 VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
2146 VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
2147 VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
2148
2149 ## @todo kmk doesn't remake optional outputs when they are missing...
2150 $$(VirtualBox_0_OUTDIR)/include/COMWrappers \
2151 + $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
2152 +| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
2153 , $(VirtualBox_VBOX_COMWRAPPERS) \
2154 , $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
2155 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
2156 ): \
2157 $(VBOX_XIDL_FILE) \
2158 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
2159 $(VBOX_FILESPLIT) \
2160 | $$(dir $$@)
2161 $(call MSG_GENERATE,VirtualBox,$<,$@)
2162 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
2163 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
2164 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
2165 $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
2166 $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
2167 $(APPEND) "$@"
2168
2169 # alias for generating the COM Wrappers file.
2170 testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
2171
2172else
2173
2174 #
2175 # VirtualBox - GUI Global Shared Library.
2176 #
2177 includedep $(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep
2178 VBoxGlobal_BLDDIRS += $(VBoxGlobal_0_OUTDIR)/include
2179 VBoxGlobal_INTERMEDIATES += $(VBoxGlobal_0_OUTDIR)/include/COMWrappers
2180 VBoxGlobal_SOURCES += $(VBoxGlobal_0_OUTDIR)/include/COMWrappers.cpp
2181 VBoxGlobal_CLEAN += $(wildcard $(VBoxGlobal_0_OUTDIR)/include/*) $(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep
2182
2183 ## @todo kmk doesn't remake optional outputs when they are missing...
2184 $$(VBoxGlobal_0_OUTDIR)/include/COMWrappers \
2185 + $(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep \
2186 +| $(if-expr defined(VBoxGlobal_VBOX_COMWRAPPERS) \
2187 , $(VBoxGlobal_VBOX_COMWRAPPERS) \
2188 , $$(VBoxGlobal_0_OUTDIR)/include/COMEnums.h \
2189 $$(VBoxGlobal_0_OUTDIR)/include/COMWrappers.cpp \
2190 ): \
2191 $(VBOX_XIDL_FILE) \
2192 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
2193 $(VBOX_FILESPLIT) \
2194 | $$(dir $$@)
2195 $(call MSG_GENERATE,VBoxGlobal,$<,$@)
2196 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep"
2197 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
2198 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
2199 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxGlobal_0_OUTDIR)/include \
2200 $(PATH_TARGET)/VBoxGlobalComWrapperFiles.dep VBoxGlobal_VBOX_COMWRAPPERS
2201 $(APPEND) "$@"
2202
2203 # alias for generating the COM Wrappers file.
2204 testwrappers:: $$(VBoxGlobal_0_OUTDIR)/include/COMWrappers
2205
2206endif
2207
2208
2209#
2210# Generate qrc file with branded icons.
2211#
2212VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
2213VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
2214$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
2215 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
2216 $(PATH_ROOT)/Config.kmk \
2217 | $$(dir $$@)
2218 $(call MSG_GENERATE,VirtualBox,$<,$@)
2219 $(QUIET)$(SED) \
2220 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
2221 -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
2222 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
2223 -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
2224 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
2225 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
2226 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
2227 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
2228 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
2229 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
2230 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
2231 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
2232 --output $@ \
2233 $<
2234
2235
2236#
2237# Precompiled header - non-functional atm.
2238#
2239ifdef VBOX_WITH_PRECOMPILED_HEADERS
2240 if1of ($(KBUILD_TARGET),win)
2241 VirtualBox_USES += vccprecomp
2242 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
2243
2244 else # obsolete experiment
2245 VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
2246 VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
2247 VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
2248 $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
2249 $(VirtualBox_SOURCES) \
2250 $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
2251 $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
2252 )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
2253
2254 TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
2255 define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
2256 $(APPEND) -t $(out)
2257 endef
2258
2259 MISCBINS += VirtualBoxPch
2260 VirtualBoxPch_EXTENDS = VirtualBox
2261 VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
2262 VirtualBoxPch_INSTTYPE = none
2263 VirtualBoxPch_NAME = VirtualBoxPch
2264 VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
2265 VirtualBoxPch_SOURCES = src/precomp.h
2266 VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
2267 VirtualBoxPch_CXXOBJSUFF = .h.gch
2268 VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
2269 VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
2270 VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
2271 VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
2272 VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
2273 VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
2274 VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
2275 VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
2276 endif # obsolete experiment
2277endif
2278
2279ifeq ($(KBUILD_TARGET),win)
2280#
2281# On Windows we'll have to generate/edit part of the resource file.
2282# The IDI_ICON1 name is Qt specific.
2283#
2284src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
2285src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
2286src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
2287
2288$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
2289 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
2290
2291endif # win
2292
2293
2294#
2295# Unset everything that was loaded from VBoxUI.pro.
2296#
2297FORMS :=
2298TRANSLATIONS :=
2299
2300
2301ifeq ($(KBUILD_TARGET),darwin)
2302#
2303# Create directories for each approved language or the application
2304# menu won't be translated.
2305#
2306INSTALLS += VirtualBox.lproj
2307VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
2308VirtualBox.lproj_MODE = 755
2309VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
2310
2311#
2312# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
2313# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
2314#
2315INSTALLS += VirtualBox.app
2316VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
2317VirtualBox.app_MODE = 644
2318VirtualBox.app_SOURCES = \
2319 src/platform/darwin/PkgInfo \
2320 $(VirtualBox.app_0_OUTDIR)/Info.plist \
2321 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
2322 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
2323 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
2324 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
2325 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
2326 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
2327 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
2328 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
2329 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
2330 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
2331
2332 # Qt5 requires qt.conf on Mac OS X:
2333 VirtualBox.app_SOURCES += \
2334 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
2335
2336 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2337 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
2338 $(QUIET)$(RM) -f $@
2339 $(QUIET)$(SED) \
2340 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2341 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2342 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2343 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2344 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2345 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2346 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2347 $< > $@
2348
2349 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
2350 $(QUIET)$(RM) -f $@
2351 $(QUIET)$(APPEND) $@ "[Paths]"
2352 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
2353
2354 INSTALLS += VirtualBoxVM.app
2355 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
2356 VirtualBoxVM.app_MODE = 644
2357 VirtualBoxVM.app_SOURCES = \
2358 src/platform/darwin/VM-PkgInfo=>PkgInfo \
2359 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
2360 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
2361 VirtualBoxVM.app_SYMLINKS = \
2362 MacOS=>../../../MacOS/
2363
2364 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2365 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
2366 $(QUIET)$(RM) -f $@
2367 $(QUIET)$(SED) \
2368 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2369 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2370 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2371 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2372 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2373 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2374 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2375 --output $@ $<
2376
2377 PROGRAMS += vmstarter
2378 vmstarter_TEMPLATE = VBOXR3EXE
2379 ifdef VBOX_WITH_NEW_XCODE
2380 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
2381 else
2382 vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
2383 endif
2384 vmstarter_LDFLAGS += -framework AppKit
2385 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
2386 vmstarter_INST = $(INST_BIN)vmstarter
2387
2388 INSTALLS += vmstarter.app
2389 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
2390 vmstarter.app_MODE = 644
2391 vmstarter.app_SOURCES = \
2392 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
2393 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
2394 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
2395 vmstarter.app_SYMLINKS = \
2396 MacOS=>../../../MacOS \
2397
2398 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
2399 $(call MSG_GENERATE,vmstarter.app,$<,$@)
2400 $(QUIET)$(RM) -f $@
2401 $(QUIET)$(SED) \
2402 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
2403 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2404 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2405 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2406 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2407 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
2408 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2409 --output $@ $<
2410endif # darwin
2411
2412#
2413# App for testing GL support
2414#
2415if defined(VBOX_WITH_VIDEOHWACCEL)
2416 if1of ($(KBUILD_TARGET), win linux freebsd)
2417 LIBRARIES += VBoxOGL2D
2418 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
2419 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
2420 VBoxOGL2D_QT_MODULES += OpenGL
2421 VBoxOGL2D_SOURCES = \
2422 src/VBoxGLSupportInfo.cpp
2423 VBoxOGL2D_INCS = include
2424 endif
2425endif
2426
2427
2428#
2429# Testcase for the darwin keyboard routines.
2430#
2431ifdef VBOX_WITH_TESTCASES
2432 PROGRAMS.darwin += tstDarwinKeyboard
2433 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
2434 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
2435 tstDarwinKeyboard_INCS = \
2436 $(VBOX_GUI_INC_DIRS)
2437 tstDarwinKeyboard_SOURCES = \
2438 src/platform/darwin/tstDarwinKeyboard.cpp \
2439 src/platform/darwin/DarwinKeyboard.cpp
2440 tstDarwinKeyboard_SOURCES.amd64 = \
2441 src/platform/darwin/CocoaEventHelper.mm
2442 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
2443 tstDarwinKeyboard_LIBS = \
2444 $(LIB_RUNTIME)
2445 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
2446 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
2447 endif
2448endif
2449
2450
2451#
2452# Testcase for SSL certificate downloading.
2453#
2454if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
2455 PROGRAMS += tstSSLCertDownloads
2456 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
2457 tstSSLCertDownloads_USES = qt5
2458 tstSSLCertDownloads_QTTOOL = QT5
2459 tstSSLCertDownloads_QT_MODULES = Core Gui
2460 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
2461 tstSSLCertDownloads_INCS = \
2462 $(VBOX_GUI_INC_DIRS)
2463 tstSSLCertDownloads_SOURCES = \
2464 src/net/tstSSLCertDownloads.cpp
2465endif
2466
2467
2468#
2469# Doxygen documentation.
2470#
2471QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
2472BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
2473OTHER_CLEAN += \
2474 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
2475 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
2476 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2477
2478QTGUI_DOXYFILE_INPUT_DIRS := \
2479 $(addprefix $(PATH_SUB_CURRENT)/src/, \
2480 converter \
2481 extensions \
2482 extensions/graphics \
2483 extradata \
2484 globals \
2485 medium \
2486 net \
2487 objects \
2488 platform \
2489 platform/darwin \
2490 platform/os2 \
2491 platform/win \
2492 platform/x11 \
2493 runtime \
2494 runtime/fullscreen \
2495 runtime/information \
2496 runtime/guestctrl \
2497 runtime/normal \
2498 runtime/scale \
2499 runtime/seamless \
2500 selector \
2501 selector/graphics \
2502 selector/graphics/chooser \
2503 selector/graphics/details \
2504 settings \
2505 settings/global \
2506 settings/machine \
2507 widgets \
2508 widgets/graphics \
2509 wizards \
2510 wizards/clonevd \
2511 wizards/clonevm \
2512 wizards/exportappliance \
2513 wizards/firstrun \
2514 wizards/importappliance \
2515 wizards/newvd \
2516 wizards/newvm)
2517
2518QTGUI_DOXYFILE_INPUT := \
2519 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
2520 $(sort $(wildcard $(dir)/*.h)) \
2521 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
2522
2523includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
2524
2525# Generate the Doxyfile
2526$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
2527 $(PATH_SUB_CURRENT)/Doxyfile \
2528 $(PATH_SUB_CURRENT)/Makefile.kmk \
2529 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
2530 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
2531 | $$(dir $$@)
2532 $(QUIET)$(RM) -f $@ [email protected] [email protected]
2533 $(QUIET)$(CP) -f $< [email protected]
2534 $(QUIET)$(APPEND) [email protected]
2535 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
2536 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
2537 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
2538 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
2539 $(QUIET)$(APPEND) [email protected]
2540 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
2541 $(QUIET)$(APPEND) [email protected]
2542 $(QUIET)$(MV) -f [email protected] $@
2543 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
2544 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
2545
2546# Do the actual job.
2547$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
2548 | $(QTGUI_DOXYFILE_OUTPUT)/
2549 $(call MSG_L1,doxygen qtgui)
2550 $(QUIET)$(RM) -f $@
2551 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
2552 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
2553 $(APPEND) $@
2554
2555# aliases
2556docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2557if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2558docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
2559endif
2560
2561
2562
2563# Commit the magic.
2564# (note: before custom rules that make usage of generated variables!).
2565include $(FILE_KBUILD_SUB_FOOTER)
2566
2567
2568#
2569# Update all known NLS translation (.ts) files in the nls/ subdirectory.
2570#
2571# NOTE: This target is intended to be run only by the GUI maintainer shortly
2572# before a new product release. VirtualBox_xx_YY.ts is a template for new
2573# languages and should never be actually translated or installed.
2574#
2575# Use the checknls target for checking again common mistakes done by the
2576# translators.
2577#
2578# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
2579# lupdate call
2580#
2581#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
2582checknls::
2583 # Check for missing :/ in image paths
2584 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
2585
2586updatenls:: makeallnls nls/VirtualBox_en.ts
2587
2588makeallnls:: \
2589 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2590 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2591 $(call MSG_L1,lupdate all languages (nls/*.ts))
2592 $(QUIET)$(TOOL_QT5_LUPDATE) \
2593 $^ \
2594 -ts \
2595 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
2596 nls/VirtualBox_xx_YY.ts
2597
2598# Create the English translation file. This is something special cause it will
2599# contain the plural forms only.
2600nls/VirtualBox_en.ts: \
2601 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2602 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2603 $(call MSG_L1,lupdate $@)
2604 $(QUIET)$(TOOL_QT5_LUPDATE) \
2605 $^ \
2606 -ts \
2607 $@
2608 $(QUIET)$(SED) -n -i -e \
2609 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
2610 $@
2611
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