VirtualBox

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

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

FE/Qt: Undo previous change, and fix the true issue: having too many includes, üpicking up stale files created by a build before enabling the shared libs in the GUI.

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