VirtualBox

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

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

FE/Qt4: Save some bytes by removing unused images on Mac OS X.

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