VirtualBox

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

Last change on this file since 30709 was 30692, checked in by vboxsync, 15 years ago

FE/Qt4: added some image manipulation functions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 30.0 KB
Line 
1# $Id: Makefile.kmk 30692 2010-07-07 09:17:35Z vboxsync $
2## @file
3# Makefile for the VirtualBox Qt GUI.
4#
5
6#
7# Copyright (C) 2006-2010 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# Globals.
23#
24VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
25VBOX_VIRTUALBOX4_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
26
27# VBOX_WITH_REGISTRATION := 1
28
29# Ask the user to register at Sun. If this setting is disabled the user can
30# still register using the menu if desired.
31# VBOX_WITH_REGISTRATION_REQUEST := 1
32
33# For now this should be disabled in any case
34ifdef VBOX_WITH_REGISTRATION
35 VBOX_WITH_REGISTRATION=
36endif
37ifdef VBOX_WITH_REGISTRATION_REQUEST
38 VBOX_WITH_REGISTRATION_REQUEST=
39endif
40
41# Show the update notifier dialog during startup. If this setting is disabled
42# the user can still update using the menu if desired.
43ifndef VBOX_OSE
44VBOX_WITH_UPDATE_REQUEST := 1
45endif
46
47#
48# The targets.
49#
50ifdef VBOX_WITH_HARDENING
51PROGRAMS += VirtualBoxHardened
52DLLS += VirtualBox
53else
54PROGRAMS += VirtualBox
55endif
56
57INSTALLS += VirtualBox.nls
58
59
60#
61# Include the language lists.
62#
63include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
64
65
66#
67# Hardened VirtualBox.
68#
69VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
70VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
71VirtualBoxHardened_NAME = VirtualBox
72VirtualBoxHardened_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
73
74
75#
76# Include Qt project file, we'll use FORMS and TRANSLATIONS in
77# the VirtualBox setup below.
78#
79SAVED_TEMPLATE := $(TEMPLATE)
80include $(PATH_SUB_CURRENT)/VBoxUI.pro
81
82
83#
84# VirtualBox - The GUI program.
85#
86USES += qt4
87VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE)
88VirtualBox_NAME = VirtualBox
89ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
90 VirtualBox_INST.darwin = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM
91endif
92VirtualBox_SDKS.win = WINPSDK DXSDK
93if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd os2) # X11 + os2 ## @todo solaris
94 VirtualBox_SDKS += LIBSDL
95endif
96
97ifdef VBOX_WITH_ICHAT_THEATER
98 # For testing iChat Theater stuff change the sdk path (HACK ALERT!)
99 VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
100endif
101
102VirtualBox_DEFS =
103VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT
104VirtualBox_DEFS.darwin = VBOX_GUI_USE_QUARTZ2D VBOX_GUI_USE_QIMAGE
105ifndef VBOX_WITH_COCOA_QT
106VirtualBox_DEFS.darwin.x86= USE_HID_FOR_MODIFIERS
107endif
108VirtualBox_DEFS.freebsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
109VirtualBox_DEFS.linux = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
110VirtualBox_DEFS.netbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
111VirtualBox_DEFS.openbsd = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
112VirtualBox_DEFS.solaris = VBOX_GUI_USE_QIMAGE #VBOX_GUI_USE_SDL
113VirtualBox_DEFS.win = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
114ifdef VBOX_WITH_ICHAT_THEATER
115 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
116endif
117ifneq ($(KBUILD_TYPE),release)
118 # non-release builds has some extra features.
119 VirtualBox_DEFS.win += VBOX_GUI_USE_DDRAW
120endif
121VirtualBox_DEFS += \
122 $(if $(VBOX_WITH_REGISTRATION),VBOX_WITH_REGISTRATION) \
123 $(if $(VBOX_WITH_REGISTRATION_REQUEST),VBOX_WITH_REGISTRATION_REQUEST) \
124 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
125 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \
126 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \
127 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \
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)
131ifdef VBOX_WITH_DEBUGGER_GUI
132 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI
133 if "$(KBUILD_TYPE)" != "release"
134 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU
135 endif
136endif
137ifdef VBOX_WITH_VIDEOHWACCEL
138 VirtualBox_DEFS += VBOX_WITH_VIDEOHWACCEL \
139 VBOX_GUI_USE_QGL
140else ifdef VBOX_GUI_USE_QGL
141 VirtualBox_DEFS += VBOX_GUI_USE_QGL
142endif
143ifdef VBOX_WITH_VIRTIO
144 VirtualBox_DEFS += VBOX_WITH_VIRTIO
145endif
146ifdef VBOXWDDM
147 VirtualBox_DEFS += VBOXWDDM
148endif
149ifdef VBOX_BLEEDING_EDGE
150VirtualBox_src/VBoxSelectorWnd.cpp_DEFS += \
151 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
152VirtualBox_src/runtime/UIMachineWindow.cpp_DEFS += \
153 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
154VirtualBox_src/VBoxAboutDlg.cpp_DEFS += \
155 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
156VirtualBox_src/main.cpp_DEFS += \
157 VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\"
158endif
159
160
161VBOX_GUI_INC_DIRS = \
162 ./src \
163 ./src/globals \
164 ./src/extensions \
165 ./src/settings \
166 ./src/settings/global \
167 ./src/settings/vm \
168 ./src/wizards/newvm \
169 ./src/wizards/newhd \
170 ./src/wizards/firstrun \
171 ./src/wizards/exportappliance \
172 ./src/wizards/importappliance \
173 ./src/widgets \
174 ./src/X11 \
175 ./src/darwin \
176 ./src/runtime \
177 ./src/runtime/normal \
178 ./src/runtime/fullscreen \
179 ./src/runtime/seamless
180
181ifdef VBOX_WITH_REGISTRATION
182 VBOX_GUI_INC_DIRS += \
183 ./src/wizards/registration
184endif
185
186VirtualBox_INCS = \
187 $(VBOX_GUI_INC_DIRS) \
188 $(PATH_VirtualBox)/include
189
190# Necessary for the hdd backend enumeration
191VirtualBox_LIBS = $(LIB_DDU)
192
193# This library is required for multi-monitor support
194VirtualBox_LIBS.linux += Xinerama
195VirtualBox_LIBS.solaris += Xinerama
196VirtualBox_LIBS.freebsd += Xinerama
197
198ifdef VBOX_WITH_VIDEOHWACCEL
199# Necessary for save state support
200VirtualBox_LIBS += $(LIB_VMM)
201endif
202ifeq ($(KBUILD_TYPE),release)
203 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
204else
205 VirtualBox_LDFLAGS.linux+= -rdynamic # for backtrace_symbols()
206 ifeq ($(USERNAME),dmik)
207 VirtualBox_LDFLAGS.win += /SUBSYSTEM:windows
208 else
209 VirtualBox_LDFLAGS.win += /SUBSYSTEM:console
210 endif
211endif
212
213if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
214 VirtualBox_LDFLAGS.win += /DelayLoad:QtOpenGLVBox4.dll /DelayLoad:OPENGL32.dll
215endif
216
217VirtualBox_LDFLAGS.darwin = \
218 -framework AppKit -framework Carbon \
219 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
220ifdef VBOX_WITH_ICHAT_THEATER
221 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
222endif
223if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
224 VirtualBox_LDFLAGS.darwin += -framework OpenGL
225endif
226
227VirtualBox_LIBS.win = \
228 $(PATH_SDK_WINPSDK_LIB)/Htmlhelp.Lib \
229 $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
230 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
231if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
232 VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
233endif
234
235if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
236 VirtualBox_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
237 VirtualBox_LIBS.solaris += GL
238 VirtualBox_LIBS.linux += GL
239endif
240
241# Headers containing definitions of classes that use the Q_OBJECT macro.
242VirtualBox_QT_MOCHDRS = \
243 src/VBoxAboutDlg.h \
244 src/VBoxCloseVMDlg.h \
245 src/VBoxGlobalSettings.h \
246 src/VBoxMediaManagerDlg.h \
247 src/VBoxSelectorWnd.h \
248 src/VBoxSnapshotDetailsDlg.h \
249 src/VBoxSnapshotsWgt.h \
250 src/VBoxTakeSnapshotDlg.h \
251 src/VBoxUpdateDlg.h \
252 src/VBoxVMInformationDlg.h \
253 src/UIVMListView.h \
254 src/UIVirtualBoxEventHandler.h \
255 src/VBoxVMLogViewer.h \
256 src/globals/VBoxGlobal.h \
257 src/globals/VBoxProblemReporter.h \
258 src/globals/VBoxUtils.h \
259 src/globals/UIMainEventListener.h \
260 src/globals/UIExtraDataEventHandler.h \
261 src/extensions/QIAdvancedSlider.h \
262 src/extensions/QIArrowButtonPress.h \
263 src/extensions/QIArrowButtonSwitch.h \
264 src/extensions/QIArrowSplitter.h \
265 src/extensions/QIDialog.h \
266 src/extensions/QIFileDialog.h \
267 src/extensions/QIHotKeyEdit.h \
268 src/extensions/QIHttp.h \
269 src/extensions/QILabel.h \
270 src/extensions/QILabelSeparator.h \
271 src/extensions/QIListView.h \
272 src/extensions/QIMainDialog.h \
273 src/extensions/QIMessageBox.h \
274 src/extensions/QIRichToolButton.h \
275 src/extensions/QISplitter.h \
276 src/extensions/QIStateIndicator.h \
277 src/extensions/QIStatusBar.h \
278 src/extensions/QITabWidget.h \
279 src/extensions/QIToolButton.h \
280 src/extensions/QITreeView.h \
281 src/extensions/QITreeWidget.h \
282 src/extensions/QIWidgetValidator.h \
283 src/extensions/QIWizard.h \
284 src/settings/VBoxSettingsDialog.h \
285 src/settings/VBoxSettingsDialogSpecific.h \
286 src/settings/VBoxSettingsPage.h \
287 src/settings/VBoxSettingsSelector.h \
288 src/settings/global/VBoxGLSettingsGeneral.h \
289 src/settings/global/VBoxGLSettingsInput.h \
290 src/settings/global/VBoxGLSettingsUpdate.h \
291 src/settings/global/VBoxGLSettingsLanguage.h \
292 src/settings/global/VBoxGLSettingsNetwork.h \
293 src/settings/global/VBoxGLSettingsNetworkDetails.h \
294 src/settings/vm/VBoxVMSettingsGeneral.h \
295 src/settings/vm/VBoxVMSettingsSystem.h \
296 src/settings/vm/VBoxVMSettingsDisplay.h \
297 src/settings/vm/VBoxVMSettingsHD.h \
298 src/settings/vm/VBoxVMSettingsAudio.h \
299 src/settings/vm/VBoxVMSettingsNetwork.h \
300 src/settings/vm/VBoxVMSettingsSerial.h \
301 src/settings/vm/VBoxVMSettingsParallel.h \
302 src/settings/vm/VBoxVMSettingsUSB.h \
303 src/settings/vm/VBoxVMSettingsUSBFilterDetails.h \
304 src/settings/vm/VBoxVMSettingsSF.h \
305 src/settings/vm/VBoxVMSettingsSFDetails.h \
306 src/wizards/newvm/UINewVMWzd.h \
307 src/wizards/newhd/UINewHDWzd.h \
308 src/wizards/firstrun/UIFirstRunWzd.h \
309 src/wizards/exportappliance/UIExportApplianceWzd.h \
310 src/wizards/importappliance/UIImportApplianceWzd.h \
311 src/widgets/UIDownloader.h \
312 src/widgets/UIDownloaderAdditions.h \
313 src/widgets/UIDownloaderUserManual.h \
314 src/widgets/UISpacerWidgets.h \
315 src/widgets/UISpecialControls.h \
316 src/widgets/VBoxApplianceEditorWgt.h \
317 src/widgets/VBoxBootTable.h \
318 src/widgets/VBoxExportApplianceWgt.h \
319 src/widgets/VBoxFilePathSelectorWidget.h \
320 src/widgets/VBoxImportApplianceWgt.h \
321 src/widgets/VBoxLineTextEdit.h \
322 src/widgets/VBoxMediaComboBox.h \
323 src/widgets/VBoxMiniToolBar.h \
324 src/widgets/VBoxOSTypeSelectorButton.h \
325 src/widgets/VBoxOSTypeSelectorWidget.h \
326 src/widgets/VBoxProgressDialog.h \
327 src/widgets/VBoxWarningPane.h \
328 src/runtime/UIMachine.h \
329 src/runtime/UISession.h \
330 src/runtime/UIActionsPool.h \
331 src/runtime/UIIndicatorsPool.h \
332 src/runtime/UIKeyboardHandler.h \
333 src/runtime/UIMouseHandler.h \
334 src/runtime/UIMachineLogic.h \
335 src/runtime/UIMachineView.h \
336 src/runtime/UIMultiScreenLayout.h \
337 src/runtime/UIConsoleEventHandler.h \
338 src/runtime/normal/UIKeyboardHandlerNormal.h \
339 src/runtime/normal/UIMachineLogicNormal.h \
340 src/runtime/normal/UIMachineWindowNormal.h \
341 src/runtime/normal/UIMachineViewNormal.h \
342 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h \
343 src/runtime/fullscreen/UIMachineLogicFullscreen.h \
344 src/runtime/fullscreen/UIMachineWindowFullscreen.h \
345 src/runtime/fullscreen/UIMachineViewFullscreen.h \
346 src/runtime/seamless/UIKeyboardHandlerSeamless.h \
347 src/runtime/seamless/UIMachineLogicSeamless.h \
348 src/runtime/seamless/UIMachineWindowSeamless.h \
349 src/runtime/seamless/UIMachineViewSeamless.h
350
351ifdef VBOX_WITH_REGISTRATION
352 VirtualBox_QT_MOCHDRS += \
353 src/wizards/registration/UIRegistrationWzd.h
354endif
355
356# Sources containing local definitions of classes that use the Q_OBJECT macro.
357VirtualBox_QT_MOCSRCS = \
358 src/VBoxSelectorWnd.cpp \
359 src/VBoxMediaManagerDlg.cpp \
360 src/runtime/UIActionsPool.cpp \
361 src/runtime/UIMachineMenuBar.cpp \
362 src/runtime/UIIndicatorsPool.cpp \
363 src/runtime/UIMachine.cpp \
364 src/runtime/UIMachineLogic.cpp \
365 src/extensions/QISplitter.cpp \
366 src/globals/UIExtraDataEventHandler.cpp
367
368ifdef VBOX_WITH_XPCOM
369 VirtualBox_QT_MOCSRCS += \
370 src/globals/COMDefs.cpp
371endif
372ifeq ($(KBUILD_TARGET),win)
373VirtualBox_QT_MOCSRCS += \
374 src/extensions/QIFileDialog.cpp
375endif
376
377ifdef VBOX_WITH_REGISTRATION
378 VirtualBox_QT_MOCSRCS += \
379 src/wizards/registration/UIRegistrationWzd.cpp
380endif
381
382VirtualBox_SOURCES = \
383 src/main.cpp \
384 src/VBoxAboutDlg.cpp \
385 src/VBoxCloseVMDlg.cpp \
386 src/VBoxGlobalSettings.cpp \
387 src/VBoxHelpActions.cpp \
388 src/VBoxMediaManagerDlg.cpp \
389 src/VBoxMedium.cpp \
390 src/VBoxSelectorWnd.cpp \
391 src/VBoxSnapshotDetailsDlg.cpp \
392 src/VBoxSnapshotsWgt.cpp \
393 src/VBoxTakeSnapshotDlg.cpp \
394 src/VBoxUpdateDlg.cpp \
395 src/VBoxVMInformationDlg.cpp \
396 src/UIVMItem.cpp \
397 src/UIVMListView.cpp \
398 src/UIVirtualBoxEventHandler.cpp \
399 src/VBoxVMLogViewer.cpp \
400 src/globals/COMDefs.cpp \
401 src/globals/VBoxDefs.cpp \
402 src/globals/VBoxGlobal.cpp \
403 src/globals/VBoxProblemReporter.cpp \
404 src/globals/UIIconPool.cpp \
405 src/globals/UIMainEventListener.cpp \
406 src/globals/UIExtraDataEventHandler.cpp \
407 src/globals/UIImageTools.cpp \
408 src/extensions/QIAdvancedSlider.cpp \
409 src/extensions/QIArrowButtonPress.cpp \
410 src/extensions/QIArrowButtonSwitch.cpp \
411 src/extensions/QIArrowSplitter.cpp \
412 src/extensions/QIDialog.cpp \
413 src/extensions/QIDialogButtonBox.cpp \
414 src/extensions/QIFileDialog.cpp \
415 src/extensions/QIHotKeyEdit.cpp \
416 src/extensions/QILabel.cpp \
417 src/extensions/QILabelSeparator.cpp \
418 src/extensions/QILineEdit.cpp \
419 src/extensions/QIListView.cpp \
420 src/extensions/QIMainDialog.cpp \
421 src/extensions/QIMessageBox.cpp \
422 src/extensions/QIRichToolButton.cpp \
423 src/extensions/QISplitter.cpp \
424 src/extensions/QIStateIndicator.cpp \
425 src/extensions/QIStatusBar.cpp \
426 src/extensions/QITreeView.cpp \
427 src/extensions/QITreeWidget.cpp \
428 src/extensions/QIWidgetValidator.cpp \
429 src/extensions/QIWizard.cpp \
430 src/settings/VBoxSettingsDialog.cpp \
431 src/settings/VBoxSettingsDialogSpecific.cpp \
432 src/settings/VBoxSettingsSelector.cpp \
433 src/settings/global/VBoxGLSettingsGeneral.cpp \
434 src/settings/global/VBoxGLSettingsInput.cpp \
435 src/settings/global/VBoxGLSettingsUpdate.cpp \
436 src/settings/global/VBoxGLSettingsLanguage.cpp \
437 src/settings/global/VBoxGLSettingsNetwork.cpp \
438 src/settings/global/VBoxGLSettingsNetworkDetails.cpp \
439 src/settings/vm/VBoxVMSettingsGeneral.cpp \
440 src/settings/vm/VBoxVMSettingsSystem.cpp \
441 src/settings/vm/VBoxVMSettingsDisplay.cpp \
442 src/settings/vm/VBoxVMSettingsHD.cpp \
443 src/settings/vm/VBoxVMSettingsAudio.cpp \
444 src/settings/vm/VBoxVMSettingsNetwork.cpp \
445 src/settings/vm/VBoxVMSettingsSerial.cpp \
446 src/settings/vm/VBoxVMSettingsParallel.cpp \
447 src/settings/vm/VBoxVMSettingsUSB.cpp \
448 src/settings/vm/VBoxVMSettingsUSBFilterDetails.cpp \
449 src/settings/vm/VBoxVMSettingsSF.cpp \
450 src/settings/vm/VBoxVMSettingsSFDetails.cpp \
451 src/wizards/newvm/UINewVMWzd.cpp \
452 src/wizards/newhd/UINewHDWzd.cpp \
453 src/wizards/firstrun/UIFirstRunWzd.cpp \
454 src/wizards/exportappliance/UIExportApplianceWzd.cpp \
455 src/wizards/importappliance/UIImportApplianceWzd.cpp \
456 src/widgets/UIDownloader.cpp \
457 src/widgets/UIDownloaderAdditions.cpp \
458 src/widgets/UIDownloaderUserManual.cpp \
459 src/widgets/UISpecialControls.cpp \
460 src/widgets/VBoxApplianceEditorWgt.cpp \
461 src/widgets/VBoxBootTable.cpp \
462 src/widgets/VBoxExportApplianceWgt.cpp \
463 src/widgets/VBoxFilePathSelectorWidget.cpp \
464 src/widgets/VBoxGuestRAMSlider.cpp \
465 src/widgets/VBoxImportApplianceWgt.cpp \
466 src/widgets/VBoxLineTextEdit.cpp \
467 src/widgets/VBoxMediaComboBox.cpp \
468 src/widgets/VBoxMiniToolBar.cpp \
469 src/widgets/VBoxOSTypeSelectorButton.cpp \
470 src/widgets/VBoxOSTypeSelectorWidget.cpp \
471 src/widgets/VBoxProgressDialog.cpp \
472 src/widgets/VBoxWarningPane.cpp \
473 src/runtime/UIMachine.cpp \
474 src/runtime/UISession.cpp \
475 src/runtime/UIActionsPool.cpp \
476 src/runtime/UIIndicatorsPool.cpp \
477 src/runtime/UIKeyboardHandler.cpp \
478 src/runtime/UIMouseHandler.cpp \
479 src/runtime/UIFrameBuffer.cpp \
480 src/runtime/UIFrameBufferQGL.cpp \
481 src/runtime/UIFrameBufferQImage.cpp \
482 src/runtime/UIFrameBufferSDL.cpp \
483 src/runtime/UIMachineLogic.cpp \
484 src/runtime/UIMachineWindow.cpp \
485 src/runtime/UIMachineView.cpp \
486 src/runtime/UIMachineMenuBar.cpp \
487 src/runtime/UIMultiScreenLayout.cpp \
488 src/runtime/UIConsoleEventHandler.cpp \
489 src/runtime/normal/UIKeyboardHandlerNormal.cpp \
490 src/runtime/normal/UIMachineLogicNormal.cpp \
491 src/runtime/normal/UIMachineWindowNormal.cpp \
492 src/runtime/normal/UIMachineViewNormal.cpp \
493 src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp \
494 src/runtime/fullscreen/UIMachineLogicFullscreen.cpp \
495 src/runtime/fullscreen/UIMachineWindowFullscreen.cpp \
496 src/runtime/fullscreen/UIMachineViewFullscreen.cpp \
497 src/runtime/seamless/UIKeyboardHandlerSeamless.cpp \
498 src/runtime/seamless/UIMachineLogicSeamless.cpp \
499 src/runtime/seamless/UIMachineWindowSeamless.cpp \
500 src/runtime/seamless/UIMachineViewSeamless.cpp
501VirtualBox_SOURCES.win += \
502 src/runtime/UIFrameBufferDirectDraw.cpp
503VirtualBox_SOURCES.darwin += \
504 src/runtime/UIFrameBufferQuartz2D.cpp \
505 src/darwin/UIAbstractDockIconPreview.cpp \
506 src/darwin/UICocoaDockIconPreview.mm
507
508if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
509 ifndef VBOX_OSE
510 VirtualBox_QT_MOCHDRS += \
511 src/VBoxLicenseViewer.h
512 VirtualBox_SOURCES += \
513 src/VBoxLicenseViewer.cpp
514 else
515 VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
516 src/VBoxLicenseViewer.h \
517 src/VBoxLicenseViewer.cpp
518 endif
519 VirtualBox_SOURCES += \
520 src/X11/XKeyboard-new.cpp \
521 src/X11/VBoxX11Helper.cpp
522else
523 VirtualBox_VBOX_EXTRA_NLS_SOURCES += \
524 src/VBoxLicenseViewer.h \
525 src/VBoxLicenseViewer.cpp
526endif
527
528ifdef VBOX_WITH_REGISTRATION
529 VirtualBox_SOURCES += \
530 src/wizards/registration/UIRegistrationWzd.cpp
531endif
532
533VirtualBox_SOURCES.win += \
534 src/win/VirtualBox.rc
535
536VirtualBox_SOURCES.darwin += \
537 src/darwin/DarwinKeyboard.cpp \
538 src/darwin/VBoxUtils-darwin.cpp
539
540ifdef VBOX_WITH_ICHAT_THEATER
541 VirtualBox_SOURCES.darwin += \
542 src/darwin/VBoxIChatTheaterWrapper.m
543endif
544
545ifdef VBOX_WITH_COCOA_QT
546 VirtualBox_DEFS += VBOX_DARWIN_USE_NATIVE_CONTROLS
547 VirtualBox_SOURCES.darwin += \
548 src/darwin/CocoaEventHelper.mm \
549 src/darwin/UICocoaApplication.mm \
550 src/darwin/VBoxUtils-darwin-cocoa.mm \
551 src/darwin/UICocoaSpecialControls.mm
552 VirtualBox_QT_MOCHDRS.darwin = \
553 src/darwin/UICocoaSpecialControls.h
554endif
555
556if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
557 VirtualBox_SOURCES += \
558 src/VBoxFBQGL.cpp \
559 src/VBoxFBOverlay.cpp \
560 src/VBoxGLSupportInfo.cpp
561endif
562# The Qt modules we're using.
563# (The include directory and lib/framework for each module will be added by the Qt4 unit.)
564VirtualBox_QT_MODULES = Core Gui Network
565
566if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
567 VirtualBox_QT_MODULES += OpenGL
568endif
569
570# Import QDesigner UI sources and translations from VBoxUI.pro.
571ifndef VBOX_WITH_REGISTRATION
572 FORMS := $(filter-out src/wizards/registration/UIRegistrationWzdPage1.ui,$(FORMS))
573endif
574$(eval VirtualBox_SOURCES += $(FORMS))
575
576# Resource files with some OSE differences (VirtualBoxBrand.qrc is created further down).
577VirtualBox_SOURCES += VirtualBox1.qrc
578VirtualBox1.qrc_RCCFLAGS = -name BASIC1
579VirtualBox_SOURCES += VirtualBox2.qrc
580VirtualBox2.qrc_RCCFLAGS = -name BASIC2
581ifeq ($(KBUILD_TARGET),darwin)
582 VirtualBox_SOURCES += VirtualBoxMac.qrc
583 VirtualBoxMac.qrc_RCCFLAGS = -name MAC
584else
585 VirtualBox_SOURCES += VirtualBoxOther.qrc
586 VirtualBoxOther.qrc_RCCFLAGS = -name OTHER
587endif
588VirtualBox_SOURCES += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
589$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc_RCCFLAGS = -name BRAND
590if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
591 VirtualBox_SOURCES += VirtualBoxShaders.qrc
592 VirtualBoxShaders.qrc_RCCFLAGS = -name SHADERS
593endif
594
595# Import the translation source from VBoxUI.pro and add the qt_xx_YY counterparts
596VirtualBox_QT_TRANSLATIONS := $(TRANSLATIONS) \
597 $(patsubst nls/VirtualBox_%.ts,nls/qt_%.ts, $(filter nls/VirtualBox_%.ts,$(TRANSLATIONS)))
598# Compress the translation units.
599VirtualBox_LRCFLAGS = -silent
600# Where to install the translations (a separate install target, VirtualBox-nls-inst is created).
601VirtualBox_QT_TRANSLATIONS_INST = $(INST_BIN)nls/
602
603
604## @todo how to detect what tool is used?
605## @todo GCC3 seems to lack -Wno-missing-base-class-initializer, so we use
606# more generic -Wno-extra
607# bird: What about $(if $(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-missing-base-class-initializer),$(VBOX_GCC_Wno-extra))?
608ifdef VBOX_WITH_XPCOM
609 VirtualBox_src/globals/COMDefs.cpp_CXXFLAGS = $(VBOX_GCC_Wno-extra)
610endif
611
612
613#
614# Generate the COM wrappers.
615#
616## @todo This needs some cleaning up perhaps...
617## @todo kBuild: Non-existing +| targets should be tried remade or what?
618VirtualBox_BLDDIRS += $(PATH_VirtualBox)/include
619VirtualBox_INTERMEDIATES += $(PATH_VirtualBox)/include/COMWrappers.h
620VirtualBox_CLEAN += \
621 $(PATH_VirtualBox)/include/COMWrappers \
622 $(PATH_VirtualBox)/include/COMWrappers.tmp \
623 $(PATH_VirtualBox)/include/COMWrappers.h \
624 $(PATH_VirtualBox)/include/COMWrappers.cpp
625VirtualBox_SOURCES += $(PATH_VirtualBox)/include/COMWrappers.cpp
626
627$$(PATH_VirtualBox)/include/COMWrappers \
628+| $$(PATH_VirtualBox)/include/COMWrappers.h \
629+| $$(PATH_VirtualBox)/include/COMWrappers.cpp: \
630 $(VBOX_XIDL_FILE) \
631 $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl \
632 | $$(dir $$@)
633 $(call MSG_GENERATE,VirtualBox,$<,$@)
634 $(QUIET)$(RM) -f $@ [email protected] [email protected] [email protected]
635 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
636
637 $(QUIET)$(SED) -e '1,/\/\/ wrapper definitions/ !d' \
638 --output [email protected] $@
639 $(QUIET)$(CP) --changed [email protected] [email protected]
640
641 $(QUIET)$(APPEND) -t -n [email protected] \
642 '/*' \
643 ' * DO NOT EDIT! This is a generated file, see COMWrappers.h for details.' \
644 ' */' \
645 '' \
646 '#include "VBoxGlobal.h"' \
647 ''
648 $(QUIET)$(SED) -e '/\/\/ wrapper definitions/,9999999 !d' \
649 -e 's/^inline //' \
650 --append [email protected] $@
651 $(QUIET)$(CP) --changed [email protected] [email protected]
652 $(QUIET)$(RM) -f [email protected]
653
654
655# alias for generating the COM Wrappers file.
656testwrappers:: $$(PATH_VirtualBox)/include/COMWrappers.h
657
658
659#
660# Generate qrc file with branded icons.
661#
662VirtualBox_BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)
663VirtualBox_CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc
664$(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBrand.qrc: \
665 $(VBOX_VIRTUALBOX4_SRC)/VirtualBoxBrand.qrc \
666 | $$(dir $$@)
667 $(call MSG_GENERATE,VirtualBox,$<,$@)
668 $(QUIET)$(SED) \
669 -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
670 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
671 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
672 -e 's;@VBOX_VBOX_20PX_PNG@;$(VBOX_BRAND_GUI_VBOX_20PX_PNG);g' \
673 -e 's;@VBOX_VBOX_32PX_PNG@;$(VBOX_BRAND_GUI_VBOX_32PX_PNG);g' \
674 -e 's;@VBOX_VBOX_40PX_PNG@;$(VBOX_BRAND_GUI_VBOX_40PX_PNG);g' \
675 -e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
676 -e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
677 -e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
678 --output $@ \
679 $<
680
681
682#
683# Precompiled header - non-functional atm.
684#
685ifdef VBOX_WITH_PRECOMPILED_HEADERS
686VirtualBox_INCS <= $(VirtualBox_0_OUTDIR)/include
687VirtualBox_DEFS += VBOX_WITH_PRECOMPILED_HEADERS
688VirtualBox_CXXFLAGS += -Winvalid-pch -fpch-preprocess
689VirtualBox_INTERMEDIATES += $(VirtualBox_0_OUTDIR)/include/precomp.h.gch
690
691tstx: $$(VirtualBox_0_OUTDIR)/include/precomp.h.gch
692
693$$(VirtualBox_0_OUTDIR)/include/precomp.h.gch: \
694 $(PATH_SUB_CURRENT)/src/precomp.h \
695 $$(VirtualBox_0_OUTDIR)/include/COMWrappers.h \
696 $$(filter %.gen.h, $$(VirtualBox_INTERMEDIATES) ) \
697 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h \
698 | $$(dir $$@)
699 time 'g++-4.0' \
700 '-c' \
701 '-g' \
702 $(if-expr "$(KBUILD_TYPE)" == "debug", , -O2 ) \
703 '-pipe' \
704 '-Wall' \
705 '-Wextra' \
706 '-Wno-missing-field-initializers' \
707 '-Wno-trigraphs' \
708 '-frtti' \
709 '-fno-exceptions' \
710 '-Wno-non-virtual-dtor' \
711 '-Wno-long-long' \
712 \
713 '-fshort-wchar' \
714 '-fno-strict-aliasing' \
715 '-fvisibility=hidden' \
716 '-DVBOX_HAVE_VISIBILITY_HIDDEN' \
717 '-DRT_USE_VISIBILITY_DEFAULT' \
718 '-fvisibility-inlines-hidden' \
719 '-Winvalid-pch' \
720 '-fpch-preprocess' \
721 \
722 '-F$(PATH_SDK_QT4)/Frameworks' \
723 '-mmacosx-version-min=10.5' \
724 '-isysroot' \
725 '/Developer/SDKs/MacOSX10.5.sdk' \
726 '-m32' \
727 \
728 $(foreach inc,$(VirtualBox_INCS),\$(NL)$(TAB)-I$(inc)) \
729 '-I$(PATH_ROOT)/include' \
730 '-I$(PATH_OUT)' \
731 '-DVBOX' \
732 '-DVBOX_WITH_DEBUGGER' \
733 '-DVBOX_WITH_64_BITS_GUESTS' \
734 $(if-expr "$(KBUILD_TYPE)" == "debug", '-DDEBUG' '-DDEBUG_bird' '-DDEBUG_USERNAME=bird' '-DVBOX_CHECK_STATE' ,) \
735 '-DRT_OS_DARWIN' \
736 '-D__DARWIN__' \
737 '-DRT_ARCH_X86' \
738 '-D__X86__' \
739 '-DIN_RING3' \
740 '-DQT_NO_DEBUG' \
741 '-DQT_THREAD_SUPPORT' \
742 '-DQT_SHARED' \
743 '-DHAVE_CONFIG_H' \
744 '-DHC_ARCH_BITS=32' \
745 '-DGC_ARCH_BITS=64' \
746 '-DVBOX_WITH_XPCOM' \
747 '-DVBOX_WITH_REGISTRATION' \
748 '-DVBOX_WITH_REGISTRATION_REQUEST' \
749 '-DVBOX_WITH_UPDATE_REQUEST' \
750 '-DVBOX_WITH_ALSA' \
751 '-DVBOX_WITH_PULSE' \
752 '-DVBOX_WITH_E1000' \
753 '-DVBOX_WITH_NETFLT' \
754 '-DVBOX_WITH_DEBUGGER_GUI' \
755 $(if-expr "$(KBUILD_TYPE)" != "release", '-DVBOX_WITH_DEBUGGER_GUI_MENU', ) \
756 '-DVBOX_WITH_VIDEOHWACCEL' \
757 '-DVBOX_GUI_USE_QGL' \
758 '-DVBOX_WITH_VIRTIO' \
759 '-DVBOX_WITH_PRECOMPILED_HEADERS' \
760 '-DVBOX_DARWIN_USE_NATIVE_CONTROLS' \
761 '-DQT_CORE_LIB' \
762 '-DQT_GUI_LIB' \
763 '-DQT_NETWORK_LIB' \
764 '-DQT_OPENGL_LIB' \
765 '-DMAC_OS_X_VERSION_MIN_REQUIRED=1050' \
766 '-DMAC_OS_X_VERSION_MAX_ALLOWED=1050' \
767 '-DVBOX_GUI_USE_QUARTZ2D' \
768 '-DVBOX_GUI_USE_QIMAGE' \
769 '-o' $@ $<
770endif
771
772ifeq ($(KBUILD_TARGET),win)
773#
774# On Windows we'll have to generate/edit part of the resource file.
775# The IDI_ICON1 name is Qt specific.
776#
777src/win/VirtualBox.rc_INCS = $(PATH_VirtualBox)
778src/win/VirtualBox.rc_DEPS = $(PATH_VirtualBox)/VirtualBox-icon.rc
779src/win/VirtualBox.rc_CLEAN = $(PATH_VirtualBox)/VirtualBox-icon.rc
780
781$$(PATH_VirtualBox)/VirtualBox-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
782 $(APPEND) -t $@ 'IDI_ICON1 ICON "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
783
784endif # win
785
786
787ifeq ($(KBUILD_TARGET),darwin)
788#
789# Create directories for each approved language or the application
790# menu won't be translated.
791#
792INSTALLS += VirtualBox.lproj
793VirtualBox.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
794VirtualBox.lproj_MODE = 755
795VirtualBox.lproj_DIRS := $(addsuffix .lproj,$(VBOX_APPROVED_GUI_LANGUAGES))
796
797#
798# On OS X (darwin) we need to install icon resources and compulsory bundle contents.
799# The VirtualBoxVM.app helper is for launching VMs (fixes some issues with the dock).
800#
801INSTALLS += VirtualBox.app
802VirtualBox.app_INST = $(INST_VIRTUALBOX)Contents/
803VirtualBox.app_MODE = 644
804VirtualBox.app_SOURCES = \
805 src/darwin/PkgInfo \
806 $(PATH_VirtualBox.app)/Info.plist \
807 $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
808
809$$(PATH_VirtualBox.app)/Info.plist: $(PATH_SUB_CURRENT)/src/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/
810 $(call MSG_GENERATE,VirtualBox.app,$<,$@)
811 $(QUIET)$(RM) -f $@
812 $(QUIET)$(SED) \
813 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
814 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
815 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
816 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
817 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
818 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
819 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
820 $< > $@
821
822INSTALLS += VirtualBoxVM.app
823VirtualBoxVM.app_INST = $(VirtualBox.app_INST)Resources/VirtualBoxVM.app/Contents/
824VirtualBoxVM.app_MODE = 644
825VirtualBoxVM.app_SOURCES = \
826 src/darwin/VM-PkgInfo=>PkgInfo \
827 $(PATH_VirtualBoxVM.app)/VM-Info.plist=>Info.plist
828VirtualBoxVM.app_SYMLINKS = \
829 MacOS=>../../../MacOS/ \
830 Resources=>../../../Resources/
831
832$$(PATH_VirtualBoxVM.app)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
833 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@)
834 $(QUIET)$(RM) -f $@
835 $(QUIET)$(SED) \
836 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
837 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
838 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
839 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
840 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
841 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
842 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
843 --output $@ $<
844endif # darwin
845
846#
847# App for testing GL support
848#
849if defined(VBOX_WITH_VIDEOHWACCEL)
850 if1of ($(KBUILD_TARGET), win linux)
851 LIBRARIES += VBoxOGL2D
852 VBoxOGL2D_TEMPLATE = VBOXR3STATIC
853 VBoxOGL2D_USES = qt4
854 VBoxOGL2D_SDKS = QT4
855 VBoxOGL2D_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
856 VBoxOGL2D_QT_MODULES += OpenGL
857 VBoxOGL2D_SOURCES = \
858 src/VBoxGLSupportInfo.cpp
859 VBoxOGL2D_INCS = include
860 endif
861endif
862
863#
864# Testcase for the darwin keyboard routines.
865#
866ifdef VBOX_WITH_TESTCASES
867PROGRAMS.darwin += tstDarwinKeyboard
868tstDarwinKeyboard_NAME = tstDarwinKeyboard
869tstDarwinKeyboard_TEMPLATE = VBOXR3TSTEXE
870tstDarwinKeyboard_DEFS.x86 = USE_HID_FOR_MODIFIERS
871tstDarwinKeyboard_INCS = include
872tstDarwinKeyboard_SOURCES = \
873 src/darwin/tstDarwinKeyboard.cpp \
874 src/darwin/DarwinKeyboard.cpp
875tstDarwinKeyboard_SOURCES.amd64 = \
876 src/darwin/CocoaEventHelper.mm
877tstDarwinKeyboard_LDFLAGS = -framework IOKit -framework Carbon -framework AppKit
878tstDarwinKeyboard_LIBS = \
879 $(LIB_RUNTIME)
880endif
881
882
883# Unset everything that was loaded from VBoxUI.pro.
884TEMPLATE := $(SAVED_TEMPLATE)
885SAVED_TEMPLATE :=
886LANGUAGE :=
887FORMS :=
888TRANSLATIONS :=
889IMAGES :=
890
891
892# Commit the magic.
893# (note: before custom rules that make usage of generated variables!).
894include $(KBUILD_PATH)/subfooter.kmk
895
896#
897# Update all known NLS translation (.ts) files in the nls/ subdirectory.
898#
899# NOTE: This target is intended to be run only by the GUI maintainer shortly
900# before a new product release. VirtualBox_xx_YY.ts is a template for new
901# languages and should never be actually translated or installed.
902#
903# For Qt >= 4.6.0 it maybe necessary to add -I $(VBOX_GUI_INC_DIRS) to the
904# lupdate call
905#
906#VirtualBox_QT_TRANSLATIONS = nls/VirtualBox_de.ts
907updatenls:: makeallnls nls/VirtualBox_en.ts
908
909makeallnls:: \
910 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
911 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
912 $(call MSG_L1,lupdate all languages (nls/*.ts))
913 $(QUIET)$(TOOL_QT4_LUPDATE) \
914 $^ \
915 -ts \
916 $(filter-out nls/VirtualBox_en.ts,$(filter-out nls/qt_%.ts,$(VirtualBox_QT_TRANSLATIONS))) \
917 nls/VirtualBox_xx_YY.ts
918
919# Create the English translation file. This is something special cause it will
920# contain the plural forms only.
921nls/VirtualBox_en.ts: \
922 $(foreach header,$(VBOX_GUI_INC_DIRS),$(wildcard $(header)/*.h)) \
923 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES))
924 $(call MSG_L1,lupdate $@)
925 $(QUIET)$(TOOL_QT4_LUPDATE) \
926 $^ \
927 -ts \
928 $@
929 $(QUIET)$(SED) -n -i -e \
930 '/<context>/,/<\/context>/!p;/<context>/h;/<name>/H;/<message numerus="yes">/,/<\/message>/H;/<\/context>/{H;x;/<message/p}' \
931 $@
932
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette