waf: disable-python - add option globally to build system
authorIan Stakenvicius <axs@gentoo.org>
Fri, 27 Jan 2017 18:28:01 +0000 (13:28 -0500)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Mar 2017 06:31:12 +0000 (07:31 +0100)
commit5bbcd09382a65f9fb86b446bfbaf58a9b6e13aa1
treef4ce0450804e867e52a6993159ecb7ff55ca0714
parent9a9e3423d8c7be6350cba20cb6001fc14d47d336
waf: disable-python - add option globally to build system

This commit adds --disable-python as an option to the build system.
It adds PYTHON_BUILD_IS_ENABLED() to bld, to be used with enabled=
on other modules, and adjusts SAMBA_PYTHON() to set enabled=False
if PYTHON_BUILD_IS_ENABLED() is false.

Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
buildtools/wafsamba/samba_python.py
buildtools/wafsamba/wscript