1 | # $Id: Makefile.kmk 64067 2016-09-28 09:50:03Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox Qt GUI.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 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 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Globals.
|
---|
23 | #
|
---|
24 | VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
|
---|
25 | VBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
|
---|
26 |
|
---|
27 | # Show the update notifier dialog during startup. If this setting is disabled
|
---|
28 | # the user can still update using the menu if desired.
|
---|
29 | ifndef VBOX_OSE
|
---|
30 | VBOX_WITH_UPDATE_REQUEST := 1
|
---|
31 | endif
|
---|
32 |
|
---|
33 | #
|
---|
34 | # The targets.
|
---|
35 | #
|
---|
36 | ifdef VBOX_WITH_HARDENING
|
---|
37 | PROGRAMS += VirtualBoxHardened
|
---|
38 | PROGRAMS.darwin += VirtualBoxVM
|
---|
39 | DLLS += VirtualBox
|
---|
40 | else
|
---|
41 | PROGRAMS += VirtualBox
|
---|
42 | endif
|
---|
43 |
|
---|
44 | INSTALLS += VirtualBox.nls
|
---|
45 |
|
---|
46 |
|
---|
47 | #
|
---|
48 | # Include the language lists.
|
---|
49 | #
|
---|
50 | include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
|
---|
51 |
|
---|
52 |
|
---|
53 | #
|
---|
54 | # Hardened VirtualBox.
|
---|
55 | #
|
---|
56 | VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
|
---|
57 | VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
|
---|
58 | VirtualBoxHardened_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
|
---|
59 | VirtualBoxHardened_NAME = VirtualBox
|
---|
60 | VirtualBoxHardened_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
|
---|
61 | src/platform/win/VirtualBoxHardened.rc_INCS = $(VirtualBox_0_OUTDIR)
|
---|
62 | src/platform/win/VirtualBoxHardened.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
63 |
|
---|
64 |
|
---|
65 | #
|
---|
66 | # Hardened VirtualBoxVM.
|
---|
67 | #
|
---|
68 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
69 | VirtualBoxVM_EXTENDS = VirtualBoxHardened
|
---|
70 | VirtualBoxVM_NAME = VirtualBoxVM
|
---|
71 | VirtualBoxVM_DEFS = $(VirtualBoxHardened_DEFS) VIRTUALBOX_VM
|
---|
72 | endif
|
---|
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 | #
|
---|
82 | SAVED_TEMPLATE := $(TEMPLATE)
|
---|
83 | include $(PATH_SUB_CURRENT)/VBoxUI.pro
|
---|
84 | TEMPLATE := $(SAVED_TEMPLATE)
|
---|
85 | SAVED_TEMPLATE :=
|
---|
86 | LANGUAGE :=
|
---|
87 | IMAGES :=
|
---|
88 | # FORMS and TRANSLATIONS are reset further down.
|
---|
89 |
|
---|
90 |
|
---|
91 | #
|
---|
92 | # VirtualBox - The GUI program.
|
---|
93 | #
|
---|
94 | ifndef VBOX_WITH_QTGUI_V5
|
---|
95 | USES += qt4
|
---|
96 | else # VBOX_WITH_QTGUI_V5
|
---|
97 | USES += qt5
|
---|
98 | endif # VBOX_WITH_QTGUI_V5
|
---|
99 | VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
|
---|
100 | VirtualBox_NAME = VirtualBox
|
---|
101 | ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
|
---|
102 | VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
|
---|
103 | endif
|
---|
104 | VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
105 |
|
---|
106 | VirtualBox_DEFS =
|
---|
107 | VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
|
---|
108 | VirtualBox_DEFS.linux = VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
|
---|
109 | VirtualBox_DEFS.solaris = VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
|
---|
110 | VirtualBox_DEFS.freebsd = VBOX_WITH_MASKED_SEAMLESS VBOX_WITH_TRANSLUCENT_SEAMLESS
|
---|
111 | VirtualBox_DEFS.darwin = VBOX_WITH_TRANSLUCENT_SEAMLESS # VBOX_WITH_MASKED_SEAMLESS
|
---|
112 | VirtualBox_DEFS.win = VBOX_WITH_MASKED_SEAMLESS # VBOX_WITH_TRANSLUCENT_SEAMLESS
|
---|
113 | VirtualBox_DEFS.win += UNICODE QT_DLL
|
---|
114 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
115 | VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
|
---|
116 | endif
|
---|
117 | VirtualBox_DEFS.linux += VBOX_WS_X11
|
---|
118 | VirtualBox_DEFS.solaris += VBOX_WS_X11
|
---|
119 | VirtualBox_DEFS.freebsd += VBOX_WS_X11
|
---|
120 | VirtualBox_DEFS.darwin += VBOX_WS_MAC
|
---|
121 | VirtualBox_DEFS.win += VBOX_WS_WIN
|
---|
122 | VirtualBox_DEFS += \
|
---|
123 | $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
|
---|
124 | $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
|
---|
125 | $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
|
---|
126 | $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
|
---|
127 | $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
|
---|
128 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
|
---|
129 | $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
|
---|
130 | $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
|
---|
131 | $(if $(VBOX_WITH_UDPTUNNEL),VBOX_WITH_UDPTUNNEL) \
|
---|
132 | $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
|
---|
133 | $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI) \
|
---|
134 | $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
|
---|
135 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
|
---|
136 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH) \
|
---|
137 | $(if $(VBOX_WITH_DRAG_AND_DROP_PROMISES),VBOX_WITH_DRAG_AND_DROP_PROMISES) \
|
---|
138 | $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
|
---|
139 | $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
|
---|
140 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM) \
|
---|
141 | $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
|
---|
142 | $(if $(VBOX_GUI_WITH_HIDPI),VBOX_GUI_WITH_HIDPI) \
|
---|
143 | $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
|
---|
144 | $(if $(VBOX_GUI_WITH_KEYS_RESET_HANDLER),VBOX_GUI_WITH_KEYS_RESET_HANDLER) \
|
---|
145 | $(if $(VBOX_GUI_WITH_CUSTOMIZATIONS1),VBOX_GUI_WITH_CUSTOMIZATIONS1) \
|
---|
146 | $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE)
|
---|
147 | ifdef VBOX_WITH_DEBUGGER_GUI
|
---|
148 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
|
---|
149 | if "$(KBUILD_TYPE)" != "release"
|
---|
150 | VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
|
---|
151 | endif
|
---|
152 | endif
|
---|
153 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
154 | VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
|
---|
155 | VBOX_GUI_USE_QGL
|
---|
156 | else ifdef VBOX_GUI_USE_QGL
|
---|
157 | VirtualBox_DEFS += VBOX_GUI_USE_QGL
|
---|
158 | endif
|
---|
159 | ifdef VBOX_WITH_LIBCURL
|
---|
160 | VirtualBox_DEFS += VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
161 | VBOX_GUI_WITH_NETWORK_MANAGER := 1
|
---|
162 | endif
|
---|
163 | ifneq ($(KBUILD_TYPE),release)
|
---|
164 | VirtualBox_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
|
---|
165 | endif
|
---|
166 |
|
---|
167 |
|
---|
168 |
|
---|
169 | VBOX_GUI_INC_DIRS = \
|
---|
170 | ./src \
|
---|
171 | ./src/converter \
|
---|
172 | ./src/extensions \
|
---|
173 | ./src/extensions/graphics \
|
---|
174 | ./src/extradata \
|
---|
175 | ./src/globals \
|
---|
176 | ./src/medium \
|
---|
177 | ./src/objects \
|
---|
178 | ./src/platform \
|
---|
179 | ./src/platform/darwin \
|
---|
180 | ./src/platform/win \
|
---|
181 | ./src/platform/x11 \
|
---|
182 | ./src/runtime \
|
---|
183 | ./src/runtime/fullscreen \
|
---|
184 | ./src/runtime/normal \
|
---|
185 | ./src/runtime/scale \
|
---|
186 | ./src/runtime/seamless \
|
---|
187 | ./src/runtime/information \
|
---|
188 | ./src/selector \
|
---|
189 | ./src/selector/graphics/chooser \
|
---|
190 | ./src/selector/graphics/details \
|
---|
191 | ./src/settings \
|
---|
192 | ./src/settings/global \
|
---|
193 | ./src/settings/machine \
|
---|
194 | ./src/widgets \
|
---|
195 | ./src/widgets/graphics \
|
---|
196 | ./src/wizards \
|
---|
197 | ./src/wizards/newvm \
|
---|
198 | ./src/wizards/newvd \
|
---|
199 | ./src/wizards/clonevm \
|
---|
200 | ./src/wizards/clonevd \
|
---|
201 | ./src/wizards/exportappliance \
|
---|
202 | ./src/wizards/importappliance \
|
---|
203 | ./src/wizards/firstrun
|
---|
204 |
|
---|
205 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
206 | VBOX_GUI_INC_DIRS += \
|
---|
207 | ./src/net
|
---|
208 | endif
|
---|
209 |
|
---|
210 | VirtualBox_INCS = \
|
---|
211 | $(VBOX_GUI_INC_DIRS) \
|
---|
212 | $(VirtualBox_0_OUTDIR)/include
|
---|
213 |
|
---|
214 | # Necessary for the hdd backend enumeration
|
---|
215 | VirtualBox_LIBS = $(LIB_DDU)
|
---|
216 |
|
---|
217 | if1of ($(KBUILD_TARGET), linux netbsd openbsd)
|
---|
218 | VirtualBox_LIBS += dl
|
---|
219 | endif
|
---|
220 |
|
---|
221 | # This library is required for multi-monitor support
|
---|
222 | VirtualBox_LIBS.linux += Xinerama
|
---|
223 | VirtualBox_LIBS.solaris += Xinerama
|
---|
224 | VirtualBox_LIBS.freebsd += Xinerama
|
---|
225 |
|
---|
226 | ifdef VBOX_WITH_QTGUI_V5
|
---|
227 | # No Qt5 without Xcb under X11:
|
---|
228 | VirtualBox_LIBS.linux += xcb
|
---|
229 | VirtualBox_LIBS.solaris += xcb
|
---|
230 | VirtualBox_LIBS.freebsd += xcb
|
---|
231 | endif # VBOX_WITH_QTGUI_V5
|
---|
232 |
|
---|
233 | ifneq ($(KBUILD_TARGET),win)
|
---|
234 | VirtualBox_CXXFLAGS += -Wno-switch
|
---|
235 | endif
|
---|
236 |
|
---|
237 | ## @todo we're using a number of deprecated APIs, please fix and remove these!
|
---|
238 | ifdef VBOX_WITH_NEW_XCODE
|
---|
239 | VirtualBox_CXXFLAGS.darwin += -Wno-error=deprecated-declarations
|
---|
240 | VirtualBox_OBJCFLAGS.darwin += -Wno-error=deprecated-declarations
|
---|
241 | VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
|
---|
242 | else
|
---|
243 | VirtualBox_CXXFLAGS.darwin += -Wno-deprecated-declarations
|
---|
244 | VirtualBox_OBJCFLAGS.darwin += -Wno-deprecated-declarations
|
---|
245 | VirtualBox_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
|
---|
246 | endif
|
---|
247 |
|
---|
248 | ifeq ($(KBUILD_TYPE),release)
|
---|
249 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
|
---|
250 | else
|
---|
251 | VirtualBox_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
|
---|
252 | VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
|
---|
253 | endif
|
---|
254 |
|
---|
255 | # delay loading causes VM process crashes due to the misbehave of the current QtOpenGLVBox4.dll we use
|
---|
256 | # (i.e. it does not create the ogl context properly when loaded this way)
|
---|
257 | #
|
---|
258 | # @todo: investigate a better work-around and enable back delay loading since it is needed to avoid
|
---|
259 | # crashes caused by buggy ogl drivers for the case 2D is not used (i.e. no ogl stuff loaded)
|
---|
260 | #if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
261 | # VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
|
---|
262 | #endif
|
---|
263 |
|
---|
264 | VirtualBox_LDFLAGS.darwin = \
|
---|
265 | -framework AppKit -framework Carbon -framework IOKit \
|
---|
266 | $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
|
---|
267 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
268 | VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
|
---|
269 | endif
|
---|
270 |
|
---|
271 | VirtualBox_LIBS.win = \
|
---|
272 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Htmlhelp.Lib \
|
---|
273 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
|
---|
274 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
275 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
276 | VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
|
---|
277 | endif
|
---|
278 |
|
---|
279 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
280 | VirtualBox_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
281 | VirtualBox_LIBS.solaris += GL
|
---|
282 | VirtualBox_LIBS.linux += GL
|
---|
283 | VirtualBox_LIBS.freebsd += GL
|
---|
284 | VirtualBox_LDFLAGS.darwin += -framework OpenGL
|
---|
285 | endif
|
---|
286 | ifdef VBOX_WITH_CROGL
|
---|
287 | VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
|
---|
288 | endif
|
---|
289 |
|
---|
290 |
|
---|
291 | # Headers containing definitions of classes that use the Q_OBJECT macro.
|
---|
292 | VirtualBox_QT_MOCHDRS = \
|
---|
293 | src/UIMediumTypeChangeDialog.h \
|
---|
294 | src/VBoxAboutDlg.h \
|
---|
295 | src/VBoxGlobalSettings.h \
|
---|
296 | src/VBoxLicenseViewer.h \
|
---|
297 | src/VBoxSnapshotDetailsDlg.h \
|
---|
298 | src/VBoxTakeSnapshotDlg.h \
|
---|
299 | src/UIVMInfoDialog.h \
|
---|
300 | src/UIVMLogViewer.h \
|
---|
301 | src/extensions/QIAdvancedSlider.h \
|
---|
302 | src/extensions/QIArrowButtonPress.h \
|
---|
303 | src/extensions/QIArrowButtonSwitch.h \
|
---|
304 | src/extensions/QIArrowSplitter.h \
|
---|
305 | src/extensions/QIDialog.h \
|
---|
306 | src/extensions/QIFileDialog.h \
|
---|
307 | src/extensions/QILabel.h \
|
---|
308 | src/extensions/QILabelSeparator.h \
|
---|
309 | src/extensions/QIListView.h \
|
---|
310 | src/extensions/QIMainDialog.h \
|
---|
311 | src/extensions/QIMainWindow.h \
|
---|
312 | src/extensions/QIMenu.h \
|
---|
313 | src/extensions/QIMessageBox.h \
|
---|
314 | src/extensions/QIProcess.h \
|
---|
315 | src/extensions/QIRichTextLabel.h \
|
---|
316 | src/extensions/QIRichToolButton.h \
|
---|
317 | src/extensions/QISplitter.h \
|
---|
318 | src/extensions/QIStatusBar.h \
|
---|
319 | src/extensions/QIStatusBarIndicator.h \
|
---|
320 | src/extensions/QIStyledItemDelegate.h \
|
---|
321 | src/extensions/QITabWidget.h \
|
---|
322 | src/extensions/QITableView.h \
|
---|
323 | src/extensions/QIToolButton.h \
|
---|
324 | src/extensions/QITreeView.h \
|
---|
325 | src/extensions/QITreeWidget.h \
|
---|
326 | src/extensions/QIWidgetValidator.h \
|
---|
327 | src/extensions/QIAdvancedToolBar.h \
|
---|
328 | src/extensions/graphics/QIGraphicsView.h \
|
---|
329 | src/extensions/graphics/QIGraphicsWidget.h \
|
---|
330 | src/extradata/UIExtraDataDefs.h \
|
---|
331 | src/extradata/UIExtraDataManager.h \
|
---|
332 | src/globals/UIActionPool.h \
|
---|
333 | src/globals/UIAnimationFramework.h \
|
---|
334 | src/globals/UIDesktopWidgetWatchdog.h \
|
---|
335 | src/globals/UIMainEventListener.h \
|
---|
336 | src/globals/UIMessageCenter.h \
|
---|
337 | src/globals/UIModalWindowManager.h \
|
---|
338 | src/globals/UIPopupCenter.h \
|
---|
339 | src/globals/UIShortcutPool.h \
|
---|
340 | src/globals/UIThreadPool.h \
|
---|
341 | src/globals/VBoxGlobal.h \
|
---|
342 | src/globals/VBoxUtils.h \
|
---|
343 | src/medium/UIMediumEnumerator.h \
|
---|
344 | src/medium/UIMediumManager.h \
|
---|
345 | src/runtime/UIActionPoolRuntime.h \
|
---|
346 | src/runtime/UIAddDiskEncryptionPasswordDialog.h \
|
---|
347 | src/runtime/UIConsoleEventHandler.h \
|
---|
348 | src/runtime/UIFrameBuffer.h \
|
---|
349 | src/runtime/UIIndicatorsPool.h \
|
---|
350 | src/runtime/UIKeyboardHandler.h \
|
---|
351 | src/runtime/UIMachine.h \
|
---|
352 | src/runtime/UIMachineLogic.h \
|
---|
353 | src/runtime/UIMachineWindow.h \
|
---|
354 | src/runtime/UIMachineView.h \
|
---|
355 | src/runtime/UIMenuBarEditorWindow.h \
|
---|
356 | src/runtime/UIMouseHandler.h \
|
---|
357 | src/runtime/UIMultiScreenLayout.h \
|
---|
358 | src/runtime/UISession.h \
|
---|
359 | src/runtime/UISlidingToolBar.h \
|
---|
360 | src/runtime/UIStatusBarEditorWindow.h \
|
---|
361 | src/runtime/UIVMCloseDialog.h \
|
---|
362 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
|
---|
363 | src/runtime/fullscreen/UIMachineLogicFullscreen.h \
|
---|
364 | src/runtime/fullscreen/UIMachineViewFullscreen.h \
|
---|
365 | src/runtime/fullscreen/UIMachineWindowFullscreen.h \
|
---|
366 | src/runtime/normal/UIKeyboardHandlerNormal.h \
|
---|
367 | src/runtime/normal/UIMachineLogicNormal.h \
|
---|
368 | src/runtime/normal/UIMachineViewNormal.h \
|
---|
369 | src/runtime/normal/UIMachineWindowNormal.h \
|
---|
370 | src/runtime/scale/UIKeyboardHandlerScale.h \
|
---|
371 | src/runtime/scale/UIMachineLogicScale.h \
|
---|
372 | src/runtime/scale/UIMachineViewScale.h \
|
---|
373 | src/runtime/scale/UIMachineWindowScale.h \
|
---|
374 | src/runtime/seamless/UIKeyboardHandlerSeamless.h \
|
---|
375 | src/runtime/seamless/UIMachineLogicSeamless.h \
|
---|
376 | src/runtime/seamless/UIMachineViewSeamless.h \
|
---|
377 | src/runtime/seamless/UIMachineWindowSeamless.h \
|
---|
378 | src/selector/UIActionPoolSelector.h \
|
---|
379 | src/selector/UIDesktopPane.h \
|
---|
380 | src/selector/UIVMItem.h \
|
---|
381 | src/selector/UIVirtualBoxEventHandler.h \
|
---|
382 | src/selector/UISelectorWindow.h \
|
---|
383 | src/selector/UISnapshotPane.h \
|
---|
384 | src/selector/graphics/chooser/UIGChooser.h \
|
---|
385 | src/selector/graphics/chooser/UIGChooserModel.h \
|
---|
386 | src/selector/graphics/chooser/UIGChooserView.h \
|
---|
387 | src/selector/graphics/chooser/UIGChooserHandlerMouse.h \
|
---|
388 | src/selector/graphics/chooser/UIGChooserHandlerKeyboard.h \
|
---|
389 | src/selector/graphics/chooser/UIGChooserItem.h \
|
---|
390 | src/selector/graphics/chooser/UIGChooserItemGroup.h \
|
---|
391 | src/selector/graphics/chooser/UIGChooserItemMachine.h \
|
---|
392 | src/selector/graphics/details/UIGDetails.h \
|
---|
393 | src/selector/graphics/details/UIGDetailsModel.h \
|
---|
394 | src/selector/graphics/details/UIGDetailsView.h \
|
---|
395 | src/selector/graphics/details/UIGDetailsItem.h \
|
---|
396 | src/selector/graphics/details/UIGDetailsGroup.h \
|
---|
397 | src/selector/graphics/details/UIGDetailsSet.h \
|
---|
398 | src/selector/graphics/details/UIGDetailsElement.h \
|
---|
399 | src/selector/graphics/details/UIGDetailsElements.h \
|
---|
400 | src/selector/graphics/details/UIGMachinePreview.h \
|
---|
401 | src/settings/UISettingsDialog.h \
|
---|
402 | src/settings/UISettingsDialogSpecific.h \
|
---|
403 | src/settings/UISettingsPage.h \
|
---|
404 | src/settings/UISettingsSelector.h \
|
---|
405 | src/settings/UISettingsSerializer.h \
|
---|
406 | src/settings/global/UIGlobalSettingsExtension.h \
|
---|
407 | src/settings/global/UIGlobalSettingsGeneral.h \
|
---|
408 | src/settings/global/UIGlobalSettingsInput.h \
|
---|
409 | src/settings/global/UIGlobalSettingsLanguage.h \
|
---|
410 | src/settings/global/UIGlobalSettingsDisplay.h \
|
---|
411 | src/settings/global/UIGlobalSettingsNetwork.h \
|
---|
412 | src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h \
|
---|
413 | src/settings/global/UIGlobalSettingsNetworkDetailsHost.h \
|
---|
414 | src/settings/global/UIGlobalSettingsPortForwardingDlg.h \
|
---|
415 | src/settings/machine/UIMachineSettingsAudio.h \
|
---|
416 | src/settings/machine/UIMachineSettingsDisplay.h \
|
---|
417 | src/settings/machine/UIMachineSettingsGeneral.h \
|
---|
418 | src/settings/machine/UIMachineSettingsInterface.h \
|
---|
419 | src/settings/machine/UIMachineSettingsNetwork.h \
|
---|
420 | src/settings/machine/UIMachineSettingsParallel.h \
|
---|
421 | src/settings/machine/UIMachineSettingsPortForwardingDlg.h \
|
---|
422 | src/settings/machine/UIMachineSettingsSF.h \
|
---|
423 | src/settings/machine/UIMachineSettingsSFDetails.h \
|
---|
424 | src/settings/machine/UIMachineSettingsSerial.h \
|
---|
425 | src/settings/machine/UIMachineSettingsStorage.h \
|
---|
426 | src/settings/machine/UIMachineSettingsSystem.h \
|
---|
427 | src/settings/machine/UIMachineSettingsUSB.h \
|
---|
428 | src/settings/machine/UIMachineSettingsUSBFilterDetails.h \
|
---|
429 | src/widgets/UIApplianceEditorWidget.h \
|
---|
430 | src/widgets/UIApplianceExportEditorWidget.h \
|
---|
431 | src/widgets/UIApplianceImportEditorWidget.h \
|
---|
432 | src/widgets/UIBar.h \
|
---|
433 | src/widgets/UIBootTable.h \
|
---|
434 | src/widgets/UIFilePathSelector.h \
|
---|
435 | src/widgets/UIEmptyFilePathSelector.h \
|
---|
436 | src/widgets/UIHostComboEditor.h \
|
---|
437 | src/widgets/UIHotKeyEditor.h \
|
---|
438 | src/widgets/UILineTextEdit.h \
|
---|
439 | src/widgets/UIMenuBar.h \
|
---|
440 | src/widgets/UIPopupBox.h \
|
---|
441 | src/widgets/UIPopupPane.h \
|
---|
442 | src/widgets/UIPopupPaneTextPane.h \
|
---|
443 | src/widgets/UIPopupPaneButtonPane.h \
|
---|
444 | src/widgets/UIPopupStack.h \
|
---|
445 | src/widgets/UIPopupStackViewport.h \
|
---|
446 | src/widgets/UIPortForwardingTable.h \
|
---|
447 | src/widgets/UIProgressDialog.h \
|
---|
448 | src/widgets/UISpacerWidgets.h \
|
---|
449 | src/widgets/UISpecialControls.h \
|
---|
450 | src/widgets/UIToolBar.h \
|
---|
451 | src/widgets/VBoxMediaComboBox.h \
|
---|
452 | src/widgets/UIMiniToolBar.h \
|
---|
453 | src/widgets/VBoxOSTypeSelectorButton.h \
|
---|
454 | src/widgets/UINameAndSystemEditor.h \
|
---|
455 | src/widgets/UIWarningPane.h \
|
---|
456 | src/widgets/UIFilmContainer.h \
|
---|
457 | src/widgets/graphics/UIGraphicsButton.h \
|
---|
458 | src/widgets/graphics/UIGraphicsRotatorButton.h \
|
---|
459 | src/widgets/graphics/UIGraphicsZoomButton.h \
|
---|
460 | src/widgets/graphics/UIGraphicsToolBar.h \
|
---|
461 | src/widgets/graphics/UIGraphicsTextPane.h \
|
---|
462 | src/wizards/UIWizard.h \
|
---|
463 | src/wizards/UIWizardPage.h \
|
---|
464 | src/wizards/newvm/UIWizardNewVM.h \
|
---|
465 | src/wizards/newvm/UIWizardNewVMPageBasic1.h \
|
---|
466 | src/wizards/newvm/UIWizardNewVMPageBasic2.h \
|
---|
467 | src/wizards/newvm/UIWizardNewVMPageBasic3.h \
|
---|
468 | src/wizards/newvm/UIWizardNewVMPageExpert.h \
|
---|
469 | src/wizards/newvd/UIWizardNewVD.h \
|
---|
470 | src/wizards/newvd/UIWizardNewVDPageBasic1.h \
|
---|
471 | src/wizards/newvd/UIWizardNewVDPageBasic2.h \
|
---|
472 | src/wizards/newvd/UIWizardNewVDPageBasic3.h \
|
---|
473 | src/wizards/newvd/UIWizardNewVDPageExpert.h \
|
---|
474 | src/wizards/clonevm/UIWizardCloneVM.h \
|
---|
475 | src/wizards/clonevm/UIWizardCloneVMPageBasic1.h \
|
---|
476 | src/wizards/clonevm/UIWizardCloneVMPageBasic2.h \
|
---|
477 | src/wizards/clonevm/UIWizardCloneVMPageBasic3.h \
|
---|
478 | src/wizards/clonevm/UIWizardCloneVMPageExpert.h \
|
---|
479 | src/wizards/clonevd/UIWizardCloneVD.h \
|
---|
480 | src/wizards/clonevd/UIWizardCloneVDPageBasic1.h \
|
---|
481 | src/wizards/clonevd/UIWizardCloneVDPageBasic2.h \
|
---|
482 | src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
|
---|
483 | src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
|
---|
484 | src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
|
---|
485 | src/wizards/exportappliance/UIWizardExportApp.h \
|
---|
486 | src/wizards/exportappliance/UIWizardExportAppPageBasic1.h \
|
---|
487 | src/wizards/exportappliance/UIWizardExportAppPageBasic2.h \
|
---|
488 | src/wizards/exportappliance/UIWizardExportAppPageBasic3.h \
|
---|
489 | src/wizards/exportappliance/UIWizardExportAppPageBasic4.h \
|
---|
490 | src/wizards/exportappliance/UIWizardExportAppPageExpert.h \
|
---|
491 | src/wizards/importappliance/UIWizardImportApp.h \
|
---|
492 | src/wizards/importappliance/UIWizardImportAppPageBasic1.h \
|
---|
493 | src/wizards/importappliance/UIWizardImportAppPageBasic2.h \
|
---|
494 | src/wizards/importappliance/UIWizardImportAppPageExpert.h \
|
---|
495 | src/wizards/firstrun/UIWizardFirstRun.h \
|
---|
496 | src/wizards/firstrun/UIWizardFirstRunPageBasic.h \
|
---|
497 | src/runtime/information/UIInformationConfiguration.h \
|
---|
498 | src/runtime/information/UIInformationDataItem.h \
|
---|
499 | src/runtime/information/UIInformationItem.h \
|
---|
500 | src/runtime/information/UIInformationModel.h \
|
---|
501 | src/runtime/information/UIInformationRuntime.h \
|
---|
502 | src/runtime/information/UIInformationView.h \
|
---|
503 | src/runtime/information/UIVMInformationDialog.h
|
---|
504 |
|
---|
505 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
506 | VirtualBox_QT_MOCHDRS += \
|
---|
507 | src/net/UINetworkManager.h \
|
---|
508 | src/net/UINetworkManagerDialog.h \
|
---|
509 | src/net/UINetworkManagerIndicator.h \
|
---|
510 | src/net/UINetworkRequest.h \
|
---|
511 | src/net/UINetworkRequestWidget.h \
|
---|
512 | src/net/UINetworkReply.h \
|
---|
513 | src/net/UINetworkCustomer.h \
|
---|
514 | src/net/UIUpdateManager.h \
|
---|
515 | src/net/UIDownloader.h \
|
---|
516 | src/net/UIDownloaderAdditions.h \
|
---|
517 | src/net/UIDownloaderExtensionPack.h \
|
---|
518 | src/net/UIDownloaderUserManual.h \
|
---|
519 | src/settings/global/UIGlobalSettingsProxy.h \
|
---|
520 | src/settings/global/UIGlobalSettingsUpdate.h
|
---|
521 | endif
|
---|
522 |
|
---|
523 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
524 | VirtualBox_QT_MOCHDRS += \
|
---|
525 | src/runtime/UIDnDHandler.h
|
---|
526 | ifdef VBOX_WITH_DRAG_AND_DROP_GH
|
---|
527 | VirtualBox_QT_MOCHDRS += \
|
---|
528 | src/runtime/UIDnDMIMEData.h
|
---|
529 | endif
|
---|
530 | endif
|
---|
531 |
|
---|
532 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
533 | src/platform/darwin/UIWindowMenuManager.h
|
---|
534 |
|
---|
535 | # Sources containing local definitions of classes that use the Q_OBJECT macro.
|
---|
536 | VirtualBox_QT_MOCSRCS = \
|
---|
537 | src/UIVMLogViewer.cpp \
|
---|
538 | src/extensions/QIArrowSplitter.cpp \
|
---|
539 | src/extensions/QISplitter.cpp \
|
---|
540 | src/extensions/QIAdvancedToolBar.cpp \
|
---|
541 | src/extensions/QITableView.cpp \
|
---|
542 | src/extradata/UIExtraDataManager.cpp \
|
---|
543 | src/globals/UIActionPool.cpp \
|
---|
544 | src/globals/UIMainEventListener.cpp \
|
---|
545 | src/globals/UIThreadPool.cpp \
|
---|
546 | src/medium/UIMediumEnumerator.cpp \
|
---|
547 | src/medium/UIMediumManager.cpp \
|
---|
548 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
549 | src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
|
---|
550 | src/runtime/UIConsoleEventHandler.cpp \
|
---|
551 | src/runtime/UIFrameBuffer.cpp \
|
---|
552 | src/runtime/UIIndicatorsPool.cpp \
|
---|
553 | src/runtime/UIStatusBarEditorWindow.cpp \
|
---|
554 | src/selector/UIActionPoolSelector.cpp \
|
---|
555 | src/selector/UIDesktopPane.cpp \
|
---|
556 | src/selector/UIVirtualBoxEventHandler.cpp \
|
---|
557 | src/selector/UISnapshotPane.cpp \
|
---|
558 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
559 | src/settings/machine/UIMachineSettingsUSB.cpp \
|
---|
560 | src/widgets/UIHotKeyEditor.cpp \
|
---|
561 | src/widgets/UIMiniToolBar.cpp \
|
---|
562 | src/widgets/UIPortForwardingTable.cpp \
|
---|
563 | src/wizards/importappliance/UIWizardImportApp.cpp
|
---|
564 |
|
---|
565 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
566 | VirtualBox_QT_MOCSRCS += \
|
---|
567 | src/net/UINetworkReply.cpp \
|
---|
568 | src/net/UIUpdateManager.cpp
|
---|
569 | endif
|
---|
570 |
|
---|
571 | VirtualBox_QT_MOCSRCS.darwin += \
|
---|
572 | src/platform/darwin/UIWindowMenuManager.cpp
|
---|
573 | VirtualBox_QT_MOCSRCS.win += \
|
---|
574 | src/extensions/QIFileDialog.cpp
|
---|
575 | VirtualBox_QT_MOCSRCS.linux += \
|
---|
576 | src/globals/UIDesktopWidgetWatchdog.cpp
|
---|
577 | VirtualBox_QT_MOCSRCS.solaris += \
|
---|
578 | src/globals/UIDesktopWidgetWatchdog.cpp
|
---|
579 | VirtualBox_QT_MOCSRCS.freebsd += \
|
---|
580 | src/globals/UIDesktopWidgetWatchdog.cpp
|
---|
581 |
|
---|
582 | ifdef VBOX_WITH_XPCOM
|
---|
583 | VirtualBox_QT_MOCSRCS += \
|
---|
584 | src/globals/COMDefs.cpp
|
---|
585 | endif
|
---|
586 |
|
---|
587 | VirtualBox_SOURCES = \
|
---|
588 | src/main.cpp \
|
---|
589 | src/UIMediumTypeChangeDialog.cpp \
|
---|
590 | src/VBoxAboutDlg.cpp \
|
---|
591 | src/VBoxGlobalSettings.cpp \
|
---|
592 | src/VBoxLicenseViewer.cpp \
|
---|
593 | src/VBoxSnapshotDetailsDlg.cpp \
|
---|
594 | src/VBoxTakeSnapshotDlg.cpp \
|
---|
595 | src/UIVMInfoDialog.cpp \
|
---|
596 | src/UIVMLogViewer.cpp \
|
---|
597 | src/converter/UIConverter.cpp \
|
---|
598 | src/converter/UIConverterBackendCOM.cpp \
|
---|
599 | src/converter/UIConverterBackendGlobal.cpp \
|
---|
600 | src/extensions/QIAdvancedSlider.cpp \
|
---|
601 | src/extensions/QIArrowButtonPress.cpp \
|
---|
602 | src/extensions/QIArrowButtonSwitch.cpp \
|
---|
603 | src/extensions/QIArrowSplitter.cpp \
|
---|
604 | src/extensions/QIDialog.cpp \
|
---|
605 | src/extensions/QIDialogButtonBox.cpp \
|
---|
606 | src/extensions/QIFileDialog.cpp \
|
---|
607 | src/extensions/QILabel.cpp \
|
---|
608 | src/extensions/QILabelSeparator.cpp \
|
---|
609 | src/extensions/QILineEdit.cpp \
|
---|
610 | src/extensions/QIListView.cpp \
|
---|
611 | src/extensions/QIMainDialog.cpp \
|
---|
612 | src/extensions/QIMainWindow.cpp \
|
---|
613 | src/extensions/QIMenu.cpp \
|
---|
614 | src/extensions/QIMessageBox.cpp \
|
---|
615 | src/extensions/QIProcess.cpp \
|
---|
616 | src/extensions/QIRichTextLabel.cpp \
|
---|
617 | src/extensions/QIRichToolButton.cpp \
|
---|
618 | src/extensions/QISplitter.cpp \
|
---|
619 | src/extensions/QIStatusBar.cpp \
|
---|
620 | src/extensions/QIStatusBarIndicator.cpp \
|
---|
621 | src/extensions/QITableView.cpp \
|
---|
622 | src/extensions/QITreeView.cpp \
|
---|
623 | src/extensions/QITreeWidget.cpp \
|
---|
624 | src/extensions/QIWidgetValidator.cpp \
|
---|
625 | src/extensions/QIAdvancedToolBar.cpp \
|
---|
626 | src/extensions/graphics/QIGraphicsView.cpp \
|
---|
627 | src/extensions/graphics/QIGraphicsWidget.cpp \
|
---|
628 | src/extradata/UIExtraDataDefs.cpp \
|
---|
629 | src/extradata/UIExtraDataManager.cpp \
|
---|
630 | src/globals/UIDefs.cpp \
|
---|
631 | src/globals/COMDefs.cpp \
|
---|
632 | src/globals/UIActionPool.cpp \
|
---|
633 | src/globals/UIAnimationFramework.cpp \
|
---|
634 | src/globals/UIDesktopWidgetWatchdog.cpp \
|
---|
635 | src/globals/UIIconPool.cpp \
|
---|
636 | src/globals/UIImageTools.cpp \
|
---|
637 | src/globals/UIMainEventListener.cpp \
|
---|
638 | src/globals/UIMessageCenter.cpp \
|
---|
639 | src/globals/UIModalWindowManager.cpp \
|
---|
640 | src/globals/UIPopupCenter.cpp \
|
---|
641 | src/globals/UIShortcutPool.cpp \
|
---|
642 | src/globals/UIThreadPool.cpp \
|
---|
643 | src/globals/VBoxGlobal.cpp \
|
---|
644 | src/medium/UIMediumDefs.cpp \
|
---|
645 | src/medium/UIMedium.cpp \
|
---|
646 | src/medium/UIMediumEnumerator.cpp \
|
---|
647 | src/medium/UIMediumManager.cpp \
|
---|
648 | src/objects/UIRichTextString.cpp \
|
---|
649 | src/runtime/UIActionPoolRuntime.cpp \
|
---|
650 | src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
|
---|
651 | src/runtime/UIConsoleEventHandler.cpp \
|
---|
652 | src/runtime/UIFrameBuffer.cpp \
|
---|
653 | src/runtime/UIIndicatorsPool.cpp \
|
---|
654 | src/runtime/UIKeyboardHandler.cpp \
|
---|
655 | src/runtime/UIMachine.cpp \
|
---|
656 | src/runtime/UIMachineLogic.cpp \
|
---|
657 | src/runtime/UIMachineView.cpp \
|
---|
658 | src/runtime/UIMachineWindow.cpp \
|
---|
659 | src/runtime/UIMenuBarEditorWindow.cpp \
|
---|
660 | src/runtime/UIMouseHandler.cpp \
|
---|
661 | src/runtime/UIMultiScreenLayout.cpp \
|
---|
662 | src/runtime/UISession.cpp \
|
---|
663 | src/runtime/UISlidingToolBar.cpp \
|
---|
664 | src/runtime/UIStatusBarEditorWindow.cpp \
|
---|
665 | src/runtime/UIVMCloseDialog.cpp \
|
---|
666 | src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
|
---|
667 | src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
|
---|
668 | src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
|
---|
669 | src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
|
---|
670 | src/runtime/normal/UIKeyboardHandlerNormal.cpp \
|
---|
671 | src/runtime/normal/UIMachineLogicNormal.cpp \
|
---|
672 | src/runtime/normal/UIMachineViewNormal.cpp \
|
---|
673 | src/runtime/normal/UIMachineWindowNormal.cpp \
|
---|
674 | src/runtime/scale/UIKeyboardHandlerScale.cpp \
|
---|
675 | src/runtime/scale/UIMachineLogicScale.cpp \
|
---|
676 | src/runtime/scale/UIMachineViewScale.cpp \
|
---|
677 | src/runtime/scale/UIMachineWindowScale.cpp \
|
---|
678 | src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
|
---|
679 | src/runtime/seamless/UIMachineLogicSeamless.cpp \
|
---|
680 | src/runtime/seamless/UIMachineViewSeamless.cpp \
|
---|
681 | src/runtime/seamless/UIMachineWindowSeamless.cpp \
|
---|
682 | src/selector/UIActionPoolSelector.cpp \
|
---|
683 | src/selector/UIDesktopPane.cpp \
|
---|
684 | src/selector/UIVMItem.cpp \
|
---|
685 | src/selector/UIVirtualBoxEventHandler.cpp \
|
---|
686 | src/selector/UISelectorWindow.cpp \
|
---|
687 | src/selector/UISnapshotPane.cpp \
|
---|
688 | src/selector/graphics/chooser/UIGChooser.cpp \
|
---|
689 | src/selector/graphics/chooser/UIGChooserModel.cpp \
|
---|
690 | src/selector/graphics/chooser/UIGChooserView.cpp \
|
---|
691 | src/selector/graphics/chooser/UIGChooserHandlerMouse.cpp \
|
---|
692 | src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp \
|
---|
693 | src/selector/graphics/chooser/UIGChooserItem.cpp \
|
---|
694 | src/selector/graphics/chooser/UIGChooserItemGroup.cpp \
|
---|
695 | src/selector/graphics/chooser/UIGChooserItemMachine.cpp \
|
---|
696 | src/selector/graphics/details/UIGDetails.cpp \
|
---|
697 | src/selector/graphics/details/UIGDetailsModel.cpp \
|
---|
698 | src/selector/graphics/details/UIGDetailsView.cpp \
|
---|
699 | src/selector/graphics/details/UIGDetailsItem.cpp \
|
---|
700 | src/selector/graphics/details/UIGDetailsGroup.cpp \
|
---|
701 | src/selector/graphics/details/UIGDetailsSet.cpp \
|
---|
702 | src/selector/graphics/details/UIGDetailsElement.cpp \
|
---|
703 | src/selector/graphics/details/UIGDetailsElements.cpp \
|
---|
704 | src/selector/graphics/details/UIGMachinePreview.cpp \
|
---|
705 | src/settings/UISettingsDefs.cpp \
|
---|
706 | src/settings/UISettingsDialog.cpp \
|
---|
707 | src/settings/UISettingsDialogSpecific.cpp \
|
---|
708 | src/settings/UISettingsPage.cpp \
|
---|
709 | src/settings/UISettingsSelector.cpp \
|
---|
710 | src/settings/UISettingsSerializer.cpp \
|
---|
711 | src/settings/global/UIGlobalSettingsExtension.cpp \
|
---|
712 | src/settings/global/UIGlobalSettingsGeneral.cpp \
|
---|
713 | src/settings/global/UIGlobalSettingsInput.cpp \
|
---|
714 | src/settings/global/UIGlobalSettingsLanguage.cpp \
|
---|
715 | src/settings/global/UIGlobalSettingsDisplay.cpp \
|
---|
716 | src/settings/global/UIGlobalSettingsNetwork.cpp \
|
---|
717 | src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp \
|
---|
718 | src/settings/global/UIGlobalSettingsNetworkDetailsHost.cpp \
|
---|
719 | src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp \
|
---|
720 | src/settings/machine/UIMachineSettingsAudio.cpp \
|
---|
721 | src/settings/machine/UIMachineSettingsDisplay.cpp \
|
---|
722 | src/settings/machine/UIMachineSettingsGeneral.cpp \
|
---|
723 | src/settings/machine/UIMachineSettingsInterface.cpp \
|
---|
724 | src/settings/machine/UIMachineSettingsNetwork.cpp \
|
---|
725 | src/settings/machine/UIMachineSettingsParallel.cpp \
|
---|
726 | src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \
|
---|
727 | src/settings/machine/UIMachineSettingsSF.cpp \
|
---|
728 | src/settings/machine/UIMachineSettingsSFDetails.cpp \
|
---|
729 | src/settings/machine/UIMachineSettingsSerial.cpp \
|
---|
730 | src/settings/machine/UIMachineSettingsStorage.cpp \
|
---|
731 | src/settings/machine/UIMachineSettingsSystem.cpp \
|
---|
732 | src/settings/machine/UIMachineSettingsUSB.cpp \
|
---|
733 | src/settings/machine/UIMachineSettingsUSBFilterDetails.cpp \
|
---|
734 | src/widgets/UIApplianceEditorWidget.cpp \
|
---|
735 | src/widgets/UIApplianceExportEditorWidget.cpp \
|
---|
736 | src/widgets/UIApplianceImportEditorWidget.cpp \
|
---|
737 | src/widgets/UIBar.cpp \
|
---|
738 | src/widgets/UIBootTable.cpp \
|
---|
739 | src/widgets/UIFilePathSelector.cpp \
|
---|
740 | src/widgets/UIEmptyFilePathSelector.cpp \
|
---|
741 | src/widgets/UIHostComboEditor.cpp \
|
---|
742 | src/widgets/UIHotKeyEditor.cpp \
|
---|
743 | src/widgets/UILineTextEdit.cpp \
|
---|
744 | src/widgets/UIMenuBar.cpp \
|
---|
745 | src/widgets/UIPopupBox.cpp \
|
---|
746 | src/widgets/UIPopupPane.cpp \
|
---|
747 | src/widgets/UIPopupPaneTextPane.cpp \
|
---|
748 | src/widgets/UIPopupPaneButtonPane.cpp \
|
---|
749 | src/widgets/UIPopupStack.cpp \
|
---|
750 | src/widgets/UIPopupStackViewport.cpp \
|
---|
751 | src/widgets/UIPortForwardingTable.cpp \
|
---|
752 | src/widgets/UIProgressDialog.cpp \
|
---|
753 | src/widgets/UISpecialControls.cpp \
|
---|
754 | src/widgets/UIToolBar.cpp \
|
---|
755 | src/widgets/VBoxGuestRAMSlider.cpp \
|
---|
756 | src/widgets/VBoxMediaComboBox.cpp \
|
---|
757 | src/widgets/UIMiniToolBar.cpp \
|
---|
758 | src/widgets/VBoxOSTypeSelectorButton.cpp \
|
---|
759 | src/widgets/UINameAndSystemEditor.cpp \
|
---|
760 | src/widgets/UIWarningPane.cpp \
|
---|
761 | src/widgets/UIFilmContainer.cpp \
|
---|
762 | src/widgets/graphics/UIGraphicsButton.cpp \
|
---|
763 | src/widgets/graphics/UIGraphicsRotatorButton.cpp \
|
---|
764 | src/widgets/graphics/UIGraphicsZoomButton.cpp \
|
---|
765 | src/widgets/graphics/UIGraphicsToolBar.cpp \
|
---|
766 | src/widgets/graphics/UIGraphicsTextPane.cpp \
|
---|
767 | src/wizards/UIWizard.cpp \
|
---|
768 | src/wizards/UIWizardPage.cpp \
|
---|
769 | src/wizards/newvm/UIWizardNewVM.cpp \
|
---|
770 | src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
|
---|
771 | src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
|
---|
772 | src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
|
---|
773 | src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
|
---|
774 | src/wizards/newvd/UIWizardNewVD.cpp \
|
---|
775 | src/wizards/newvd/UIWizardNewVDPageBasic1.cpp \
|
---|
776 | src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
|
---|
777 | src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
|
---|
778 | src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
|
---|
779 | src/wizards/clonevm/UIWizardCloneVM.cpp \
|
---|
780 | src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp \
|
---|
781 | src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp \
|
---|
782 | src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp \
|
---|
783 | src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp \
|
---|
784 | src/wizards/clonevd/UIWizardCloneVD.cpp \
|
---|
785 | src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp \
|
---|
786 | src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp \
|
---|
787 | src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
|
---|
788 | src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
|
---|
789 | src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
|
---|
790 | src/wizards/exportappliance/UIWizardExportApp.cpp \
|
---|
791 | src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp \
|
---|
792 | src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp \
|
---|
793 | src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp \
|
---|
794 | src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp \
|
---|
795 | src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp \
|
---|
796 | src/wizards/importappliance/UIWizardImportApp.cpp \
|
---|
797 | src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp \
|
---|
798 | src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp \
|
---|
799 | src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
|
---|
800 | src/wizards/firstrun/UIWizardFirstRun.cpp \
|
---|
801 | src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp \
|
---|
802 | src/runtime/information/UIInformationConfiguration.cpp \
|
---|
803 | src/runtime/information/UIInformationDataItem.cpp \
|
---|
804 | src/runtime/information/UIInformationItem.cpp \
|
---|
805 | src/runtime/information/UIInformationModel.cpp \
|
---|
806 | src/runtime/information/UIInformationRuntime.cpp \
|
---|
807 | src/runtime/information/UIInformationView.cpp \
|
---|
808 | src/runtime/information/UIVMInformationDialog.cpp
|
---|
809 |
|
---|
810 | ifdef VBOX_GUI_WITH_NETWORK_MANAGER
|
---|
811 | VirtualBox_SOURCES += \
|
---|
812 | src/net/UINetworkManager.cpp \
|
---|
813 | src/net/UINetworkManagerDialog.cpp \
|
---|
814 | src/net/UINetworkManagerIndicator.cpp \
|
---|
815 | src/net/UINetworkRequest.cpp \
|
---|
816 | src/net/UINetworkRequestWidget.cpp \
|
---|
817 | src/net/UINetworkReply.cpp \
|
---|
818 | src/net/UINetworkCustomer.cpp \
|
---|
819 | src/net/UIDownloader.cpp \
|
---|
820 | src/net/UIDownloaderAdditions.cpp \
|
---|
821 | src/net/UIDownloaderExtensionPack.cpp \
|
---|
822 | src/net/UIDownloaderUserManual.cpp \
|
---|
823 | src/net/UIUpdateDefs.cpp \
|
---|
824 | src/net/UIUpdateManager.cpp \
|
---|
825 | src/settings/global/UIGlobalSettingsProxy.cpp \
|
---|
826 | src/settings/global/UIGlobalSettingsUpdate.cpp
|
---|
827 | endif
|
---|
828 |
|
---|
829 | VirtualBox_SOURCES.darwin += \
|
---|
830 | src/platform/darwin/UIAbstractDockIconPreview.cpp \
|
---|
831 | src/platform/darwin/UICocoaDockIconPreview.mm \
|
---|
832 | src/platform/darwin/UIWindowMenuManager.cpp \
|
---|
833 |
|
---|
834 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
|
---|
835 | VirtualBox_SOURCES += \
|
---|
836 | src/platform/x11/UIDesktopServices_x11.cpp \
|
---|
837 | src/platform/x11/VBoxX11Helper.cpp \
|
---|
838 | src/platform/x11/XKeyboard-new.cpp
|
---|
839 | endif
|
---|
840 |
|
---|
841 | VirtualBox_SOURCES.win += \
|
---|
842 | src/platform/win/VirtualBox.rc \
|
---|
843 | src/platform/win/UIDesktopServices_win.cpp \
|
---|
844 | src/platform/win/VBoxUtils-win.cpp \
|
---|
845 | src/platform/win/WinKeyboard.cpp
|
---|
846 |
|
---|
847 | if defined(VBOX_WITH_QTGUI_V5) && (defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD))
|
---|
848 | INSTALLS.linux += VirtualBox.qt.conf
|
---|
849 | INSTALLS.solaris += VirtualBox.qt.conf
|
---|
850 | VirtualBox.qt.conf_INST = $(INST_BIN)
|
---|
851 | VirtualBox.qt.conf_MODE = 644
|
---|
852 | VirtualBox.qt.conf_SOURCES = $(VirtualBox_0_OUTDIR)/qt.conf=>qt.conf
|
---|
853 |
|
---|
854 | $$(VirtualBox_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
|
---|
855 | $(QUIET)$(RM) -f $@
|
---|
856 | $(QUIET)$(APPEND) $@ "[Paths]"
|
---|
857 | $(QUIET)$(APPEND) $@ "Plugins =" $(PATH_OUT)/$(INST_BIN)/plugins
|
---|
858 | endif
|
---|
859 |
|
---|
860 | VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
|
---|
861 | VirtualBox_SOURCES.darwin += \
|
---|
862 | src/platform/darwin/CocoaEventHelper.mm \
|
---|
863 | src/platform/darwin/DarwinKeyboard.cpp \
|
---|
864 | src/platform/darwin/UICocoaApplication.mm \
|
---|
865 | src/platform/darwin/UICocoaSpecialControls.mm \
|
---|
866 | src/platform/darwin/UIDesktopServices_darwin.cpp \
|
---|
867 | src/platform/darwin/UIDesktopServices_darwin_cocoa.mm \
|
---|
868 | src/platform/darwin/VBoxUtils-darwin-cocoa.mm \
|
---|
869 | src/platform/darwin/VBoxUtils-darwin.cpp
|
---|
870 | VirtualBox_QT_MOCHDRS.darwin += \
|
---|
871 | src/platform/darwin/UICocoaSpecialControls.h
|
---|
872 |
|
---|
873 | ifdef VBOX_WITH_ICHAT_THEATER
|
---|
874 | VirtualBox_SOURCES.darwin += \
|
---|
875 | src/platform/darwin/VBoxIChatTheaterWrapper.m
|
---|
876 | endif
|
---|
877 |
|
---|
878 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
879 | VirtualBox_SOURCES += \
|
---|
880 | src/VBoxFBOverlay.cpp \
|
---|
881 | src/VBoxGLSupportInfo.cpp
|
---|
882 | endif
|
---|
883 |
|
---|
884 | #
|
---|
885 | # Drag and drop support.
|
---|
886 | #
|
---|
887 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
888 | VirtualBox_SOURCES += \
|
---|
889 | src/runtime/UIDnDHandler.cpp
|
---|
890 | ifdef VBOX_WITH_DRAG_AND_DROP_GH
|
---|
891 | VirtualBox_SOURCES += \
|
---|
892 | src/runtime/UIDnDMIMEData.cpp
|
---|
893 | VirtualBox_SOURCES.win += \
|
---|
894 | src/runtime/UIDnDDropSource_win.cpp \
|
---|
895 | src/runtime/UIDnDDataObject_win.cpp \
|
---|
896 | src/runtime/UIDnDEnumFormat_win.cpp
|
---|
897 | endif
|
---|
898 | endif
|
---|
899 |
|
---|
900 | # The Qt modules we're using.
|
---|
901 | # (The include directory and lib/framework for each module will be added by the Qt4 unit.)
|
---|
902 | VirtualBox_QT_MODULES = Core Gui
|
---|
903 | ifdef VBOX_WITH_QTGUI_V5
|
---|
904 | # Qt5 requires additional modules:
|
---|
905 | VirtualBox_QT_MODULES += Widgets PrintSupport
|
---|
906 | VirtualBox_QT_MODULES.linux += X11Extras
|
---|
907 | VirtualBox_QT_MODULES.solaris += X11Extras
|
---|
908 | VirtualBox_QT_MODULES.freebsd += X11Extras
|
---|
909 | VirtualBox_QT_MODULES.darwin += MacExtras
|
---|
910 | VirtualBox_QT_MODULES.win += WinExtras
|
---|
911 | endif # VBOX_WITH_QTGUI_V5
|
---|
912 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
913 | VirtualBox_QT_MODULES += OpenGL
|
---|
914 | endif
|
---|
915 |
|
---|
916 | # Pull in the ui files
|
---|
917 | $(eval VirtualBox_SOURCES += $(FORMS))
|
---|
918 |
|
---|
919 | # Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
|
---|
920 | VirtualBox_SOURCES += VirtualBox1.qrc
|
---|
921 | VirtualBox1.qrc_RCCFLAGS = -name BASIC1
|
---|
922 | VirtualBox_SOURCES += VirtualBox2.qrc
|
---|
923 | VirtualBox2.qrc_RCCFLAGS = -name BASIC2
|
---|
924 | VirtualBox_SOURCES += VirtualBox1_hidpi.qrc
|
---|
925 | VirtualBox1_hidpi.qrc_RCCFLAGS = -name BASIC1_HIDPI
|
---|
926 | VirtualBox_SOURCES += VirtualBox2_hidpi.qrc
|
---|
927 | VirtualBox2_hidpi.qrc_RCCFLAGS = -name BASIC2_HIDPI
|
---|
928 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
929 | VirtualBox_SOURCES += VirtualBoxMac.qrc
|
---|
930 | VirtualBoxMac.qrc_RCCFLAGS = -name MAC
|
---|
931 | else
|
---|
932 | VirtualBox_SOURCES += VirtualBoxOther.qrc
|
---|
933 | VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
|
---|
934 | endif
|
---|
935 | VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
936 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
|
---|
937 | if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
|
---|
938 | VirtualBox_SOURCES += VirtualBoxShaders.qrc
|
---|
939 | VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
|
---|
940 | endif
|
---|
941 |
|
---|
942 | # Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
|
---|
943 | VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
|
---|
944 | $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
|
---|
945 | # Compress the translation units.
|
---|
946 | VirtualBox_LRCFLAGS = -silent
|
---|
947 | # Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
|
---|
948 | VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
|
---|
949 |
|
---|
950 |
|
---|
951 | ## @todo how to detect what tool is used?
|
---|
952 | ## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
|
---|
953 | # more generic -Wno-extra
|
---|
954 | # bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
|
---|
955 | ifdef VBOX_WITH_XPCOM
|
---|
956 | VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
|
---|
957 | endif
|
---|
958 |
|
---|
959 |
|
---|
960 | #
|
---|
961 | # Generate the COM wrappers.
|
---|
962 | #
|
---|
963 | includedep $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
|
---|
964 | VirtualBox_BLDDIRS += $(VirtualBox_0_OUTDIR)/include
|
---|
965 | VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/COMWrappers
|
---|
966 | VirtualBox_CLEAN += $(wildcard $(VirtualBox_0_OUTDIR)/include/*) $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep
|
---|
967 | VirtualBox_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
|
---|
968 |
|
---|
969 | ## @todo kmk doesn't remake optional outputs when they are missing...
|
---|
970 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers \
|
---|
971 | + $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep \
|
---|
972 | +| $(if-expr defined(VirtualBox_VBOX_COMWRAPPERS) \
|
---|
973 | , $(VirtualBox_VBOX_COMWRAPPERS) \
|
---|
974 | , $$(VirtualBox_0_OUTDIR)/include/COMEnums.h \
|
---|
975 | $$(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp \
|
---|
976 | ): \
|
---|
977 | $(VBOX_XIDL_FILE) \
|
---|
978 | $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
|
---|
979 | $(VBOX_FILESPLIT) \
|
---|
980 | | $$(dir $$@)
|
---|
981 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
982 | $(QUIET)$(RM) -f -- "$@" "$(PATH_TARGET)/VirtualBoxComWrapperFiles.dep"
|
---|
983 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
|
---|
984 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VirtualBox_0_OUTDIR)/include \
|
---|
985 | $(PATH_TARGET)/VirtualBoxComWrapperFiles.dep VirtualBox_VBOX_COMWRAPPERS
|
---|
986 | $(APPEND) "$@"
|
---|
987 |
|
---|
988 | # alias for generating the COM Wrappers file.
|
---|
989 | testwrappers:: $$(VirtualBox_0_OUTDIR)/include/COMWrappers
|
---|
990 |
|
---|
991 |
|
---|
992 | #
|
---|
993 | # Generate qrc file with branded icons.
|
---|
994 | #
|
---|
995 | VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
|
---|
996 | VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
|
---|
997 | $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
|
---|
998 | $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
|
---|
999 | $(PATH_ROOT)/Config.kmk \
|
---|
1000 | | $$(dir $$@)
|
---|
1001 | $(call MSG_GENERATE,VirtualBox,$<,$@)
|
---|
1002 | $(QUIET)$(SED) \
|
---|
1003 | -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
|
---|
1004 | -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
|
---|
1005 | -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
|
---|
1006 | -e 's;@VBOX_ABOUT_16PX_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_HIDPI_PNG);g' \
|
---|
1007 | -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
|
---|
1008 | -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
|
---|
1009 | -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
|
---|
1010 | -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
|
---|
1011 | -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
|
---|
1012 | -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
|
---|
1013 | -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
|
---|
1014 | -e 's;@VBOX_CUBE_SVG@;$(VBOX_BRAND_GUI_VBOX_SVG);g' \
|
---|
1015 | --output $@ \
|
---|
1016 | $<
|
---|
1017 |
|
---|
1018 |
|
---|
1019 | #
|
---|
1020 | # Precompiled header - non-functional atm.
|
---|
1021 | #
|
---|
1022 | ifdef VBOX_WITH_PRECOMPILED_HEADERS
|
---|
1023 | if1of ($(KBUILD_TARGET),win)
|
---|
1024 | VirtualBox_USES += vccprecomp
|
---|
1025 | VirtualBox_PCH_HDR := $(PATH_SUB_CURRENT)/src/precomp_vcc.h
|
---|
1026 |
|
---|
1027 | else # obsolete experiment
|
---|
1028 | VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
|
---|
1029 | VirtualBox_INCS <= $(VirtualBoxPch_0_OUTDIR)/src
|
---|
1030 | VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
|
---|
1031 | $(foreach x,$(filter-out include/COMWrappers.cpp, $(filter %.cpp, \
|
---|
1032 | $(VirtualBox_SOURCES) \
|
---|
1033 | $(VirtualBox_SOURCES.$(KBUILD_TARGET)) \
|
---|
1034 | $(VirtualBox_SOURCES.$(KBUILD_TYPE)) \
|
---|
1035 | )),$(eval $(abspath $(PATH_OBJ)/VirtualBox/$(basename $(x)).o): $$$$(VirtualBoxPch_0_OUTDIR)/src/precomp.h.gch))
|
---|
1036 |
|
---|
1037 | TOOL_VirtualBoxPchLinker = Linker for VirtualBoxPch
|
---|
1038 | define TOOL_VirtualBoxPchLinker_LINK_MISCBIN_CMDS
|
---|
1039 | $(APPEND) -t $(out)
|
---|
1040 | endef
|
---|
1041 |
|
---|
1042 | MISCBINS += VirtualBoxPch
|
---|
1043 | VirtualBoxPch_EXTENDS = VirtualBox
|
---|
1044 | VirtualBoxPch_LDTOOL = VirtualBoxPchLinker
|
---|
1045 | VirtualBoxPch_INSTTYPE = none
|
---|
1046 | VirtualBoxPch_NAME = VirtualBoxPch
|
---|
1047 | VirtualBoxPch_INTERMEDIATES = $(filter-out %.h.gch, $(VirtualBox_INTERMEDIATES))
|
---|
1048 | VirtualBoxPch_SOURCES = src/precomp.h
|
---|
1049 | VirtualBoxPch_CXXFLAGS = $(filter-out -Winvalid-pch -fpch-preprocess, $(VirtualBox_CXXFLAGS)) -x c++-header
|
---|
1050 | VirtualBoxPch_CXXOBJSUFF = .h.gch
|
---|
1051 | VirtualBoxPch_SRC_HANDLERS = .h:def_src_handler_cxx
|
---|
1052 | VirtualBoxPch_SOURCES.darwin = $(NO_SUCH_VARIABLE)
|
---|
1053 | VirtualBoxPch_SOURCES.solaris = $(NO_SUCH_VARIABLE)
|
---|
1054 | VirtualBoxPch_SOURCES.freebsd = $(NO_SUCH_VARIABLE)
|
---|
1055 | VirtualBoxPch_SOURCES.linux = $(NO_SUCH_VARIABLE)
|
---|
1056 | VirtualBoxPch_SOURCES.win = $(NO_SUCH_VARIABLE)
|
---|
1057 | VirtualBoxPch_QT_MODULES = $(VirtualBox_QT_MODULES) # "bug" - not inherited.
|
---|
1058 | VirtualBoxPch_INCS = $(VirtualBox_INCS) # "bug" - missing qtuic and qtmoc
|
---|
1059 | endif # obsolete experiment
|
---|
1060 | endif
|
---|
1061 |
|
---|
1062 | ifeq ($(KBUILD_TARGET),win)
|
---|
1063 | #
|
---|
1064 | # On Windows we'll have to generate/edit part of the resource file.
|
---|
1065 | # The IDI_ICON1 name is Qt specific.
|
---|
1066 | #
|
---|
1067 | src/platform/win/VirtualBox.rc_INCS = $(VirtualBox_0_OUTDIR)
|
---|
1068 | src/platform/win/VirtualBox.rc_DEPS = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
1069 | src/platform/win/VirtualBox.rc_CLEAN = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
|
---|
1070 |
|
---|
1071 | $$(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
1072 | $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
1073 |
|
---|
1074 | endif # win
|
---|
1075 |
|
---|
1076 |
|
---|
1077 | #
|
---|
1078 | # Unset everything that was loaded from VBoxUI.pro.
|
---|
1079 | #
|
---|
1080 | FORMS :=
|
---|
1081 | TRANSLATIONS :=
|
---|
1082 |
|
---|
1083 |
|
---|
1084 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1085 | #
|
---|
1086 | # Create directories for each approved language or the application
|
---|
1087 | # menu won't be translated.
|
---|
1088 | #
|
---|
1089 | INSTALLS += VirtualBox.lproj
|
---|
1090 | VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
|
---|
1091 | VirtualBox.lproj_MODE = 755
|
---|
1092 | VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
|
---|
1093 |
|
---|
1094 | #
|
---|
1095 | # On OS X (darwin) we need to install icon resources and compulsory bundle contents.
|
---|
1096 | # The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
|
---|
1097 | #
|
---|
1098 | INSTALLS += VirtualBox.app
|
---|
1099 | VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
|
---|
1100 | VirtualBox.app_MODE = 644
|
---|
1101 | VirtualBox.app_SOURCES = \
|
---|
1102 | src/platform/darwin/PkgInfo \
|
---|
1103 | $(VirtualBox.app_0_OUTDIR)/Info.plist \
|
---|
1104 | $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns \
|
---|
1105 | $(VBOX_BRAND_GUI_VBOX_64PX_PNG)=>Resources/virtualbox.png \
|
---|
1106 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox.icns=>Resources/virtualbox-vbox.icns \
|
---|
1107 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vbox-extpack.icns=>Resources/virtualbox-vbox-extpack.icns \
|
---|
1108 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ovf.icns=>Resources/virtualbox-ovf.icns \
|
---|
1109 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-ova.icns=>Resources/virtualbox-ova.icns \
|
---|
1110 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vdi.icns=>Resources/virtualbox-vdi.icns \
|
---|
1111 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vmdk.icns=>Resources/virtualbox-vmdk.icns \
|
---|
1112 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-vhd.icns=>Resources/virtualbox-vhd.icns \
|
---|
1113 | $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns
|
---|
1114 |
|
---|
1115 | ifdef VBOX_WITH_QTGUI_V5
|
---|
1116 | # Qt5 requires qt.conf on Mac OS X:
|
---|
1117 | VirtualBox.app_SOURCES += \
|
---|
1118 | $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf
|
---|
1119 | endif # VBOX_WITH_QTGUI_V5
|
---|
1120 |
|
---|
1121 | $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
1122 | $(call MSG_GENERATE,VirtualBox.app,$<,$@)
|
---|
1123 | $(QUIET)$(RM) -f $@
|
---|
1124 | $(QUIET)$(SED) \
|
---|
1125 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
1126 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
1127 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
1128 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
1129 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
1130 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
1131 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
1132 | $< > $@
|
---|
1133 |
|
---|
1134 | $$(VirtualBox.app_0_OUTDIR)/qt.conf: $(PATH_SUB_CURRENT)/Makefile.kmk $(VBOX_VERSION_MK) | $$(@D)/
|
---|
1135 | $(QUIET)$(RM) -f $@
|
---|
1136 | $(QUIET)$(APPEND) $@ "[Paths]"
|
---|
1137 | $(QUIET)$(APPEND) $@ "Prefix =" $(PATH_OUT)/$(VirtualBox.app_INST)
|
---|
1138 |
|
---|
1139 | INSTALLS += VirtualBoxVM.app
|
---|
1140 | VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
|
---|
1141 | VirtualBoxVM.app_MODE = 644
|
---|
1142 | VirtualBoxVM.app_SOURCES = \
|
---|
1143 | src/platform/darwin/VM-PkgInfo=>PkgInfo \
|
---|
1144 | $(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist=>Info.plist \
|
---|
1145 | $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
|
---|
1146 | VirtualBoxVM.app_SYMLINKS = \
|
---|
1147 | MacOS=>../../../MacOS/
|
---|
1148 |
|
---|
1149 | $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
1150 | $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
|
---|
1151 | $(QUIET)$(RM) -f $@
|
---|
1152 | $(QUIET)$(SED) \
|
---|
1153 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
1154 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
1155 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
1156 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
1157 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
1158 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
1159 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
1160 | --output $@ $<
|
---|
1161 |
|
---|
1162 | PROGRAMS += vmstarter
|
---|
1163 | vmstarter_TEMPLATE = VBOXR3EXE
|
---|
1164 | ifdef VBOX_WITH_NEW_XCODE
|
---|
1165 | vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
|
---|
1166 | else
|
---|
1167 | vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
|
---|
1168 | endif
|
---|
1169 | vmstarter_LDFLAGS += -framework AppKit
|
---|
1170 | vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
|
---|
1171 | vmstarter_INST = $(INST_BIN)vmstarter
|
---|
1172 |
|
---|
1173 | INSTALLS += vmstarter.app
|
---|
1174 | vmstarter.app_INST = $(VirtualBox.app_INST)Resources/vmstarter.app/Contents/
|
---|
1175 | vmstarter.app_MODE = 644
|
---|
1176 | vmstarter.app_SOURCES = \
|
---|
1177 | src/platform/darwin/vmstarter-PkgInfo=>PkgInfo \
|
---|
1178 | $(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist=>Info.plist \
|
---|
1179 | $(foreach mysrc,$(VirtualBox.app_SOURCES),$(if-expr $(pos =>Resources/,$(mysrc)) > 0,$(mysrc),))
|
---|
1180 | vmstarter.app_SYMLINKS = \
|
---|
1181 | MacOS=>../../../MacOS \
|
---|
1182 |
|
---|
1183 | $$(vmstarter.app_0_OUTDIR)/vmstarter-Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/vmstarter-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
|
---|
1184 | $(call MSG_GENERATE,vmstarter.app,$<,$@)
|
---|
1185 | $(QUIET)$(RM) -f $@
|
---|
1186 | $(QUIET)$(SED) \
|
---|
1187 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
1188 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
1189 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
1190 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
1191 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
1192 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
1193 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
1194 | --output $@ $<
|
---|
1195 | endif # darwin
|
---|
1196 |
|
---|
1197 | #
|
---|
1198 | # App for testing GL support
|
---|
1199 | #
|
---|
1200 | if defined(VBOX_WITH_VIDEOHWACCEL)
|
---|
1201 | if1of ($(KBUILD_TARGET), win linux freebsd)
|
---|
1202 | LIBRARIES += VBoxOGL2D
|
---|
1203 | VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
|
---|
1204 | VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
|
---|
1205 | VBoxOGL2D_QT_MODULES += OpenGL
|
---|
1206 | VBoxOGL2D_SOURCES = \
|
---|
1207 | src/VBoxGLSupportInfo.cpp
|
---|
1208 | VBoxOGL2D_INCS = include
|
---|
1209 | endif
|
---|
1210 | endif
|
---|
1211 |
|
---|
1212 |
|
---|
1213 | #
|
---|
1214 | # Testcase for the darwin keyboard routines.
|
---|
1215 | #
|
---|
1216 | ifdef VBOX_WITH_TESTCASES
|
---|
1217 | PROGRAMS.darwin += tstDarwinKeyboard
|
---|
1218 | tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
|
---|
1219 | tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
|
---|
1220 | tstDarwinKeyboard_INCS = include
|
---|
1221 | tstDarwinKeyboard_SOURCES = \
|
---|
1222 | src/platform/darwin/tstDarwinKeyboard.cpp \
|
---|
1223 | src/platform/darwin/DarwinKeyboard.cpp
|
---|
1224 | tstDarwinKeyboard_SOURCES.amd64 = \
|
---|
1225 | src/platform/darwin/CocoaEventHelper.mm
|
---|
1226 | tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
|
---|
1227 | tstDarwinKeyboard_LIBS = \
|
---|
1228 | $(LIB_RUNTIME)
|
---|
1229 | endif
|
---|
1230 |
|
---|
1231 |
|
---|
1232 | #
|
---|
1233 | # Testcase for SSL certificate downloading.
|
---|
1234 | #
|
---|
1235 | if defined(VBOX_WITH_TESTCASES) && defined(VBOX_GUI_WITH_NETWORK_MANAGER)
|
---|
1236 | PROGRAMS += tstSSLCertDownloads
|
---|
1237 | tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE
|
---|
1238 | ifndef VBOX_WITH_QTGUI_V5
|
---|
1239 | tstSSLCertDownloads_USES = qt4
|
---|
1240 | tstSSLCertDownloads_QTTOOL = QT4
|
---|
1241 | else # VBOX_WITH_QTGUI_V5
|
---|
1242 | tstSSLCertDownloads_USES = qt5
|
---|
1243 | tstSSLCertDownloads_QTTOOL = QT5
|
---|
1244 | endif # VBOX_WITH_QTGUI_V5
|
---|
1245 | tstSSLCertDownloads_QT_MODULES = Core Gui
|
---|
1246 | tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS
|
---|
1247 | tstSSLCertDownloads_INCS = \
|
---|
1248 | $(VBOX_GUI_INC_DIRS)
|
---|
1249 | tstSSLCertDownloads_SOURCES = \
|
---|
1250 | src/net/tstSSLCertDownloads.cpp
|
---|
1251 | endif
|
---|
1252 |
|
---|
1253 |
|
---|
1254 | #
|
---|
1255 | # Doxygen documentation.
|
---|
1256 | #
|
---|
1257 | QTGUI_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/qtgui
|
---|
1258 | BLDDIRS += $(QTGUI_DOXYFILE_OUTPUT)
|
---|
1259 | OTHER_CLEAN += \
|
---|
1260 | $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui \
|
---|
1261 | $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1262 |
|
---|
1263 | # Generate the Doxyfile
|
---|
1264 | $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui: \
|
---|
1265 | $(PATH_SUB_CURRENT)/Doxyfile \
|
---|
1266 | $(PATH_SUB_CURRENT)/Makefile.kmk \
|
---|
1267 | | $$(dir $$@)
|
---|
1268 | $(RM) -f $@ [email protected] [email protected]
|
---|
1269 | $(CP) -f $< [email protected]
|
---|
1270 | $(APPEND) [email protected]
|
---|
1271 | $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(QTGUI_DOXYFILE_OUTPUT)"
|
---|
1272 | $(APPEND) [email protected] "WARN_LOGFILE = $(QTGUI_DOXYFILE_OUTPUT)/errors"
|
---|
1273 | $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include ."
|
---|
1274 | $(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
|
---|
1275 | $(APPEND) [email protected]
|
---|
1276 | $(APPEND) [email protected] "INPUT = $(dir $<)"
|
---|
1277 | $(APPEND) [email protected]
|
---|
1278 | $(MV) -f [email protected] $@
|
---|
1279 |
|
---|
1280 | # Do the actual job.
|
---|
1281 | $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui $$(QTGUI_DOXYFILE_INPUT) | $(QTGUI_DOXYFILE_OUTPUT)/
|
---|
1282 | $(RM) -Rf -- $(QTGUI_DOXYFILE_OUTPUT)/html/
|
---|
1283 | doxygen $(QTGUI_DOXYFILE_OUTPUT)/Doxyfile.qtgui
|
---|
1284 | $(APPEND) $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1285 |
|
---|
1286 | # aliases
|
---|
1287 | docs.qtgui: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1288 | if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
|
---|
1289 | docs: $(QTGUI_DOXYFILE_OUTPUT)/docs.qtgui
|
---|
1290 | endif
|
---|
1291 |
|
---|
1292 |
|
---|
1293 |
|
---|
1294 | # Commit the magic.
|
---|
1295 | # (note: before custom rules that make usage of generated variables!).
|
---|
1296 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1297 |
|
---|
1298 |
|
---|
1299 | #
|
---|
1300 | # Update all known NLS translation (.ts) files in the nls/ subdirectory.
|
---|
1301 | #
|
---|
1302 | # NOTE: This target is intended to be run only by the GUI maintainer shortly
|
---|
1303 | # before a new product release. VirtualBox_xx_YY.ts is a template for new
|
---|
1304 | # languages and should never be actually translated or installed.
|
---|
1305 | #
|
---|
1306 | # Use the checknls target for checking again common mistakes done by the
|
---|
1307 | # translators.
|
---|
1308 | #
|
---|
1309 | # For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
|
---|
1310 | # lupdate call
|
---|
1311 | #
|
---|
1312 | #VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
|
---|
1313 | checknls::
|
---|
1314 | # Check for missing :/ in image paths
|
---|
1315 | grep -i "src=[^:%]" $(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))
|
---|
1316 |
|
---|
1317 | updatenls:: makeallnls nls/VirtualBox_en.ts
|
---|
1318 |
|
---|
1319 | makeallnls:: \
|
---|
1320 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
1321 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
1322 | $(call MSG_L1,lupdate all languages (nls/*.ts))
|
---|
1323 | $(QUIET)$(if $(VBOX_WITH_QTGUI_V5),$(TOOL_QT5_LUPDATE),$(TOOL_QT4_LUPDATE)) \
|
---|
1324 | $^ \
|
---|
1325 | -ts \
|
---|
1326 | $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
|
---|
1327 | nls/VirtualBox_xx_YY.ts
|
---|
1328 |
|
---|
1329 | # Create the English translation file. This is something special cause it will
|
---|
1330 | # contain the plural forms only.
|
---|
1331 | nls/VirtualBox_en.ts: \
|
---|
1332 | $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
|
---|
1333 | $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
|
---|
1334 | $(call MSG_L1,lupdate $@)
|
---|
1335 | $(QUIET)$(if $(VBOX_WITH_QTGUI_V5),$(TOOL_QT5_LUPDATE),$(TOOL_QT4_LUPDATE)) \
|
---|
1336 | $^ \
|
---|
1337 | -ts \
|
---|
1338 | $@
|
---|
1339 | $(QUIET)$(SED) -n -i -e \
|
---|
1340 | '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
|
---|
1341 | $@
|
---|
1342 |
|
---|