VirtualBox

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

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

FE/Qt: bugref:6699. In file manager log window Color errors in red

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