VirtualBox

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

Last change on this file since 29700 was 29654, checked in by vboxsync, 15 years ago

FE/Qt and Common: move the X11 keyboard library out of the GUI

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

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