diff options
author | makaimann <makaim@stanford.edu> | 2020-02-19 13:54:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 15:54:17 -0600 |
commit | c82720479efcf922136f0919f6fc26a502b2515a (patch) | |
tree | f9007e124cfc07490e914ae1e1e05747e1e1ee11 /configure.sh | |
parent | c6a9ab9da205df7cbf192edc142ee151404dcb1b (diff) |
Add Python bindings using Cython -- see below for more details (#2879)
Diffstat (limited to 'configure.sh')
-rwxr-xr-x | configure.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.sh b/configure.sh index 5763fa7ce..611ac54ad 100755 --- a/configure.sh +++ b/configure.sh @@ -44,6 +44,7 @@ The following flags enable optional features (disable with --no-<option name>). --unit-testing support for unit testing --python2 prefer using Python 2 (also for Python bindings) --python3 prefer using Python 3 (also for Python bindings) + --python-bindings build Python bindings based on new C++ API --asan build with ASan instrumentation --ubsan build with UBSan instrumentation --tsan build with TSan instrumentation @@ -141,6 +142,7 @@ tracing=default unit_testing=default python2=default python3=default +python_bindings=default valgrind=default profiling=default readline=default @@ -279,6 +281,9 @@ do --python3) python3=ON;; --no-python3) python3=OFF;; + --python-bindings) python_bindings=ON;; + --no-python-bindings) python_bindings=OFF;; + --valgrind) valgrind=ON;; --no-valgrind) valgrind=OFF;; @@ -404,6 +409,8 @@ cmake_opts="" && cmake_opts="$cmake_opts -DUSE_PYTHON2=$python2" [ $python3 != default ] \ && cmake_opts="$cmake_opts -DUSE_PYTHON3=$python3" +[ $python_bindings != default ] \ + && cmake_opts="$cmake_opts -DBUILD_BINDINGS_PYTHON=$python_bindings" [ $valgrind != default ] \ && cmake_opts="$cmake_opts -DENABLE_VALGRIND=$valgrind" [ $profiling != default ] \ @@ -428,9 +435,9 @@ cmake_opts="" && cmake_opts="$cmake_opts -DUSE_SYMFPU=$symfpu" [ $language_bindings_java != default ] \ - && cmake_opts="$cmake_opts -DBUILD_BINDINGS_JAVA=$language_bindings_java" + && cmake_opts="$cmake_opts -DBUILD_SWIG_BINDINGS_JAVA=$language_bindings_java" [ $language_bindings_python != default ] \ - && cmake_opts="$cmake_opts -DBUILD_BINDINGS_PYTHON=$language_bindings_python" + && cmake_opts="$cmake_opts -DBUILD_SWIG_BINDINGS_PYTHON=$language_bindings_python" [ "$abc_dir" != default ] \ && cmake_opts="$cmake_opts -DABC_DIR=$abc_dir" |