VirtualBox

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

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

FE/Qt: bugref:9080: Split options and configuration dialogs

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