[geany/geany-plugins] 1f518d: Merge pull request #299 from eht16/waf_deprecation_notice

Frank Lanitz git-noreply at xxxxx
Mon Nov 9 20:20:40 UTC 2015


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Mon, 09 Nov 2015 20:20:40 UTC
Commit:      1f518dbaf9358f7f98adb26e709ee4a98227a84e
             https://github.com/geany/geany-plugins/commit/1f518dbaf9358f7f98adb26e709ee4a98227a84e

Log Message:
-----------
Merge pull request #299 from eht16/waf_deprecation_notice

Add a deprecation notice when using the Waf build system


Modified Paths:
--------------
    wscript

Modified: wscript
10 lines changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -130,6 +130,15 @@ def configure(conf):
     conf.msg('Plugins to compile', ' '.join(enabled_plugins))
     plugins_with_missing_dependencies =conf.env['plugins_with_missing_dependencies']
     conf.msg('Plugins to skip due to missing dependencies', ' '.join(plugins_with_missing_dependencies))
+    # 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 configure_plugins(conf, enabled_plugins):
@@ -231,6 +240,7 @@ def options(opt):
 def build(bld):
     is_win32 = target_is_win32(bld)
     enabled_plugins = bld.env['enabled_plugins']
+    bld.add_post_fun(_show_deprecation_warning)
 
     if bld.cmd == 'clean':
         remove_linguas_file()



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list