diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-18 12:43:15 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-18 15:00:37 +1000 |
commit | d3dea9b1248edf9a3e96e88bea8de3e098fbc2fe (patch) | |
tree | 65d6715821f50f237668f8793f1805a3f9a7a36e /buildtools/wafsamba/wafsamba.py | |
parent | 877439e26422568bd5ca6ffc019c3ae1d6c2499c (diff) | |
download | samba-d3dea9b1248edf9a3e96e88bea8de3e098fbc2fe.tar.gz samba-d3dea9b1248edf9a3e96e88bea8de3e098fbc2fe.tar.bz2 samba-d3dea9b1248edf9a3e96e88bea8de3e098fbc2fe.zip |
build: added ABI checking to the WAF build
See http://wiki.samba.org/index.php/Waf#ABI_Checking for details
Diffstat (limited to 'buildtools/wafsamba/wafsamba.py')
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 633484bd68..1714718c36 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -20,6 +20,7 @@ from samba_deps import * from samba_bundled import * import samba_install import samba_conftests +import samba_abi import tru64cc import irixcc import generic_cc @@ -108,6 +109,9 @@ def SAMBA_LIBRARY(bld, libname, source, target_type='LIBRARY', bundled_extension=True, link_name=None, + abi_file=None, + abi_match=None, + hide_symbols=False, enabled=True): '''define a Samba library''' @@ -142,6 +146,7 @@ def SAMBA_LIBRARY(bld, libname, source, autoproto = autoproto, depends_on = depends_on, needs_python = needs_python, + hide_symbols = hide_symbols, local_include = local_include) if libname == obj_target: @@ -165,6 +170,11 @@ def SAMBA_LIBRARY(bld, libname, source, features += ' pyext' elif needs_python: features += ' pyembed' + if abi_file: + features += ' abi_check' + + if abi_file: + abi_file = os.path.join(bld.curdir, abi_file) bld.SET_BUILD_GROUP(group) t = bld( @@ -181,7 +191,9 @@ def SAMBA_LIBRARY(bld, libname, source, samba_inst_path = install_path, name = libname, samba_realname = realname, - samba_install = install + samba_install = install, + abi_file = abi_file, + abi_match = abi_match ) if link_name: @@ -366,6 +378,7 @@ def SAMBA_SUBSYSTEM(bld, modname, source, use_hostcc=False, use_global_deps=True, vars=None, + hide_symbols=False, needs_python=False): '''define a Samba subsystem''' @@ -395,7 +408,7 @@ def SAMBA_SUBSYSTEM(bld, modname, source, features = features, source = source, target = modname, - samba_cflags = CURRENT_CFLAGS(bld, modname, cflags), + samba_cflags = CURRENT_CFLAGS(bld, modname, cflags, hide_symbols=hide_symbols), depends_on = depends_on, samba_deps = TO_LIST(deps), samba_includes = includes, |