Skip to content

Commit

Permalink
Add a deprecation notice when using the Waf build system
Browse files Browse the repository at this point in the history
As Waf is to be dropped after the 1.26 release, inform the user
to better use the Autotools build system.
  • Loading branch information
eht16 committed Nov 8, 2015
1 parent a422305 commit 7b5e9a9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wscript
Expand Up @@ -349,6 +349,15 @@ but you then may not have a local copy of the HTML manual.'''
conf.msg('Use virtual terminal support', conf.options.no_vte and 'no' or 'yes')
if revision is not None:
conf.msg('Compiling Git revision', revision)
# deprecation warning
_show_deprecation_warning(conf)


def _show_deprecation_warning(ctx):
Logs.pprint(
'RED',
'The Waf build system is deprecated and will be removed in the removed in Geany 1.27. '
'Please use the Autotools build system.')


def options(opt):
Expand Down Expand Up @@ -393,6 +402,7 @@ def options(opt):

def build(bld):
is_win32 = _target_is_win32(bld)
bld.add_post_fun(_show_deprecation_warning)

if bld.cmd == 'clean':
_remove_linguas_file()
Expand Down

0 comments on commit 7b5e9a9

Please sign in to comment.