VirtualBox

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

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

FE/Qt: VirtualBox Manager UI: Chooser pane: Invent global item meaning, wrap it up.

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