summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-16 14:26:20 +0200
committerDavid Robillard <d@drobilla.net>2018-09-16 14:26:20 +0200
commit5db477ce0633673667961dc27842922d70c58e58 (patch)
treea2255c7652924bb872fc8e8e0733bf0aef0536d8 /extras
parent982416b8a6c6728e200243e1be3ab60435c08830 (diff)
downloadautowaf-5db477ce0633673667961dc27842922d70c58e58.tar.gz
autowaf-5db477ce0633673667961dc27842922d70c58e58.tar.bz2
autowaf-5db477ce0633673667961dc27842922d70c58e58.zip
Automatically define version for child libraries
Diffstat (limited to 'extras')
-rw-r--r--extras/autowaf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py
index a4a06ba..fe93c07 100644
--- a/extras/autowaf.py
+++ b/extras/autowaf.py
@@ -441,6 +441,8 @@ def set_lib_env(conf, name, version):
conf.env['LIBPATH_' + NAME] = [conf.env.LIBDIR]
conf.env['LIB_' + NAME] = [lib_name]
+ conf.define(NAME + '_VERSION', version)
+
def set_line_just(conf, width):
global line_just
line_just = max(line_just, width)