VirtualBox

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

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

FE/Qt: bugref:8694: New HiDPI About icons; a bit of configuration changes.

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