summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_utils.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-09 11:10:45 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-09 13:17:19 +1100
commitebe2867fc2c01fb5288d62eedb0e2f43788b9f27 (patch)
tree7107cdb3efebf7b13aa591442c2b5ef0484674fd /buildtools/wafsamba/samba_utils.py
parent2771266defbf92373787e7f0fb795de713a02770 (diff)
downloadsamba-ebe2867fc2c01fb5288d62eedb0e2f43788b9f27.tar.gz
samba-ebe2867fc2c01fb5288d62eedb0e2f43788b9f27.tar.bz2
samba-ebe2867fc2c01fb5288d62eedb0e2f43788b9f27.zip
waf-abi: auto-generate per-symbol versions from ABI files
This changes our version-script generation to use the ABI files that are saved in git with each version number change of our public libraries. We use these ABI files to generate a linker version script that gives the exact version number that each symbol was introduced. This provides us with automatic fine grained symbol versioning. Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools/wafsamba/samba_utils.py')
-rw-r--r--buildtools/wafsamba/samba_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index 5811cb3240..563009e093 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -339,6 +339,9 @@ def EXPAND_VARIABLES(ctx, varstr, vars=None):
ret.append(EXPAND_VARIABLES(ctx, s, vars=vars))
return ret
+ if not isinstance(varstr, str):
+ return varstr
+
import Environment
env = Environment.Environment()
ret = varstr