[geany/geany-plugins] 5aa42a: Add a deprecation notice when using the Waf build system

Enrico Tröger git-noreply at xxxxx
Sun Nov 8 22:55:13 UTC 2015


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 08 Nov 2015 22:55:13 UTC
Commit:      5aa42a34f22fe8c93d30386cd3356b4ea7ea81aa
             https://github.com/geany/geany-plugins/commit/5aa42a34f22fe8c93d30386cd3356b4ea7ea81aa

Log Message:
-----------
Add a deprecation notice when using the Waf build system

As Waf is to be dropped after the 1.26 release, inform the user
to better use the Autotools 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