VirtualBox

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

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

FEQt/Makefile.kmk: Made VBOX_GUI_WITH_EXTRADATA_MANAGER_UI and VBOX_GUI_WITH_GUEST_CONTROL_UI configurable from LocalConfig.kmk; added missing else/endif comments for VBOX_GUI_WITH_SHARED_LIBRARY.

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