VirtualBox

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

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

FE/Qt: bugref:9241: Rename UIActionPoolSelector => UIActionPoolManager.

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