VirtualBox

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

Last change on this file since 82855 was 82855, checked in by vboxsync, 5 years ago

FE/Qt: Don't define the Prefix path in the qt.conf for non-hardened darwin build as that backfires when copying the build elsewhere (like different mac) for testing.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 71.4 KB
Line 
1# $Id: Makefile.kmk 82855 2020-01-25 13:07:54Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2019 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22#
23# Globals.
24#
25VBOX_VIRTUALBOX_SRC := $(PATH_SUB_CURRENT)
26VBOX_VIRTUALBOX_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
27USES += qt5
28
29
30#
31# Targets.
32#
33ifdef VBOX_WITH_HARDENING
34 PROGRAMS += VirtualBox
35 PROGRAMS += VirtualBoxHardenedVM
36 DLLS += VirtualBoxVM
37 DLLS += UICommon
38else
39 PROGRAMS += VirtualBox
40 PROGRAMS += VirtualBoxVM
41 DLLS += UICommon
42endif
43INSTALLS += VirtualBox.nls
44
45
46#
47# Include the language lists.
48#
49include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
50
51
52#
53# Hardened VirtualBoxVM.
54#
55ifdef VBOX_WITH_HARDENING
56VirtualBoxHardenedVM_TEMPLATE = VBOXR3HARDENEDEXE
57VirtualBoxHardenedVM_SOURCES = src/hardenedmain.cpp
58VirtualBoxHardenedVM_NAME = VirtualBoxVM
59VirtualBoxHardenedVM_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
60$(call VBOX_SET_VER_INFO_EXE,VirtualBoxHardenedVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
61endif
62
63
64#
65# Include Qt project file, we'll use FORMS and TRANSLATIONS in
66# the VirtualBox setup below.
67#
68# This is a bit messy. We boldly ASSUME that LANGUAGE, IMAGES, FORMS
69# and TRANSLATIONS are all unused by kBuild and the host toolchain.
70#
71SAVED_TEMPLATE := $(TEMPLATE)
72include $(PATH_SUB_CURRENT)/VBoxUI.pro
73TEMPLATE := $(SAVED_TEMPLATE)
74SAVED_TEMPLATE :=
75LANGUAGE :=
76IMAGES :=
77# FORMS and TRANSLATIONS are reset further down.
78
79
80#
81# Perform initial new version check on startup.
82# If this setting is disabled the user can still check using the menu.
83#
84ifndef VBOX_OSE
85VBOX_WITH_UPDATE_REQUEST := 1
86endif
87
88
89#
90# VirtualBox Manager Application
91#
92VirtualBox_TEMPLATE := VBOXQTGUIEXE
93VirtualBox_NAME = VirtualBox
94VirtualBox_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers
95VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
96VirtualBox_DEFS =
97VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
98VirtualBox_DEFS.linux = VBOX_WS_X11
99VirtualBox_DEFS.solaris = VBOX_WS_X11
100VirtualBox_DEFS.freebsd = VBOX_WS_X11
101VirtualBox_DEFS.darwin = VBOX_WS_MAC
102VirtualBox_DEFS.win = VBOX_WS_WIN
103VirtualBox_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
104VirtualBox_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
105VirtualBox_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
106VirtualBox_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
107VirtualBox_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
108VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
109VirtualBox_DEFS.win += UNICODE QT_DLL
110VirtualBox_DEFS += \
111 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
112 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
113 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
114 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
115 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
116 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
117 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
118 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
119 $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
120 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
121 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
122 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
123 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
124 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
125 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
126 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
127 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
128 $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
129 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
130 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
131 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
132 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
133 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
134ifdef VBOX_WITH_DEBUGGER_GUI
135 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
136 if "$(KBUILD_TYPE)" != "release"
137 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
138 endif
139endif
140ifdef VBOX_WITH_VIDEOHWACCEL
141 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
142else ifdef VBOX_GUI_USE_QGL
143 VirtualBox_DEFS += VBOX_GUI_USE_QGL
144endif
145ifdef VBOX_WITH_LIBCURL
146 VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
147 VBOX_GUI_WITH_NETWORK_MANAGER := 1
148endif
149if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
150 VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
151endif
152ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
153 VirtualBox_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
154endif
155
156
157#
158# VirtualBox Virtual Machine Application
159#
160VirtualBoxVM_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
161VirtualBoxVM_NAME = VirtualBoxVM
162VirtualBoxVM_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers
163VirtualBoxVM_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
164VirtualBoxVM_DEFS += VBOX_RUNTIME_UI
165VirtualBoxVM_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
166VirtualBoxVM_DEFS.linux = VBOX_WS_X11
167VirtualBoxVM_DEFS.solaris = VBOX_WS_X11
168VirtualBoxVM_DEFS.freebsd = VBOX_WS_X11
169VirtualBoxVM_DEFS.darwin = VBOX_WS_MAC
170VirtualBoxVM_DEFS.win = VBOX_WS_WIN
171VirtualBoxVM_DEFS.linux += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
172VirtualBoxVM_DEFS.solaris += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
173VirtualBoxVM_DEFS.freebsd += VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
174VirtualBoxVM_DEFS.darwin += VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
175VirtualBoxVM_DEFS.win += VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
176VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
177VirtualBoxVM_DEFS.win += UNICODE QT_DLL
178VirtualBoxVM_DEFS += \
179 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
180 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
181 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
182 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
183 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
184 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
185 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
186 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
187 $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
188 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
189 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
190 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
191 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
192 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
193 $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
194 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
195 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
196 $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
197 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
198 $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
199 $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
200 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
201 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
202ifdef VBOX_WITH_DEBUGGER_GUI
203 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI
204 if "$(KBUILD_TYPE)" != "release"
205 VirtualBoxVM_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
206 endif
207endif
208ifdef VBOX_WITH_VIDEOHWACCEL
209 VirtualBoxVM_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
210else ifdef VBOX_GUI_USE_QGL
211 VirtualBoxVM_DEFS += VBOX_GUI_USE_QGL
212endif
213ifdef VBOX_WITH_LIBCURL
214 VirtualBoxVM_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
215 VBOX_GUI_WITH_NETWORK_MANAGER := 1
216endif
217if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
218 VirtualBoxVM_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
219endif
220ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
221 VirtualBoxVM_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
222endif
223
224
225#
226# VirtualBox - GUI Global Shared Library.
227#
228UICommon_TEMPLATE = VBOXQTGUI
229UICommon_NAME = UICommon
230UICommon_DEFS =
231UICommon_DEFS += VBOX_GUI_LIBRARY
232UICommon_DEFS.darwin = VBOX_WS_MAC
233UICommon_DEFS.freebsd = VBOX_WS_X11
234UICommon_DEFS.linux = VBOX_WS_X11
235UICommon_DEFS.solaris = VBOX_WS_X11
236UICommon_DEFS.win = VBOX_WS_WIN
237UICommon_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
238UICommon_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
239#UICommon_DEFS.win += UNICODE QT_DLL
240UICommon_DEFS += \
241 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
242 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
243 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
244 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
245 $(if $(VBOX_WITH_CLOUD_NET),VBOX_WITH_CLOUD_NET) \
246 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
247 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
248 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
249 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
250 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
251 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
252 $(if $(VBOX_WITH_3D_ACCELERATION),VBOX_WITH_3D_ACCELERATION) \
253 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
254 $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
255 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
256 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
257ifdef VBOX_WITH_DEBUGGER_GUI
258 UICommon_DEFS += VBOX_WITH_DEBUGGER_GUI
259 if "$(KBUILD_TYPE)" != "release"
260 UICommon_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
261 endif
262endif
263ifdef VBOX_WITH_VIDEOHWACCEL
264 UICommon_DEFS += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
265else ifdef VBOX_GUI_USE_QGL
266 UICommon_DEFS += VBOX_GUI_USE_QGL
267endif
268ifdef VBOX_WITH_LIBCURL
269 UICommon_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
270 VBOX_GUI_WITH_NETWORK_MANAGER := 1
271endif
272if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI)
273 UICommon_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
274endif
275ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING
276 UICommon_DEFS += VBOX_WITH_LESS_VIRTUALBOX_INCLUDING
277endif
278
279
280#
281# Include folders.
282#
283VBOX_GUI_INC_DIRS = \
284 ./src \
285 ./src/cloud \
286 ./src/converter \
287 ./src/extensions \
288 ./src/extensions/graphics \
289 ./src/extradata \
290 ./src/globals \
291 ./src/hostnetwork \
292 ./src/logviewer \
293 ./src/medium \
294 ./src/medium/viso \
295 ./src/objects \
296 ./src/platform \
297 ./src/platform/darwin \
298 ./src/platform/win \
299 ./src/platform/x11 \
300 ./src/runtime \
301 ./src/runtime/fullscreen \
302 ./src/runtime/normal \
303 ./src/runtime/scale \
304 ./src/runtime/seamless \
305 ./src/runtime/information \
306 ./src/guestctrl \
307 ./src/settings \
308 ./src/settings/global \
309 ./src/settings/machine \
310 ./src/softkeyboard \
311 ./src/snapshots \
312 ./src/widgets \
313 ./src/widgets/graphics \
314 ./src/wizards \
315 ./src/wizards/newcloudvm \
316 ./src/wizards/newvm \
317 ./src/wizards/newvd \
318 ./src/wizards/clonevm \
319 ./src/wizards/clonevd \
320 ./src/wizards/exportappliance \
321 ./src/wizards/importappliance \
322 ./src/wizards/firstrun
323
324VBOX_GUI_INC_DIRS += \
325 ./src/manager \
326 ./src/manager/chooser \
327 ./src/manager/details \
328 ./src/manager/tools
329
330ifdef VBOX_GUI_WITH_NETWORK_MANAGER
331VBOX_GUI_INC_DIRS += \
332 ./src/net
333endif
334
335#
336# VirtualBox Manager Application
337# Include folders.
338#
339VirtualBox_INCS = \
340 $(VBOX_GUI_INC_DIRS) \
341 $(UICommon_0_OUTDIR)/include \
342 $(VBOX_GRAPHICS_INCS)
343
344#
345# VirtualBox Virtual Machine Application
346# Include folders.
347#
348VirtualBoxVM_INCS = \
349 $(VBOX_GUI_INC_DIRS) \
350 $(UICommon_0_OUTDIR)/include \
351 $(VBOX_GRAPHICS_INCS)
352
353#
354# VirtualBox - GUI Global Shared Library.
355# Include folders.
356#
357UICommon_INCS = \
358 $(VBOX_GUI_INC_DIRS) \
359 $(UICommon_0_OUTDIR)/include
360
361
362#
363# VirtualBox Manager Application
364# Compiling/linking flags.
365#
366ifneq ($(KBUILD_TARGET),win)
367VirtualBox_CXXFLAGS += -Wno-switch
368endif
369
370## @todo we're using a number of deprecated APIs, please fix and remove these!
371ifdef VBOX_WITH_NEW_XCODE
372 VirtualBox_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
373 VirtualBox_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
374 VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
375else
376 VirtualBox_CXXFLAGS.darwin += -Wno-deprecated-declarations
377 VirtualBox_OBJCFLAGS.darwin += -Wno-deprecated-declarations
378 VirtualBox_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
379endif
380
381ifeq ($(KBUILD_TYPE),release)
382 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
383else
384 VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
385 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
386endif
387
388VirtualBox_LDFLAGS.darwin = \
389 -framework AppKit -framework Carbon -framework IOKit
390
391if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
392 VirtualBox_LDFLAGS.darwin += -framework OpenGL
393endif
394
395
396#
397# VirtualBox Virtual Machine Application
398# Compiling/linking flags.
399#
400ifneq ($(KBUILD_TARGET),win)
401 VirtualBoxVM_CXXFLAGS += -Wno-switch
402endif
403
404## @todo we're using a number of deprecated APIs, please fix and remove these!
405ifdef VBOX_WITH_NEW_XCODE
406 VirtualBoxVM_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
407 VirtualBoxVM_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
408 VirtualBoxVM_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
409else
410 VirtualBoxVM_CXXFLAGS.darwin += -Wno-deprecated-declarations
411 VirtualBoxVM_OBJCFLAGS.darwin += -Wno-deprecated-declarations
412 VirtualBoxVM_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
413endif
414
415ifeq ($(KBUILD_TYPE),release)
416 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:windows
417else
418 VirtualBoxVM_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
419 VirtualBoxVM_LDFLAGS.win += /SUBSYSTEM:console
420endif
421
422VirtualBoxVM_LDFLAGS.darwin = \
423 -framework AppKit -framework Carbon -framework IOKit \
424 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBoxVM.dylib)
425
426if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
427 VirtualBoxVM_LDFLAGS.darwin += -framework OpenGL
428endif
429
430
431#
432# VirtualBox - GUI Global Shared Library.
433# Compiling/linking flags.
434#
435
436## @todo we're using a number of deprecated APIs, please fix and remove these!
437ifdef VBOX_WITH_NEW_XCODE
438 UICommon_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
439 UICommon_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
440 UICommon_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
441else
442 UICommon_CXXFLAGS.darwin += -Wno-deprecated-declarations
443 UICommon_OBJCFLAGS.darwin += -Wno-deprecated-declarations
444 UICommon_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
445endif
446
447UICommon_LDFLAGS.darwin = \
448 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/UICommon.dylib \
449 -framework AppKit \
450 -framework Carbon \
451 -framework IOKit
452if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
453 UICommon_LDFLAGS.darwin += -framework OpenGL
454endif
455
456
457#
458# VirtualBox Manager Application
459# Libraries.
460#
461
462# Library required for the hdd backend enumeration:
463VirtualBox_LIBS = $(LIB_DDU)
464
465# Runtime library loader required on X11 hosts:
466if1of ($(KBUILD_TARGET), linux netbsd openbsd)
467 VirtualBox_LIBS += dl
468endif
469
470# Xinerama library required for multi-monitor support:
471VirtualBox_LIBS.linux += Xinerama
472VirtualBox_LIBS.solaris += Xinerama
473VirtualBox_LIBS.freebsd += Xinerama
474
475# XCB library required for direct XCB native code support:
476VirtualBox_LIBS.linux += xcb
477VirtualBox_LIBS.solaris += xcb
478VirtualBox_LIBS.freebsd += xcb
479
480# Various Windows hosts libraries:
481VirtualBox_LIBS.win = \
482 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
483 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
484 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
485
486# VBox keyboard shared library for X11 hosts:
487if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
488 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
489endif
490
491# These are 2D Video Acceleration and 3D Acceleration related libs:
492if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
493 VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
494 VirtualBox_LIBS.solaris += GL
495 VirtualBox_LIBS.linux += GL
496 VirtualBox_LIBS.freebsd += GL
497endif
498ifdef VBOX_WITH_3D_ACCELERATION
499 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
500endif
501
502# This one is global shared GUI library:
503ifeq ($(KBUILD_TARGET),win)
504 VirtualBox_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
505else
506 VirtualBox_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
507endif
508
509
510#
511# VirtualBox Virtual Machine Application
512# Libraries.
513#
514
515# Library required for the hdd backend enumeration:
516VirtualBoxVM_LIBS = $(LIB_DDU)
517
518# Runtime library loader required on X11 hosts:
519if1of ($(KBUILD_TARGET), linux netbsd openbsd)
520 VirtualBoxVM_LIBS += dl
521endif
522
523# Xinerama library required for multi-monitor support:
524VirtualBoxVM_LIBS.linux += Xinerama
525VirtualBoxVM_LIBS.solaris += Xinerama
526VirtualBoxVM_LIBS.freebsd += Xinerama
527
528# XCB library required for direct XCB native code support:
529VirtualBoxVM_LIBS.linux += xcb
530VirtualBoxVM_LIBS.solaris += xcb
531VirtualBoxVM_LIBS.freebsd += xcb
532
533# Various Windows hosts libraries:
534VirtualBoxVM_LIBS.win = \
535 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
536 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
537 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
538
539# VBox keyboard shared library for X11 hosts:
540if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
541 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
542endif
543
544# These are 2D Video Acceleration and 3D Acceleration related libs:
545if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
546 VirtualBoxVM_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
547 VirtualBoxVM_LIBS.solaris += GL
548 VirtualBoxVM_LIBS.linux += GL
549 VirtualBoxVM_LIBS.freebsd += GL
550endif
551ifdef VBOX_WITH_3D_ACCELERATION
552 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
553endif
554
555ifeq ($(KBUILD_TARGET),win)
556 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
557else
558 VirtualBoxVM_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
559endif
560
561
562#
563# VirtualBox - GUI Global Shared Library.
564# Libraries.
565#
566
567# Xinerama library required for multi-monitor support:
568UICommon_LIBS.linux += Xinerama
569UICommon_LIBS.solaris += Xinerama
570UICommon_LIBS.freebsd += Xinerama
571
572# Various Windows hosts libraries:
573UICommon_LIBS.win = \
574 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib
575
576# VBox keyboard shared library for X11 hosts:
577if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
578 UICommon_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
579endif
580
581# These are 2D Video Acceleration and 3D Acceleration related libs:
582if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
583 UICommon_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
584 UICommon_LIBS.solaris += GL
585 UICommon_LIBS.linux += GL
586 UICommon_LIBS.freebsd += GL
587endif
588ifdef VBOX_WITH_3D_ACCELERATION
589 UICommon_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
590endif
591if defined(VBOX_WITH_VIDEOHWACCEL)
592 if1of ($(KBUILD_TARGET), win linux freebsd)
593 UICommon_LIBS += $(PATH_STAGE_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB)
594 endif
595endif
596
597
598#
599# VirtualBox Manager Application
600# Headers containing definitions of classes that use the Q_OBJECT macro.
601#
602VirtualBox_QT_MOCHDRS = \
603 src/cloud/UICloudProfileDetailsWidget.h \
604 src/cloud/UICloudProfileManager.h \
605 src/globals/UIStarter.h \
606 src/hostnetwork/UIHostNetworkDetailsWidget.h \
607 src/hostnetwork/UIHostNetworkManager.h \
608 src/manager/UIErrorPane.h \
609 src/manager/UIToolPaneGlobal.h \
610 src/manager/UIToolPaneMachine.h \
611 src/manager/UIVirtualBoxManager.h \
612 src/manager/UIVirtualBoxManagerWidget.h \
613 src/manager/UIVirtualMachineItem.h \
614 src/manager/UIWelcomePane.h \
615 src/manager/chooser/UIChooser.h \
616 src/manager/chooser/UIChooserAbstractModel.h \
617 src/manager/chooser/UIChooserModel.h \
618 src/manager/chooser/UIChooserView.h \
619 src/manager/chooser/UIChooserHandlerMouse.h \
620 src/manager/chooser/UIChooserHandlerKeyboard.h \
621 src/manager/chooser/UIChooserItem.h \
622 src/manager/chooser/UIChooserItemGroup.h \
623 src/manager/chooser/UIChooserItemGlobal.h \
624 src/manager/chooser/UIChooserItemMachine.h \
625 src/manager/chooser/UIChooserNode.h \
626 src/manager/chooser/UIChooserNodeGroup.h \
627 src/manager/chooser/UIChooserNodeGlobal.h \
628 src/manager/chooser/UIChooserNodeMachine.h \
629 src/manager/chooser/UIChooserSearchWidget.h \
630 src/manager/details/UIDetails.h \
631 src/manager/details/UIDetailsContextMenu.h \
632 src/manager/details/UIDetailsModel.h \
633 src/manager/details/UIDetailsView.h \
634 src/manager/details/UIDetailsItem.h \
635 src/manager/details/UIDetailsGroup.h \
636 src/manager/details/UIDetailsSet.h \
637 src/manager/details/UIDetailsElement.h \
638 src/manager/details/UIDetailsElements.h \
639 src/manager/details/UIMachinePreview.h \
640 src/manager/tools/UITools.h \
641 src/manager/tools/UIToolsModel.h \
642 src/manager/tools/UIToolsView.h \
643 src/manager/tools/UIToolsHandlerMouse.h \
644 src/manager/tools/UIToolsHandlerKeyboard.h \
645 src/manager/tools/UIToolsItem.h \
646 src/medium/UIMediumDetailsWidget.h \
647 src/medium/UIMediumManager.h \
648 src/snapshots/UISnapshotDetailsWidget.h \
649 src/snapshots/UISnapshotPane.h \
650 src/widgets/UIApplianceEditorWidget.h \
651 src/widgets/UIApplianceExportEditorWidget.h \
652 src/widgets/UIApplianceImportEditorWidget.h \
653 src/widgets/UIEmptyFilePathSelector.h \
654 src/widgets/UIFormEditorWidget.h \
655 src/widgets/UIGuestOSTypeSelectionButton.h \
656 src/widgets/UILineTextEdit.h \
657 src/widgets/UISlidingAnimation.h \
658 src/widgets/UISlidingWidget.h \
659 src/widgets/UITabBar.h \
660 src/widgets/UIMenuToolBar.h \
661 src/widgets/graphics/UIGraphicsButton.h \
662 src/widgets/graphics/UIGraphicsRotatorButton.h \
663 src/widgets/graphics/UIGraphicsScrollArea.h \
664 src/widgets/graphics/UIGraphicsScrollBar.h \
665 src/widgets/graphics/UIGraphicsZoomButton.h \
666 src/widgets/graphics/UIGraphicsToolBar.h \
667 src/widgets/graphics/UIGraphicsTextPane.h \
668 src/wizards/newcloudvm/UIWizardNewCloudVM.h \
669 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.h \
670 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.h \
671 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \
672 src/wizards/newvm/UIWizardNewVM.h \
673 src/wizards/newvm/UIWizardNewVMPageBasic1.h \
674 src/wizards/newvm/UIWizardNewVMPageBasic2.h \
675 src/wizards/newvm/UIWizardNewVMPageBasic3.h \
676 src/wizards/newvm/UIWizardNewVMPageExpert.h \
677 src/wizards/clonevm/UIWizardCloneVM.h \
678 src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
679 src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
680 src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
681 src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
682 src/wizards/clonevd/UIWizardCloneVD.h \
683 src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
684 src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
685 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
686 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
687 src/wizards/exportappliance/UIWizardExportApp.h \
688 src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
689 src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
690 src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
691 src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
692 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.h \
693 src/wizards/importappliance/UIWizardImportApp.h \
694 src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
695 src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
696 src/wizards/importappliance/UIWizardImportAppPageExpert.h
697
698
699#
700# VirtualBox Virtual Machine Application
701# Headers containing definitions of classes that use the Q_OBJECT macro.
702#
703VirtualBoxVM_QT_MOCHDRS = \
704 src/globals/UIStarter.h \
705 src/runtime/UIConsoleEventHandler.h \
706 src/runtime/UIFrameBuffer.h \
707 src/runtime/UIIndicatorsPool.h \
708 src/runtime/UIKeyboardHandler.h \
709 src/runtime/UIMachine.h \
710 src/runtime/UIMachineLogic.h \
711 src/runtime/UIMachineWindow.h \
712 src/runtime/UIMachineView.h \
713 src/runtime/UIMouseHandler.h \
714 src/runtime/UIMultiScreenLayout.h \
715 src/runtime/UISession.h \
716 src/runtime/UIVMCloseDialog.h \
717 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
718 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
719 src/runtime/fullscreen/UIMachineViewFullscreen.h \
720 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
721 src/runtime/information/UIInformationConfiguration.h \
722 src/runtime/information/UIVMInformationDialog.h \
723 src/runtime/information/UIInformationPerformanceMonitor.h \
724 src/runtime/information/UIInformationRuntime.h \
725 src/guestctrl/UIFileManager.h \
726 src/guestctrl/UIFileManagerDialog.h \
727 src/guestctrl/UIFileManagerGuestTable.h \
728 src/guestctrl/UIFileManagerHostTable.h \
729 src/guestctrl/UIFileManagerLogPanel.h \
730 src/guestctrl/UIFileManagerOperationsPanel.h \
731 src/guestctrl/UIFileManagerOptionsPanel.h \
732 src/guestctrl/UIFileManagerSessionPanel.h \
733 src/guestctrl/UIFileManagerTable.h \
734 src/guestctrl/UIGuestControlConsole.h \
735 src/guestctrl/UIGuestControlInterface.h \
736 src/guestctrl/UIGuestControlTreeItem.h \
737 src/guestctrl/UIGuestProcessControlDialog.h \
738 src/guestctrl/UIGuestProcessControlWidget.h \
739 src/runtime/normal/UIKeyboardHandlerNormal.h \
740 src/runtime/normal/UIMachineLogicNormal.h \
741 src/runtime/normal/UIMachineViewNormal.h \
742 src/runtime/normal/UIMachineWindowNormal.h \
743 src/runtime/scale/UIKeyboardHandlerScale.h \
744 src/runtime/scale/UIMachineLogicScale.h \
745 src/runtime/scale/UIMachineViewScale.h \
746 src/runtime/scale/UIMachineWindowScale.h \
747 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
748 src/runtime/seamless/UIMachineLogicSeamless.h \
749 src/runtime/seamless/UIMachineViewSeamless.h \
750 src/runtime/seamless/UIMachineWindowSeamless.h \
751 src/softkeyboard/UISoftKeyboard.h \
752 src/widgets/UIMiniToolBar.h \
753 src/wizards/firstrun/UIWizardFirstRun.h \
754 src/wizards/firstrun/UIWizardFirstRunPageBasic.h
755
756ifdef VBOX_WITH_DRAG_AND_DROP
757 VirtualBoxVM_QT_MOCHDRS += \
758 src/runtime/UIDnDHandler.h
759 ifdef VBOX_WITH_DRAG_AND_DROP_GH
760 VirtualBoxVM_QT_MOCHDRS += \
761 src/runtime/UIDnDMIMEData.h
762 endif
763endif
764
765
766#
767# VirtualBox - GUI Global Shared Library.
768# Headers containing definitions of classes that use the Q_OBJECT macro.
769#
770UICommon_QT_MOCHDRS = \
771 src/VBoxAboutDlg.h \
772 src/VBoxLicenseViewer.h \
773 src/UITakeSnapshotDialog.h \
774 src/extensions/QIAdvancedSlider.h \
775 src/extensions/QIArrowButtonPress.h \
776 src/extensions/QIArrowButtonSwitch.h \
777 src/extensions/QIArrowSplitter.h \
778 src/extensions/QIComboBox.h \
779 src/extensions/QIDialog.h \
780 src/extensions/QIDialogButtonBox.h \
781 src/extensions/QIDialogContainer.h \
782 src/extensions/QIFileDialog.h \
783 src/extensions/QIFlowLayout.h \
784 src/extensions/QIInputDialog.h \
785 src/extensions/QILabel.h \
786 src/extensions/QILabelSeparator.h \
787 src/extensions/QILineEdit.h \
788 src/extensions/QIMainDialog.h \
789 src/extensions/QIManagerDialog.h \
790 src/extensions/QIMenu.h \
791 src/extensions/QIMessageBox.h \
792 src/extensions/QIProcess.h \
793 src/extensions/QIRichTextLabel.h \
794 src/extensions/QIRichToolButton.h \
795 src/extensions/QISplitter.h \
796 src/extensions/QIStatusBar.h \
797 src/extensions/QIStatusBarIndicator.h \
798 src/extensions/QIStyledItemDelegate.h \
799 src/extensions/QITableView.h \
800 src/extensions/QITabWidget.h \
801 src/extensions/QIToolButton.h \
802 src/extensions/QITreeView.h \
803 src/extensions/QITreeWidget.h \
804 src/extensions/QIWidgetValidator.h \
805 src/extensions/graphics/QIGraphicsView.h \
806 src/extensions/graphics/QIGraphicsWidget.h \
807 src/extradata/UIExtraDataDefs.h \
808 src/extradata/UIExtraDataManager.h \
809 src/globals/UIActionPool.h \
810 src/globals/UIActionPoolManager.h \
811 src/globals/UIActionPoolRuntime.h \
812 src/globals/UIAnimationFramework.h \
813 src/globals/UICommon.h \
814 src/globals/UICustomFileSystemModel.h \
815 src/globals/UIDesktopWidgetWatchdog.h \
816 src/globals/UIDialogPanel.h \
817 src/globals/UIMainEventListener.h \
818 src/globals/UIMessageCenter.h \
819 src/globals/UIModalWindowManager.h \
820 src/globals/UIPathOperations.h \
821 src/globals/UIPopupCenter.h \
822 src/globals/UIProgressEventHandler.h \
823 src/globals/UIShortcutPool.h \
824 src/globals/UIThreadPool.h \
825 src/globals/UITextTable.h \
826 src/globals/UIVirtualBoxEventHandler.h \
827 src/globals/VBoxUtils.h \
828 src/logviewer/UIVMLogPage.h \
829 src/logviewer/UIVMLogViewerBookmarksPanel.h \
830 src/logviewer/UIVMLogViewerDialog.h \
831 src/logviewer/UIVMLogViewerFilterPanel.h \
832 src/logviewer/UIVMLogViewerOptionsPanel.h \
833 src/logviewer/UIVMLogViewerPanel.h \
834 src/logviewer/UIVMLogViewerSearchPanel.h \
835 src/logviewer/UIVMLogViewerTextEdit.h \
836 src/logviewer/UIVMLogViewerWidget.h \
837 src/medium/UIFDCreationDialog.h \
838 src/medium/UIMediumEnumerator.h \
839 src/medium/UIMediumItem.h \
840 src/medium/UIMediumSearchWidget.h \
841 src/medium/UIMediumSelector.h \
842 src/medium/viso/UIVisoBrowserBase.h \
843 src/medium/viso/UIVisoContentBrowser.h \
844 src/medium/viso/UIVisoCreator.h \
845 src/medium/viso/UIVisoConfigurationPanel.h \
846 src/medium/viso/UIVisoCreatorOptionsPanel.h \
847 src/medium/viso/UIVisoHostBrowser.h \
848 src/settings/UISettingsDialog.h \
849 src/settings/UISettingsDialogSpecific.h \
850 src/settings/UISettingsPage.h \
851 src/settings/UISettingsSelector.h \
852 src/settings/UISettingsSerializer.h \
853 src/settings/global/UIGlobalSettingsExtension.h \
854 src/settings/global/UIGlobalSettingsGeneral.h \
855 src/settings/global/UIGlobalSettingsInput.h \
856 src/settings/global/UIGlobalSettingsLanguage.h \
857 src/settings/global/UIGlobalSettingsDisplay.h \
858 src/settings/global/UIGlobalSettingsNetwork.h \
859 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
860 src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
861 src/settings/machine/UIMachineSettingsAudio.h \
862 src/settings/machine/UIMachineSettingsDisplay.h \
863 src/settings/machine/UIMachineSettingsGeneral.h \
864 src/settings/machine/UIMachineSettingsInterface.h \
865 src/settings/machine/UIMachineSettingsNetwork.h \
866 src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
867 src/settings/machine/UIMachineSettingsSF.h \
868 src/settings/machine/UIMachineSettingsSFDetails.h \
869 src/settings/machine/UIMachineSettingsSerial.h \
870 src/settings/machine/UIMachineSettingsStorage.h \
871 src/settings/machine/UIMachineSettingsSystem.h \
872 src/settings/machine/UIMachineSettingsUSB.h \
873 src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
874 src/widgets/UIAddDiskEncryptionPasswordDialog.h \
875 src/widgets/UIAudioControllerEditor.h \
876 src/widgets/UIAudioHostDriverEditor.h \
877 src/widgets/UIBaseMemoryEditor.h \
878 src/widgets/UIBaseMemorySlider.h \
879 src/widgets/UIBootOrderEditor.h \
880 src/widgets/UIFilePathSelector.h \
881 src/widgets/UIFilmContainer.h \
882 src/widgets/UIGraphicsControllerEditor.h \
883 src/widgets/UIHostComboEditor.h \
884 src/widgets/UIHotKeyEditor.h \
885 src/widgets/UIMediaComboBox.h \
886 src/widgets/UIMediumSizeEditor.h \
887 src/widgets/UIMenuBar.h \
888 src/widgets/UIMenuBarEditorWindow.h \
889 src/widgets/UINameAndSystemEditor.h \
890 src/widgets/UINetworkAttachmentEditor.h \
891 src/widgets/UIPopupBox.h \
892 src/widgets/UIPopupPane.h \
893 src/widgets/UIPopupPaneButtonPane.h \
894 src/widgets/UIPopupPaneMessage.h \
895 src/widgets/UIPopupPaneDetails.h \
896 src/widgets/UIPopupStack.h \
897 src/widgets/UIPopupStackViewport.h \
898 src/widgets/UIPortForwardingTable.h \
899 src/widgets/UIProgressDialog.h \
900 src/widgets/UIScaleFactorEditor.h \
901 src/widgets/UISlidingToolBar.h \
902 src/widgets/UISpecialControls.h \
903 src/widgets/UIStatusBarEditorWindow.h \
904 src/widgets/UISearchLineEdit.h \
905 src/widgets/UIToolBar.h \
906 src/widgets/UIVideoMemoryEditor.h \
907 src/widgets/UIWarningPane.h \
908 src/wizards/UIWizard.h \
909 src/wizards/UIWizardPage.h \
910 src/wizards/newvd/UIWizardNewVD.h \
911 src/wizards/newvd/UIWizardNewVDPageBasic1.h \
912 src/wizards/newvd/UIWizardNewVDPageBasic2.h \
913 src/wizards/newvd/UIWizardNewVDPageBasic3.h \
914 src/wizards/newvd/UIWizardNewVDPageExpert.h
915
916ifdef VBOX_GUI_WITH_NETWORK_MANAGER
917 UICommon_QT_MOCHDRS += \
918 src/net/UIDownloader.h \
919 src/net/UIDownloaderAdditions.h \
920 src/net/UIDownloaderExtensionPack.h \
921 src/net/UIDownloaderUserManual.h \
922 src/net/UINetworkCustomer.h \
923 src/net/UINetworkManager.h \
924 src/net/UINetworkManagerDialog.h \
925 src/net/UINetworkManagerIndicator.h \
926 src/net/UINetworkRequest.h \
927 src/net/UINetworkRequestWidget.h \
928 src/net/UINetworkReply.h \
929 src/net/UIUpdateManager.h \
930 src/settings/global/UIGlobalSettingsProxy.h \
931 src/settings/global/UIGlobalSettingsUpdate.h
932endif
933
934UICommon_QT_MOCHDRS.darwin += \
935 src/platform/darwin/UICocoaSpecialControls.h \
936 src/platform/darwin/UIWindowMenuManager.h
937
938
939#
940# VirtualBox Manager Application
941# Sources containing local definitions of classes that use the Q_OBJECT macro.
942#
943VirtualBox_QT_MOCSRCS = \
944 src/hostnetwork/UIHostNetworkManager.cpp \
945 src/manager/UIWelcomePane.cpp \
946 src/snapshots/UISnapshotDetailsWidget.cpp \
947 src/snapshots/UISnapshotPane.cpp \
948 src/widgets/UIApplianceEditorWidget.cpp \
949 src/widgets/UIFormEditorWidget.cpp \
950 src/widgets/UIMenuToolBar.cpp \
951 src/widgets/UITabBar.cpp \
952 src/widgets/graphics/UIGraphicsScrollBar.cpp \
953 src/wizards/importappliance/UIWizardImportApp.cpp
954
955
956#
957# VirtualBox Virtual Machine Application
958# Sources containing local definitions of classes that use the Q_OBJECT macro.
959#
960VirtualBoxVM_QT_MOCSRCS = \
961 src/runtime/UIConsoleEventHandler.cpp \
962 src/runtime/UIFrameBuffer.cpp \
963 src/runtime/UIIndicatorsPool.cpp \
964 src/runtime/information/UIInformationPerformanceMonitor.cpp \
965 src/runtime/information/UIInformationRuntime.cpp \
966 src/guestctrl/UIFileManager.cpp \
967 src/guestctrl/UIFileManagerLogPanel.cpp \
968 src/guestctrl/UIFileManagerOperationsPanel.cpp \
969 src/guestctrl/UIFileManagerSessionPanel.cpp \
970 src/guestctrl/UIFileManagerTable.cpp \
971 src/guestctrl/UIFileManagerGuestTable.cpp \
972 src/guestctrl/UIFileManagerHostTable.cpp \
973 src/guestctrl/UIGuestProcessControlWidget.cpp \
974 src/softkeyboard/UISoftKeyboard.cpp \
975 src/widgets/UIMiniToolBar.cpp
976
977
978#
979# VirtualBox - GUI Global Shared Library.
980# Sources.
981#
982UICommon_QT_MOCSRCS = \
983 src/extensions/QIAdvancedSlider.cpp \
984 src/extensions/QIArrowSplitter.cpp \
985 src/extensions/QISplitter.cpp \
986 src/extradata/UIExtraDataManager.cpp \
987 src/globals/UIActionPool.cpp \
988 src/globals/UIActionPoolManager.cpp \
989 src/globals/UIActionPoolRuntime.cpp \
990 src/globals/UIMainEventListener.cpp \
991 src/globals/UIThreadPool.cpp \
992 src/globals/UIVirtualBoxEventHandler.cpp \
993 src/logviewer/UIVMLogViewerFilterPanel.cpp \
994 src/logviewer/UIVMLogViewerSearchPanel.cpp \
995 src/logviewer/UIVMLogViewerTextEdit.cpp \
996 src/medium/UIMediumEnumerator.cpp \
997 src/medium/viso/UIVisoContentBrowser.cpp \
998 src/medium/viso/UIVisoHostBrowser.cpp \
999 src/medium/viso/UIVisoBrowserBase.cpp \
1000 src/settings/global/UIGlobalSettingsExtension.cpp \
1001 src/settings/global/UIGlobalSettingsInput.cpp \
1002 src/settings/global/UIGlobalSettingsLanguage.cpp \
1003 src/settings/global/UIGlobalSettingsNetwork.cpp \
1004 src/settings/machine/UIMachineSettingsNetwork.cpp \
1005 src/settings/machine/UIMachineSettingsSerial.cpp \
1006 src/settings/machine/UIMachineSettingsSF.cpp \
1007 src/settings/machine/UIMachineSettingsStorage.cpp \
1008 src/settings/machine/UIMachineSettingsUSB.cpp \
1009 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1010 src/widgets/UIBootOrderEditor.cpp \
1011 src/widgets/UIFilmContainer.cpp \
1012 src/widgets/UIHotKeyEditor.cpp \
1013 src/widgets/UIPortForwardingTable.cpp \
1014 src/widgets/UIStatusBarEditorWindow.cpp
1015
1016ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1017 UICommon_QT_MOCSRCS += \
1018 src/net/UINetworkReply.cpp \
1019 src/net/UIUpdateManager.cpp
1020endif
1021
1022ifdef VBOX_WITH_XPCOM
1023 UICommon_QT_MOCSRCS += \
1024 src/globals/COMDefs.cpp
1025endif
1026
1027UICommon_QT_MOCSRCS.darwin += \
1028 src/platform/darwin/UIWindowMenuManager.cpp
1029
1030UICommon_QT_MOCSRCS.linux += \
1031 src/globals/UIDesktopWidgetWatchdog.cpp
1032UICommon_QT_MOCSRCS.solaris += \
1033 src/globals/UIDesktopWidgetWatchdog.cpp
1034UICommon_QT_MOCSRCS.freebsd += \
1035 src/globals/UIDesktopWidgetWatchdog.cpp
1036
1037
1038#
1039# VirtualBox Manager Application
1040# Sources.
1041#
1042VirtualBox_SOURCES = \
1043 src/main.cpp \
1044 src/cloud/UICloudProfileDetailsWidget.cpp \
1045 src/cloud/UICloudProfileManager.cpp \
1046 src/globals/UIStarter.cpp \
1047 src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
1048 src/hostnetwork/UIHostNetworkManager.cpp \
1049 src/hostnetwork/UIHostNetworkUtils.cpp \
1050 src/manager/UIErrorPane.cpp \
1051 src/manager/UIToolPaneGlobal.cpp \
1052 src/manager/UIToolPaneMachine.cpp \
1053 src/manager/UIVirtualBoxManager.cpp \
1054 src/manager/UIVirtualBoxManagerWidget.cpp \
1055 src/manager/UIVirtualMachineItem.cpp \
1056 src/manager/UIWelcomePane.cpp \
1057 src/manager/chooser/UIChooser.cpp \
1058 src/manager/chooser/UIChooserAbstractModel.cpp \
1059 src/manager/chooser/UIChooserModel.cpp \
1060 src/manager/chooser/UIChooserView.cpp \
1061 src/manager/chooser/UIChooserHandlerMouse.cpp \
1062 src/manager/chooser/UIChooserHandlerKeyboard.cpp \
1063 src/manager/chooser/UIChooserItem.cpp \
1064 src/manager/chooser/UIChooserItemGroup.cpp \
1065 src/manager/chooser/UIChooserItemGlobal.cpp \
1066 src/manager/chooser/UIChooserItemMachine.cpp \
1067 src/manager/chooser/UIChooserNode.cpp \
1068 src/manager/chooser/UIChooserNodeGroup.cpp \
1069 src/manager/chooser/UIChooserNodeGlobal.cpp \
1070 src/manager/chooser/UIChooserNodeMachine.cpp \
1071 src/manager/chooser/UIChooserSearchWidget.cpp \
1072 src/manager/details/UIDetails.cpp \
1073 src/manager/details/UIDetailsContextMenu.cpp \
1074 src/manager/details/UIDetailsModel.cpp \
1075 src/manager/details/UIDetailsView.cpp \
1076 src/manager/details/UIDetailsItem.cpp \
1077 src/manager/details/UIDetailsGroup.cpp \
1078 src/manager/details/UIDetailsSet.cpp \
1079 src/manager/details/UIDetailsElement.cpp \
1080 src/manager/details/UIDetailsElements.cpp \
1081 src/manager/details/UIMachinePreview.cpp \
1082 src/manager/tools/UITools.cpp \
1083 src/manager/tools/UIToolsModel.cpp \
1084 src/manager/tools/UIToolsView.cpp \
1085 src/manager/tools/UIToolsHandlerMouse.cpp \
1086 src/manager/tools/UIToolsHandlerKeyboard.cpp \
1087 src/manager/tools/UIToolsItem.cpp \
1088 src/medium/UIMediumDetailsWidget.cpp \
1089 src/medium/UIMediumManager.cpp \
1090 src/snapshots/UISnapshotDetailsWidget.cpp \
1091 src/snapshots/UISnapshotPane.cpp \
1092 src/widgets/UIApplianceEditorWidget.cpp \
1093 src/widgets/UIApplianceExportEditorWidget.cpp \
1094 src/widgets/UIApplianceImportEditorWidget.cpp \
1095 src/widgets/UIEmptyFilePathSelector.cpp \
1096 src/widgets/UIFormEditorWidget.cpp \
1097 src/widgets/UIGuestOSTypeSelectionButton.cpp \
1098 src/widgets/UILineTextEdit.cpp \
1099 src/widgets/UISlidingAnimation.cpp \
1100 src/widgets/UISlidingWidget.cpp \
1101 src/widgets/UITabBar.cpp \
1102 src/widgets/UIMenuToolBar.cpp \
1103 src/widgets/graphics/UIGraphicsButton.cpp \
1104 src/widgets/graphics/UIGraphicsRotatorButton.cpp \
1105 src/widgets/graphics/UIGraphicsScrollArea.cpp \
1106 src/widgets/graphics/UIGraphicsScrollBar.cpp \
1107 src/widgets/graphics/UIGraphicsZoomButton.cpp \
1108 src/widgets/graphics/UIGraphicsToolBar.cpp \
1109 src/widgets/graphics/UIGraphicsTextPane.cpp \
1110 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \
1111 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp \
1112 src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.cpp \
1113 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \
1114 src/wizards/newvm/UIWizardNewVM.cpp \
1115 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
1116 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
1117 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
1118 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
1119 src/wizards/clonevm/UIWizardCloneVM.cpp \
1120 src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
1121 src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
1122 src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
1123 src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
1124 src/wizards/clonevd/UIWizardCloneVD.cpp \
1125 src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
1126 src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
1127 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
1128 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
1129 src/wizards/exportappliance/UIWizardExportApp.cpp \
1130 src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
1131 src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
1132 src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
1133 src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
1134 src/wizards/importappliance/UIApplianceUnverifiedCertificateViewer.cpp \
1135 src/wizards/importappliance/UIWizardImportApp.cpp \
1136 src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
1137 src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
1138 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
1139
1140VirtualBox_SOURCES.darwin += \
1141 src/platform/darwin/UIDesktopServices_darwin.cpp \
1142 src/platform/darwin/UIDesktopServices_darwin_cocoa.mm
1143
1144if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1145 VirtualBox_SOURCES += \
1146 src/platform/x11/UIDesktopServices_x11.cpp
1147endif
1148
1149VirtualBox_SOURCES.win += \
1150 src/platform/win/UIDesktopServices_win.cpp
1151
1152if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1153 VirtualBox_SOURCES += \
1154 src/VBox2DHelpers.cpp \
1155 src/VBoxFBOverlay.cpp \
1156 src/VBoxGLSupportInfo.cpp
1157endif
1158
1159$(call VBOX_SET_VER_INFO_EXE,VirtualBox,VirtualBox Manager,$(VBOX_WINDOWS_ICON_FILE))
1160
1161
1162#
1163# VirtualBox Virtual Machine Application
1164# Sources.
1165#
1166VirtualBoxVM_SOURCES = \
1167 src/main.cpp \
1168 src/globals/UIStarter.cpp \
1169 src/runtime/UIConsoleEventHandler.cpp \
1170 src/runtime/UIFrameBuffer.cpp \
1171 src/runtime/UIIndicatorsPool.cpp \
1172 src/runtime/UIKeyboardHandler.cpp \
1173 src/runtime/UIMachine.cpp \
1174 src/runtime/UIMachineLogic.cpp \
1175 src/runtime/UIMachineView.cpp \
1176 src/runtime/UIMachineWindow.cpp \
1177 src/runtime/UIMouseHandler.cpp \
1178 src/runtime/UIMultiScreenLayout.cpp \
1179 src/runtime/UISession.cpp \
1180 src/runtime/UIVMCloseDialog.cpp \
1181 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
1182 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
1183 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
1184 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
1185 src/runtime/information/UIInformationConfiguration.cpp \
1186 src/runtime/information/UIVMInformationDialog.cpp \
1187 src/runtime/information/UIInformationPerformanceMonitor.cpp \
1188 src/runtime/information/UIInformationRuntime.cpp \
1189 src/guestctrl/UIFileManager.cpp \
1190 src/guestctrl/UIFileManagerDialog.cpp \
1191 src/guestctrl/UIFileManagerGuestTable.cpp \
1192 src/guestctrl/UIFileManagerHostTable.cpp \
1193 src/guestctrl/UIFileManagerLogPanel.cpp \
1194 src/guestctrl/UIFileManagerOperationsPanel.cpp \
1195 src/guestctrl/UIFileManagerOptionsPanel.cpp \
1196 src/guestctrl/UIFileManagerSessionPanel.cpp \
1197 src/guestctrl/UIFileManagerTable.cpp \
1198 src/guestctrl/UIGuestControlConsole.cpp \
1199 src/guestctrl/UIGuestControlInterface.cpp \
1200 src/guestctrl/UIGuestControlTreeItem.cpp \
1201 src/guestctrl/UIGuestProcessControlWidget.cpp \
1202 src/guestctrl/UIGuestProcessControlDialog.cpp \
1203 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
1204 src/runtime/normal/UIMachineLogicNormal.cpp \
1205 src/runtime/normal/UIMachineViewNormal.cpp \
1206 src/runtime/normal/UIMachineWindowNormal.cpp \
1207 src/runtime/scale/UIKeyboardHandlerScale.cpp \
1208 src/runtime/scale/UIMachineLogicScale.cpp \
1209 src/runtime/scale/UIMachineViewScale.cpp \
1210 src/runtime/scale/UIMachineWindowScale.cpp \
1211 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
1212 src/runtime/seamless/UIMachineLogicSeamless.cpp \
1213 src/runtime/seamless/UIMachineViewSeamless.cpp \
1214 src/runtime/seamless/UIMachineWindowSeamless.cpp \
1215 src/softkeyboard/UISoftKeyboard.cpp \
1216 src/widgets/UIMiniToolBar.cpp \
1217 src/wizards/firstrun/UIWizardFirstRun.cpp \
1218 src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
1219
1220ifdef VBOX_WITH_DRAG_AND_DROP
1221 VirtualBoxVM_SOURCES += \
1222 src/runtime/UIDnDHandler.cpp
1223 ifdef VBOX_WITH_DRAG_AND_DROP_GH
1224 VirtualBoxVM_SOURCES += \
1225 src/runtime/UIDnDMIMEData.cpp
1226 VirtualBoxVM_SOURCES.win += \
1227 src/runtime/UIDnDDropSource_win.cpp \
1228 src/runtime/UIDnDDataObject_win.cpp \
1229 src/runtime/UIDnDEnumFormat_win.cpp
1230 endif
1231endif
1232
1233if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1234 VirtualBoxVM_SOURCES += \
1235 src/VBox2DHelpers.cpp \
1236 src/VBoxFBOverlay.cpp \
1237 src/VBoxGLSupportInfo.cpp
1238endif
1239
1240VirtualBoxVM_SOURCES.darwin += \
1241 src/platform/darwin/UIAbstractDockIconPreview.cpp \
1242 src/platform/darwin/UICocoaDockIconPreview.mm
1243
1244ifdef VBOX_WITH_HARDENING
1245$(call VBOX_SET_VER_INFO_DLL,VirtualBoxVM,VirtualBox Virtual Machine (dll),$(VBOX_WINDOWS_ICON_FILE))
1246else
1247$(call VBOX_SET_VER_INFO_EXE,VirtualBoxVM,VirtualBox Virtual Machine,$(VBOX_WINDOWS_ICON_FILE))
1248endif
1249
1250
1251#
1252# VirtualBox - GUI Global Shared Library.
1253# Sources.
1254#
1255UICommon_SOURCES = \
1256 src/VBoxAboutDlg.cpp \
1257 src/VBoxLicenseViewer.cpp \
1258 src/UITakeSnapshotDialog.cpp \
1259 src/extensions/QIAdvancedSlider.cpp \
1260 src/extensions/QIArrowButtonPress.cpp \
1261 src/extensions/QIArrowButtonSwitch.cpp \
1262 src/extensions/QIArrowSplitter.cpp \
1263 src/extensions/QIComboBox.cpp \
1264 src/extensions/QIDialog.cpp \
1265 src/extensions/QIDialogButtonBox.cpp \
1266 src/extensions/QIDialogContainer.cpp \
1267 src/extensions/QIFileDialog.cpp \
1268 src/extensions/QIFlowLayout.cpp \
1269 src/extensions/QIInputDialog.cpp \
1270 src/extensions/QILabel.cpp \
1271 src/extensions/QILabelSeparator.cpp \
1272 src/extensions/QILineEdit.cpp \
1273 src/extensions/QIMainDialog.cpp \
1274 src/extensions/QIManagerDialog.cpp \
1275 src/extensions/QIMenu.cpp \
1276 src/extensions/QIMessageBox.cpp \
1277 src/extensions/QIProcess.cpp \
1278 src/extensions/QIRichTextLabel.cpp \
1279 src/extensions/QIRichToolButton.cpp \
1280 src/extensions/QISplitter.cpp \
1281 src/extensions/QIStatusBar.cpp \
1282 src/extensions/QIStatusBarIndicator.cpp \
1283 src/extensions/QIStyledItemDelegate.cpp \
1284 src/extensions/QITableView.cpp \
1285 src/extensions/QITabWidget.cpp \
1286 src/extensions/QIToolButton.cpp \
1287 src/extensions/QITreeView.cpp \
1288 src/extensions/QITreeWidget.cpp \
1289 src/extensions/QIWidgetValidator.cpp \
1290 src/extensions/graphics/QIGraphicsView.cpp \
1291 src/extensions/graphics/QIGraphicsWidget.cpp \
1292 src/extradata/UIExtraDataDefs.cpp \
1293 src/extradata/UIExtraDataManager.cpp \
1294 src/converter/UIConverter.cpp \
1295 src/converter/UIConverterBackendCOM.cpp \
1296 src/converter/UIConverterBackendGlobal.cpp \
1297 src/globals/COMDefs.cpp \
1298 src/globals/UIActionPool.cpp \
1299 src/globals/UIActionPoolManager.cpp \
1300 src/globals/UIActionPoolRuntime.cpp \
1301 src/globals/UIAnimationFramework.cpp \
1302 src/globals/UICommon.cpp \
1303 src/globals/UICustomFileSystemModel.cpp \
1304 src/globals/UIDefs.cpp \
1305 src/globals/UIDesktopWidgetWatchdog.cpp \
1306 src/globals/UIDetailsGenerator.cpp \
1307 src/globals/UIDialogPanel.cpp \
1308 src/globals/UIErrorString.cpp \
1309 src/globals/UIIconPool.cpp \
1310 src/globals/UIImageTools.cpp \
1311 src/globals/UIMachineAttributeSetter.cpp \
1312 src/globals/UIMainEventListener.cpp \
1313 src/globals/UIMessageCenter.cpp \
1314 src/globals/UIModalWindowManager.cpp \
1315 src/globals/UIMousePointerShapeData.cpp \
1316 src/globals/UIPathOperations.cpp \
1317 src/globals/UIPopupCenter.cpp \
1318 src/globals/UIProgressEventHandler.cpp \
1319 src/globals/UIShortcutPool.cpp \
1320 src/globals/UITextTable.cpp \
1321 src/globals/UIThreadPool.cpp \
1322 src/globals/UIVersion.cpp \
1323 src/globals/UIVirtualBoxEventHandler.cpp \
1324 src/logviewer/UIVMLogPage.cpp \
1325 src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
1326 src/logviewer/UIVMLogViewerDialog.cpp \
1327 src/logviewer/UIVMLogViewerFilterPanel.cpp \
1328 src/logviewer/UIVMLogViewerOptionsPanel.cpp \
1329 src/logviewer/UIVMLogViewerPanel.cpp \
1330 src/logviewer/UIVMLogViewerSearchPanel.cpp \
1331 src/logviewer/UIVMLogViewerTextEdit.cpp \
1332 src/logviewer/UIVMLogViewerWidget.cpp \
1333 src/medium/UIFDCreationDialog.cpp \
1334 src/medium/UIMedium.cpp \
1335 src/medium/UIMediumDefs.cpp \
1336 src/medium/UIMediumEnumerator.cpp \
1337 src/medium/UIMediumItem.cpp \
1338 src/medium/UIMediumSearchWidget.cpp \
1339 src/medium/UIMediumSelector.cpp \
1340 src/medium/viso/UIVisoBrowserBase.cpp \
1341 src/medium/viso/UIVisoContentBrowser.cpp \
1342 src/medium/viso/UIVisoCreator.cpp \
1343 src/medium/viso/UIVisoConfigurationPanel.cpp \
1344 src/medium/viso/UIVisoCreatorOptionsPanel.cpp \
1345 src/medium/viso/UIVisoHostBrowser.cpp \
1346 src/objects/UIRichTextString.cpp \
1347 src/settings/UISettingsDefs.cpp \
1348 src/settings/UISettingsDialog.cpp \
1349 src/settings/UISettingsDialogSpecific.cpp \
1350 src/settings/UISettingsPage.cpp \
1351 src/settings/UISettingsSelector.cpp \
1352 src/settings/UISettingsSerializer.cpp \
1353 src/settings/global/UIGlobalSettingsExtension.cpp \
1354 src/settings/global/UIGlobalSettingsGeneral.cpp \
1355 src/settings/global/UIGlobalSettingsInput.cpp \
1356 src/settings/global/UIGlobalSettingsLanguage.cpp \
1357 src/settings/global/UIGlobalSettingsDisplay.cpp \
1358 src/settings/global/UIGlobalSettingsNetwork.cpp \
1359 src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
1360 src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
1361 src/settings/machine/UIMachineSettingsAudio.cpp \
1362 src/settings/machine/UIMachineSettingsDisplay.cpp \
1363 src/settings/machine/UIMachineSettingsGeneral.cpp \
1364 src/settings/machine/UIMachineSettingsInterface.cpp \
1365 src/settings/machine/UIMachineSettingsNetwork.cpp \
1366 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
1367 src/settings/machine/UIMachineSettingsSF.cpp \
1368 src/settings/machine/UIMachineSettingsSFDetails.cpp \
1369 src/settings/machine/UIMachineSettingsSerial.cpp \
1370 src/settings/machine/UIMachineSettingsStorage.cpp \
1371 src/settings/machine/UIMachineSettingsSystem.cpp \
1372 src/settings/machine/UIMachineSettingsUSB.cpp \
1373 src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
1374 src/widgets/UIAddDiskEncryptionPasswordDialog.cpp \
1375 src/widgets/UIAudioControllerEditor.cpp \
1376 src/widgets/UIAudioHostDriverEditor.cpp \
1377 src/widgets/UIBaseMemoryEditor.cpp \
1378 src/widgets/UIBaseMemorySlider.cpp \
1379 src/widgets/UIBootOrderEditor.cpp \
1380 src/widgets/UIFilePathSelector.cpp \
1381 src/widgets/UIFilmContainer.cpp \
1382 src/widgets/UIGraphicsControllerEditor.cpp \
1383 src/widgets/UIHostComboEditor.cpp \
1384 src/widgets/UIHotKeyEditor.cpp \
1385 src/widgets/UIMediaComboBox.cpp \
1386 src/widgets/UIMediumSizeEditor.cpp \
1387 src/widgets/UIMenuBar.cpp \
1388 src/widgets/UIMenuBarEditorWindow.cpp \
1389 src/widgets/UINameAndSystemEditor.cpp \
1390 src/widgets/UINetworkAttachmentEditor.cpp \
1391 src/widgets/UIPopupBox.cpp \
1392 src/widgets/UIPopupPane.cpp \
1393 src/widgets/UIPopupPaneButtonPane.cpp \
1394 src/widgets/UIPopupPaneMessage.cpp \
1395 src/widgets/UIPopupPaneDetails.cpp \
1396 src/widgets/UIPopupStack.cpp \
1397 src/widgets/UIPopupStackViewport.cpp \
1398 src/widgets/UIPortForwardingTable.cpp \
1399 src/widgets/UIProgressDialog.cpp \
1400 src/widgets/UIScaleFactorEditor.cpp \
1401 src/widgets/UISearchLineEdit.cpp \
1402 src/widgets/UISlidingToolBar.cpp \
1403 src/widgets/UISpecialControls.cpp \
1404 src/widgets/UIStatusBarEditorWindow.cpp \
1405 src/widgets/UIToolBar.cpp \
1406 src/widgets/UIVideoMemoryEditor.cpp \
1407 src/widgets/UIWarningPane.cpp \
1408 src/wizards/UIWizard.cpp \
1409 src/wizards/UIWizardPage.cpp \
1410 src/wizards/newvd/UIWizardNewVD.cpp \
1411 src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
1412 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
1413 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
1414 src/wizards/newvd/UIWizardNewVDPageExpert.cpp
1415
1416ifdef VBOX_GUI_WITH_NETWORK_MANAGER
1417 UICommon_SOURCES += \
1418 src/net/UIDownloader.cpp \
1419 src/net/UIDownloaderAdditions.cpp \
1420 src/net/UIDownloaderExtensionPack.cpp \
1421 src/net/UIDownloaderUserManual.cpp \
1422 src/net/UINetworkCustomer.cpp \
1423 src/net/UINetworkManager.cpp \
1424 src/net/UINetworkManagerDialog.cpp \
1425 src/net/UINetworkManagerIndicator.cpp \
1426 src/net/UINetworkRequest.cpp \
1427 src/net/UINetworkRequestWidget.cpp \
1428 src/net/UINetworkReply.cpp \
1429 src/net/UIUpdateDefs.cpp \
1430 src/net/UIUpdateManager.cpp \
1431 src/settings/global/UIGlobalSettingsProxy.cpp \
1432 src/settings/global/UIGlobalSettingsUpdate.cpp
1433endif
1434
1435if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
1436 UICommon_SOURCES += \
1437 src/platform/x11/VBoxX11Helper.cpp \
1438 src/platform/x11/XKeyboard-new.cpp
1439endif
1440
1441UICommon_SOURCES.win += \
1442 src/platform/win/VBoxUtils-win.cpp \
1443 src/platform/win/WinKeyboard.cpp
1444
1445UICommon_SOURCES.darwin += \
1446 src/platform/darwin/CocoaEventHelper.mm \
1447 src/platform/darwin/DarwinKeyboard.cpp \
1448 src/platform/darwin/UICocoaApplication.mm \
1449 src/platform/darwin/UICocoaSpecialControls.mm \
1450 src/platform/darwin/UIWindowMenuManager.cpp \
1451 src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
1452 src/platform/darwin/VBoxUtils-darwin.cpp
1453
1454if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1455 UICommon_SOURCES += \
1456 src/VBox2DHelpers.cpp \
1457 src/VBoxGLSupportInfo.cpp
1458endif
1459
1460
1461#
1462# VirtualBox Manager Application
1463# Deployment.
1464#
1465if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)
1466 INSTALLS.linux += VirtualBox.qt.conf
1467 INSTALLS.solaris += VirtualBox.qt.conf
1468 VirtualBox.qt.conf_INST = $(INST_BIN)
1469 VirtualBox.qt.conf_MODE = 644
1470 VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
1471
1472$$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1473 $(QUIET)$(RM) -f $@
1474 $(QUIET)$(APPEND) $@ "[Paths]"
1475 $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
1476endif
1477
1478
1479#
1480# VirtualBox Manager Application
1481# The Qt modules we're using.
1482# (The include directory and lib/framework for each module will be added by the Qt unit.)
1483#
1484VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport
1485VirtualBox_QT_MODULES.linux += X11Extras
1486VirtualBox_QT_MODULES.solaris += X11Extras
1487VirtualBox_QT_MODULES.freebsd += X11Extras
1488VirtualBox_QT_MODULES.darwin += MacExtras
1489VirtualBox_QT_MODULES.win += WinExtras
1490if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1491 VirtualBox_QT_MODULES += OpenGL
1492endif
1493
1494
1495#
1496# VirtualBox Virtual Machine Application
1497# The Qt modules we're using.
1498# (The include directory and lib/framework for each module will be added by the Qt unit.)
1499#
1500VirtualBoxVM_QT_MODULES = Core Gui Widgets PrintSupport
1501VirtualBoxVM_QT_MODULES.linux += X11Extras
1502VirtualBoxVM_QT_MODULES.solaris += X11Extras
1503VirtualBoxVM_QT_MODULES.freebsd += X11Extras
1504VirtualBoxVM_QT_MODULES.darwin += MacExtras
1505VirtualBoxVM_QT_MODULES.win += WinExtras
1506if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1507 VirtualBoxVM_QT_MODULES += OpenGL
1508endif
1509
1510
1511#
1512# VirtualBox - GUI Global Shared Library.
1513# The Qt modules we're using.
1514# (The include directory and lib/framework for each module will be added by the Qt unit.)
1515#
1516UICommon_QT_MODULES = Core Gui Widgets
1517UICommon_QT_MODULES.linux += X11Extras
1518UICommon_QT_MODULES.solaris += X11Extras
1519UICommon_QT_MODULES.freebsd += X11Extras
1520UICommon_QT_MODULES.darwin += MacExtras
1521UICommon_QT_MODULES.win += WinExtras
1522if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1523 UICommon_QT_MODULES += OpenGL
1524endif
1525
1526
1527# Pull in the ui files
1528$(eval VirtualBox_SOURCES += $(FORMS))
1529$(eval VirtualBoxVM_SOURCES += $(FORMS))
1530$(eval UICommon_SOURCES += $(FORMS))
1531
1532
1533# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
1534UICommon_SOURCES += VirtualBox1.qrc
1535VirtualBox1.qrc_RCCFLAGS = -name BASIC1
1536UICommon_SOURCES += VirtualBox2.qrc
1537VirtualBox2.qrc_RCCFLAGS = -name BASIC2
1538UICommon_SOURCES += VirtualBox1_x2.qrc
1539VirtualBox1_x2.qrc_RCCFLAGS = -name BASIC1_X2
1540UICommon_SOURCES += VirtualBox2_x2.qrc
1541VirtualBox2_x2.qrc_RCCFLAGS = -name BASIC2_X2
1542UICommon_SOURCES += VirtualBox1_x3.qrc
1543VirtualBox1_x3.qrc_RCCFLAGS = -name BASIC1_X3
1544UICommon_SOURCES += VirtualBox2_x3.qrc
1545VirtualBox2_x3.qrc_RCCFLAGS = -name BASIC2_X3
1546UICommon_SOURCES += VirtualBox1_x4.qrc
1547VirtualBox1_x4.qrc_RCCFLAGS = -name BASIC1_X4
1548UICommon_SOURCES += VirtualBox2_x4.qrc
1549VirtualBox2_x4.qrc_RCCFLAGS = -name BASIC2_X4
1550UICommon_SOURCES += VirtualBox_xml.qrc
1551VirtualBox_xml.qrc_RCCFLAGS = -name BASIC_XML
1552UICommon_SOURCES += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1553$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
1554if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
1555 UICommon_SOURCES += VirtualBoxShaders.qrc
1556 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
1557endif
1558
1559
1560# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
1561VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
1562 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
1563# Compress the translation units.
1564VirtualBox_LRCFLAGS = -silent
1565# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
1566VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
1567# All files which contain translatable strings.
1568VirtualBox_VBOX_ALL_NLS_SOURCES = $(VirtualBox_SOURCES) $(VirtualBoxVM_SOURCES) $(UICommon_SOURCES)
1569
1570
1571## @todo how to detect what tool is used?
1572## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
1573# more generic -Wno-extra
1574# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
1575ifdef VBOX_WITH_XPCOM
1576 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
1577endif
1578
1579
1580#
1581# Build generated COM wrappers as part of app.
1582# VirtualBox - GUI Global Shared Library.
1583#
1584includedep $(PATH_TARGET)/UICommonComWrapperFiles.dep
1585UICommon_BLDDIRS += $(UICommon_0_OUTDIR)/include
1586UICommon_INTERMEDIATES += $(UICommon_0_OUTDIR)/include/COMWrappers
1587UICommon_SOURCES += $(UICommon_0_OUTDIR)/include/COMWrappers.cpp
1588UICommon_CLEAN += $(wildcard $(UICommon_0_OUTDIR)/include/*) $(PATH_TARGET)/UICommonComWrapperFiles.dep
1589
1590## @todo kmk doesn't remake optional outputs when they are missing...
1591$$(UICommon_0_OUTDIR)/include/COMWrappers \
1592+ $(PATH_TARGET)/UICommonComWrapperFiles.dep \
1593+| $(if-expr defined(UICommon_VBOX_COMWRAPPERS) \
1594, $(UICommon_VBOX_COMWRAPPERS) \
1595, $$(UICommon_0_OUTDIR)/include/COMEnums.h \
1596 $$(UICommon_0_OUTDIR)/include/COMWrappers.cpp \
1597): \
1598 $(VBOX_XIDL_FILE) \
1599 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl \
1600 $(VBOX_FILESPLIT) \
1601 | $$(dir $$@)
1602 $(call MSG_GENERATE,UICommon,$<,$@)
1603 $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/UICommonComWrapperFiles.dep"
1604 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1605 $(VBOX_VIRTUALBOX_SRC)/src/globals/COMWrappers.xsl $<
1606 $(QUIET)$(VBOX_FILESPLIT) $@ $(UICommon_0_OUTDIR)/include \
1607 $(PATH_TARGET)/UICommonComWrapperFiles.dep UICommon_VBOX_COMWRAPPERS
1608 $(APPEND) "$@"
1609
1610# alias for generating the COM Wrappers file.
1611testwrappers:: $$(UICommon_0_OUTDIR)/include/COMWrappers
1612
1613
1614#
1615# Generate qrc file with branded icons.
1616#
1617VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX_OUT_DIR)
1618VirtualBox_CLEAN += $(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc
1619$(VBOX_VIRTUALBOX_OUT_DIR)/VirtualBoxBrand.qrc: \
1620 $(VBOX_VIRTUALBOX_SRC)/VirtualBoxBrand.qrc \
1621 $(PATH_ROOT)/Config.kmk \
1622 | $$(dir $$@)
1623 $(call MSG_GENERATE,VirtualBox,$<,$@)
1624 $(QUIET)$(SED) \
1625 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
1626 -e 's;@VBOX_ABOUT_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_X2_PNG);g' \
1627 -e 's;@VBOX_ABOUT_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_X3_PNG);g' \
1628 -e 's;@VBOX_ABOUT_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_X4_PNG);g' \
1629 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
1630 -e 's;@VBOX_ABOUT_16PX_X2_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X2_PNG);g' \
1631 -e 's;@VBOX_ABOUT_16PX_X3_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X3_PNG);g' \
1632 -e 's;@VBOX_ABOUT_16PX_X4_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_X4_PNG);g' \
1633 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
1634 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
1635 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
1636 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
1637 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
1638 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
1639 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
1640 -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
1641 --output $@ \
1642 $<
1643
1644
1645#
1646# Precompiled header
1647# win.amd64 without: kmk_time: 3m51.962058s
1648# win.amd64 with: kmk_time: 2m23.336252s
1649# linux.amd64 without: time: real 1m03.719s user 26m26.766s sys 2m03.526s
1650# linux.amd64 with: time: real 0m42.650s user 14m46.332s sys 1m28.463s
1651#
1652ifdef VBOX_WITH_PRECOMPILED_HEADERS
1653 if1of ($(KBUILD_TARGET),win)
1654 VirtualBox_USES += vccprecomp
1655 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1656
1657 VirtualBoxVM_USES += vccprecomp
1658 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1659
1660 UICommon_USES += vccprecomp
1661 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
1662
1663 else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
1664 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
1665 UICommon_USES += gccprecomp
1666 UICommon_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1667 #UICommon_CXXFLAGS.linux += -H
1668
1669 VirtualBox_USES += gccprecomp
1670 VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1671 #VirtualBox_CXXFLAGS.linux += -H
1672
1673 VirtualBoxVM_USES += gccprecomp
1674 VirtualBoxVM_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_gcc.h
1675 #VirtualBoxVM_CXXFLAGS.linux += -H
1676
1677 # GCC precompiled headers seems to work more efficiently when #pragma once is involved.
1678 # So, we've cooked our own camel cased qt wrapper headers with #pragma once inside.
1679 VBOX_GUI_INC_DIRS <= precomptricks
1680 endif
1681 endif
1682endif
1683
1684ifeq ($(KBUILD_TARGET),win)
1685#
1686# On Windows we'll have to generate/edit part of the resource file.
1687# The IDI_ICON1 name is Qt specific.
1688#
1689src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
1690src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1691src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1692src/platform/win/VirtualBoxVM.rc_INCS = $(VirtualBox_0_OUTDIR)
1693src/platform/win/VirtualBoxVM.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1694src/platform/win/VirtualBoxVM.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
1695
1696$$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
1697 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
1698
1699endif # win
1700
1701
1702#
1703# Unset everything that was loaded from VBoxUI.pro.
1704#
1705FORMS :=
1706TRANSLATIONS :=
1707
1708
1709ifeq ($(KBUILD_TARGET),darwin)
1710#
1711# Create directories for each approved language or the application
1712# menu won't be translated.
1713#
1714INSTALLS += VirtualBox.lproj
1715VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
1716VirtualBox.lproj_MODE = 755
1717VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
1718
1719#
1720# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
1721# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
1722#
1723INSTALLS += VirtualBox.app
1724VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
1725VirtualBox.app_MODE = 644
1726VirtualBox.app_SOURCES = \
1727 src/platform/darwin/PkgInfo \
1728 $(VirtualBox.app_0_OUTDIR)/Info.plist \
1729 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
1730 $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
1731 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
1732 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
1733 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
1734 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
1735 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
1736 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
1737 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
1738 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
1739
1740 # Qt5 requires qt.conf on Mac OS X:
1741 VirtualBox.app_SOURCES += \
1742 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
1743
1744 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1745 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
1746 $(QUIET)$(RM) -f $@
1747 $(QUIET)$(SED) \
1748 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1749 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1750 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1751 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1752 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1753 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1754 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1755 $< > $@
1756
1757 $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
1758 $(QUIET)$(RM) -f $@
1759 $(QUIET)$(APPEND) $@ "[Paths]"
1760 ifndef VBOX_WITH_HARDENING # Not necessary and will screwup copying files elsewhere to test.
1761 $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
1762 endif
1763
1764 INSTALLS += VirtualBoxVM.app
1765 VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
1766 VirtualBoxVM.app_MODE = 644
1767 VirtualBoxVM.app_SOURCES = \
1768 src/platform/darwin/VM-PkgInfo=>PkgInfo \
1769 $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
1770 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1771 VirtualBoxVM.app_SYMLINKS = \
1772 MacOS=>../../../MacOS/
1773
1774 $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1775 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
1776 $(QUIET)$(RM) -f $@
1777 $(QUIET)$(SED) \
1778 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1779 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1780 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1781 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1782 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1783 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1784 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1785 --output $@ $<
1786
1787 PROGRAMS += vmstarter
1788 vmstarter_TEMPLATE = VBOXR3EXE
1789 ifdef VBOX_WITH_NEW_XCODE
1790 vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
1791 else
1792 vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
1793 endif
1794 vmstarter_LDFLAGS += -framework AppKit
1795 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
1796 vmstarter_INST = $(INST_BIN)vmstarter
1797
1798 INSTALLS += vmstarter.app
1799 vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
1800 vmstarter.app_MODE = 644
1801 vmstarter.app_SOURCES = \
1802 src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
1803 $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
1804 $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
1805 vmstarter.app_SYMLINKS = \
1806 MacOS=>../../../MacOS \
1807
1808 $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
1809 $(call MSG_GENERATE,vmstarter.app,$<,$@)
1810 $(QUIET)$(RM) -f $@
1811 $(QUIET)$(SED) \
1812 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
1813 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
1814 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
1815 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
1816 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
1817 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
1818 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
1819 --output $@ $<
1820endif # darwin
1821
1822#
1823# App for testing GL support
1824#
1825if defined(VBOX_WITH_VIDEOHWACCEL)
1826 if1of ($(KBUILD_TARGET), win linux freebsd)
1827 LIBRARIES += VBoxOGL2D
1828 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
1829 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
1830 VBoxOGL2D_QT_MODULES += OpenGL
1831 VBoxOGL2D_SOURCES = \
1832 src/VBoxGLSupportInfo.cpp
1833 VBoxOGL2D_INCS = include
1834 endif
1835endif
1836
1837
1838#
1839# Testcase for the darwin keyboard routines.
1840#
1841ifdef VBOX_WITH_TESTCASES
1842 PROGRAMS.darwin += tstDarwinKeyboard
1843 tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
1844 tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
1845 tstDarwinKeyboard_INCS = \
1846 $(VBOX_GUI_INC_DIRS)
1847 tstDarwinKeyboard_SOURCES = \
1848 src/platform/darwin/tstDarwinKeyboard.cpp \
1849 src/platform/darwin/DarwinKeyboard.cpp
1850 tstDarwinKeyboard_SOURCES.amd64 = \
1851 src/platform/darwin/CocoaEventHelper.mm
1852 tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
1853 tstDarwinKeyboard_LIBS = \
1854 $(LIB_RUNTIME)
1855 tstDarwinKeyboard_LIBS += $(PATH_STAGE_DLL)/UICommon$(VBOX_SUFF_DLL)
1856endif
1857
1858
1859#
1860# Testcase for SSL certificate downloading.
1861#
1862if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
1863 PROGRAMS += tstSSLCertDownloads
1864 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
1865 tstSSLCertDownloads_USES = qt5
1866 tstSSLCertDownloads_QTTOOL = QT5
1867 tstSSLCertDownloads_QT_MODULES = Core Gui
1868 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
1869 tstSSLCertDownloads_INCS = \
1870 $(VBOX_GUI_INC_DIRS)
1871 tstSSLCertDownloads_SOURCES = \
1872 src/net/tstSSLCertDownloads.cpp
1873endif
1874
1875
1876#
1877# Doxygen documentation.
1878#
1879QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
1880BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
1881OTHER_CLEAN += \
1882 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
1883 $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep \
1884 $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1885
1886QTGUI_DOXYFILE_INPUT_DIRS := \
1887 $(addprefix $(PATH_SUB_CURRENT)/src/, \
1888 converter \
1889 extensions \
1890 extensions/graphics \
1891 extradata \
1892 globals \
1893 manager \
1894 manager/chooser \
1895 manager/details \
1896 manager/tools \
1897 manager \
1898 manager \
1899 medium \
1900 net \
1901 objects \
1902 platform \
1903 platform/darwin \
1904 platform/os2 \
1905 platform/win \
1906 platform/x11 \
1907 runtime \
1908 runtime/fullscreen \
1909 runtime/information \
1910 runtime/guestctrl \
1911 runtime/normal \
1912 runtime/scale \
1913 runtime/seamless \
1914 selector \
1915 selector/graphics \
1916 selector/graphics/chooser \
1917 selector/graphics/details \
1918 settings \
1919 settings/global \
1920 settings/machine \
1921 widgets \
1922 widgets/graphics \
1923 wizards \
1924 wizards/clonevd \
1925 wizards/clonevm \
1926 wizards/exportappliance \
1927 wizards/firstrun \
1928 wizards/importappliance \
1929 wizards/newcloudvm \
1930 wizards/newvd \
1931 wizards/newvm)
1932
1933QTGUI_DOXYFILE_INPUT := \
1934 $(foreach dir, $(QTGUI_DOXYFILE_INPUT_DIRS), \
1935 $(sort $(wildcard $(dir)/*.h)) \
1936 $(sort $(wildcard $(dir)/*.cpp $(dir)/*.m $(dir)/*.mm)))
1937
1938includedep $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui.dep
1939
1940# Generate the Doxyfile
1941$(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
1942 $(PATH_SUB_CURRENT)/Doxyfile \
1943 $(PATH_SUB_CURRENT)/Makefile.kmk \
1944 $(comp-vars QTGUI_DOXYFILE_INPUT,DOXYGEN_QTGUI_INPUT_PREV,FORCE) \
1945 $(comp-vars QTGUI_DOXYFILE_OUTPUT,DOXYGEN_QTGUI_OUTPUT_PREV,FORCE) \
1946 | $$(dir $$@)
1947 $(QUIET)$(RM) -f $@ [email protected] [email protected]
1948 $(QUIET)$(CP) -f $< [email protected]
1949 $(QUIET)$(APPEND) [email protected]
1950 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
1951 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
1952 $(QUIET)$(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
1953 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1954 $(QUIET)$(APPEND) [email protected]
1955 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(QTGUI_DOXYFILE_INPUT),\$(NLTAB)$(x))'
1956 $(QUIET)$(APPEND) [email protected]
1957 $(QUIET)$(MV) -f [email protected] $@
1958 @$(APPEND) [email protected] "DOXYGEN_QTGUI_OUTPUT_PREV = $(QTGUI_DOXYFILE_OUTPUT)"
1959 @$(APPEND) [email protected] "DOXYGEN_QTGUI_INPUT_PREV = $(QTGUI_DOXYFILE_INPUT)"
1960
1961# Do the actual job.
1962$(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) \
1963 | $(QTGUI_DOXYFILE_OUTPUT)/
1964 $(call MSG_L1,doxygen qtgui)
1965 $(QUIET)$(RM) -f $@
1966 $(QUIET)$(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
1967 doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
1968 $(APPEND) $@
1969
1970# aliases
1971docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1972if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1973docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
1974endif
1975
1976
1977# Commit the magic.
1978# (note: before custom rules that make usage of generated variables!).
1979include $(FILE_KBUILD_SUB_FOOTER)
1980
1981
1982#
1983# Update all known NLS translation (.ts) files in the nls/ subdirectory.
1984#
1985# NOTE: This target is intended to be run only by the GUI maintainer shortly
1986# before a new product release. VirtualBox_xx_YY.ts is a template for new
1987# languages and should never be actually translated or installed.
1988#
1989# Use the checknls target for checking again common mistakes done by the
1990# translators.
1991#
1992# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
1993# lupdate call
1994#
1995#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
1996checknls::
1997 # Check for missing :/ in image paths
1998 grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
1999
2000updatenls:: makeallnls nls/VirtualBox_en.ts
2001
2002makeallnls:: \
2003 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2004 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2005 $(call MSG_L1,lupdate all languages (nls/*.ts))
2006 $(QUIET)$(TOOL_QT5_LUPDATE) \
2007 $^ \
2008 -ts \
2009 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
2010 nls/VirtualBox_xx_YY.ts
2011
2012# Create the English translation file. This is something special cause it will
2013# contain the plural forms only.
2014nls/VirtualBox_en.ts: \
2015 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
2016 $(filter-out %.qrc,$(VirtualBox_VBOX_ALL_NLS_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
2017 $(call MSG_L1,lupdate $@)
2018 $(QUIET)$(TOOL_QT5_LUPDATE) \
2019 $^ \
2020 -ts \
2021 $@
2022 $(QUIET)$(SED) -n -i -e \
2023 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
2024 $@
2025
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