Add compatibility options to build script to support packaging

Debian CDBS for example can use the 'configure' script in a way
that doesn't require waf specific rules, but it insists on passing
--build and --disable-maintainer-mode.
This commit is contained in:
Christian Dywan 2009-10-31 22:44:30 +01:00
parent d550d2c520
commit 6f69a04905

View file

@ -343,6 +343,10 @@ def set_options (opt):
add_enable_option ('addons', 'building of extensions', group)
add_enable_option ('hildon', 'Maemo integration', group, disable=not is_maemo ())
# Provided for compatibility
opt.add_option ('--build', help='Ignored')
opt.add_option ('--disable-maintainer-mode', help='Ignored')
def build (bld):
def image_to_win32ico (task):
'Converts an image to a Win32 ico'
@ -380,7 +384,7 @@ def build (bld):
if bld.env['docs']:
bld.install_files ('${DOCDIR}/' + APPNAME + '/', \
'AUTHORS ChangeLog COPYING EXPAT README TRANSLATE')
'AUTHORS COPYING ChangeLog EXPAT README')
# Install default configuration
bld.install_files ('${SYSCONFDIR}/xdg/' + APPNAME + '/', 'data/search')