mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-19 07:13:49 +08:00
75d590fb90
* replace catch2 tests * lil more * lil more * rm dep!
23 lines
529 B
Python
23 lines
529 B
Python
Import('env', 'envCython')
|
|
|
|
common_libs = [
|
|
'params.cc',
|
|
'swaglog.cc',
|
|
'util.cc',
|
|
'ratekeeper.cc',
|
|
'yuv.cc',
|
|
]
|
|
|
|
_common = env.Library('common', common_libs, LIBS="json11")
|
|
Export('_common')
|
|
|
|
if GetOption('extras'):
|
|
env.Program('tests/test_swaglog', 'tests/test_swaglog.cc', LIBS=[_common, 'json11', 'zmq', 'pthread'])
|
|
|
|
# Cython bindings
|
|
params_python = envCython.Program('params_pyx.so', 'params_pyx.pyx', LIBS=envCython['LIBS'] + [_common, 'zmq', 'json11'])
|
|
|
|
common_python = [params_python]
|
|
|
|
Export('common_python')
|