VirtualBox

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

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

FE/Qt: bugref:9080: Adding a VISO creation dialog

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