mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 03:03:57 +08:00
* Cython KF1D to Python
* cleanup
* set x
* less nesting
* fix release
* Revert "fix release"
This reverts commit 97e5d0f80405660efb861c7b9df7fbfd5dda5dd9.
old-commit-hash: 1421551297
40 lines
928 B
Python
40 lines
928 B
Python
Import('env', 'envCython', 'arch')
|
|
|
|
common_libs = [
|
|
'params.cc',
|
|
'swaglog.cc',
|
|
'util.cc',
|
|
'i2c.cc',
|
|
'watchdog.cc',
|
|
'ratekeeper.cc'
|
|
]
|
|
|
|
if arch != "Darwin":
|
|
common_libs.append('gpio.cc')
|
|
|
|
_common = env.Library('common', common_libs, LIBS="json11")
|
|
|
|
files = [
|
|
'clutil.cc',
|
|
]
|
|
|
|
_gpucommon = env.Library('gpucommon', files)
|
|
Export('_common', '_gpucommon')
|
|
|
|
if GetOption('extras'):
|
|
env.Program('tests/test_common',
|
|
['tests/test_runner.cc', 'tests/test_params.cc', 'tests/test_util.cc', 'tests/test_swaglog.cc', 'tests/test_ratekeeper.cc'],
|
|
LIBS=[_common, 'json11', 'zmq', 'pthread'])
|
|
|
|
# Cython bindings
|
|
params_python = envCython.Program('params_pyx.so', 'params_pyx.pyx', LIBS=envCython['LIBS'] + [_common, 'zmq', 'json11'])
|
|
|
|
SConscript([
|
|
'transformations/SConscript',
|
|
])
|
|
|
|
Import('transformations_python')
|
|
common_python = [params_python, transformations_python]
|
|
|
|
Export('common_python')
|