Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Wed, 18 Feb 2015 19:10:16 UTC Commit: 3d3ff936bef18e1c920135589909eee78841768b https://github.com/geany/geany-plugins/commit/3d3ff936bef18e1c920135589909ee...
Log Message: ----------- waf: Allow to explicitly specify the plugin name
Add an option to explicitly set the plugin name instead of deriving it from the `name` which is also used as log domain and expected to use CamelCase.
This should seldom be useful, but for plugins using separators in their lowercase names (like e.g. dashes).
Modified Paths: -------------- build/wafutils.py
Modified: build/wafutils.py 5 lines changed, 3 insertions(+), 2 deletions(-) =================================================================== @@ -77,7 +77,7 @@ def add_to_env_and_define(conf, key, value, quote=False): conf.env[key] = value
-def build_plugin(ctx, name, sources=None, includes=None, defines=None, libraries=None, features=None): +def build_plugin(ctx, name, plugin_name=None, sources=None, includes=None, defines=None, libraries=None, features=None): """ Common build task for plugins, every plugin should call this in its wscript_build module
@@ -86,6 +86,7 @@ def build_plugin(ctx, name, sources=None, includes=None, defines=None, libraries
@param ctx (waflib.Build.BuildContext) @param name (str) + @param plugin_name (str) @param sources (list) @param includes (list) @param defines (list) @@ -93,7 +94,7 @@ def build_plugin(ctx, name, sources=None, includes=None, defines=None, libraries @param features (list) """ log_domain = name - plugin_name = name.lower() + plugin_name = plugin_name or name.lower() includes = includes or [] defines = defines or [] libraries = libraries or []
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).