VirtualBox

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

Last change on this file since 72502 was 72444, checked in by vboxsync, 7 years ago

FE/Qt bugref:9183 Adding a search functionality to UIMediumSelector

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