VirtualBox

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

Last change on this file since 26816 was 26797, checked in by vboxsync, 15 years ago

FE/Qt4: new core: QGL compiles again

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