VirtualBox

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

Last change on this file since 72216 was 72216, checked in by vboxsync, 7 years ago

FE/Qt: bugref:9049: Fix for XPCOM condition.

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