scons: fix multithreaded builds (#29716)

* common_python export

* Single scons call

* transformations_python
old-commit-hash: d138a358eb
This commit is contained in:
Kacper Rączy
2023-08-30 15:01:03 -07:00
committed by GitHub
parent aa247b65aa
commit b580f19448
5 changed files with 19 additions and 11 deletions

View File

@@ -32,5 +32,15 @@ if GetOption('extras'):
['tests/test_runner.cc', 'tests/test_util.cc', 'tests/test_swaglog.cc', 'tests/test_ratekeeper.cc'],
LIBS=[_common, 'json11', 'zmq', 'pthread'])
# Cython
envCython.Program('params_pyx.so', 'params_pyx.pyx', LIBS=envCython['LIBS'] + [_common, 'zmq', 'json11'])
# Cython bindings
params_python = envCython.Program('params_pyx.so', 'params_pyx.pyx', LIBS=envCython['LIBS'] + [_common, 'zmq', 'json11'])
SConscript([
'kalman/SConscript',
'transformations/SConscript'
])
Import('simple_kalman_python', 'transformations_python')
common_python = [params_python, simple_kalman_python, transformations_python]
Export('common_python')