mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-16 23:52:06 +08:00
91b067cca0
* power draw first * speedup encoder * speed up hardware test suites * refresh IRQ actions after hardware setup * skip unused big model in device checkout * move LFS pruning off device checkout path * wtf is that for? * reverts * locality * rm that
25 lines
604 B
Python
25 lines
604 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_common',
|
|
['tests/test_runner.cc', 'tests/test_util.cc', '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')
|