VirtualBox

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

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

bugref:9255. Implementing a new guest screen scale factor editor

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