VirtualBox

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

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

FE/Qt: bugref:6699. Adding a new panel to file manager to manage file/copy operations

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