mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
pandad: pure Python capnp helpers (#37025)
* pandad: pure Python capnp helpers * cleanup
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
Import('env', 'envCython', 'common', 'messaging')
|
||||
Import('env', 'common', 'messaging')
|
||||
|
||||
libs = ['usb-1.0', common, messaging, 'pthread']
|
||||
panda = env.Library('panda', ['panda.cc', 'panda_comms.cc', 'spi.cc'])
|
||||
|
||||
env.Program('pandad', ['main.cc', 'pandad.cc', 'panda_safety.cc'], LIBS=[panda] + libs)
|
||||
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])
|
||||
|
||||
pandad_python = envCython.Program('pandad_api_impl.so', 'pandad_api_impl.pyx', LIBS=["can_list_to_can_capnp", 'capnp', 'kj'] + envCython["LIBS"])
|
||||
Export('pandad_python')
|
||||
|
||||
if GetOption('extras'):
|
||||
env.Program('tests/test_pandad_usbprotocol', ['tests/test_pandad_usbprotocol.cc'], LIBS=[panda] + libs)
|
||||
|
||||
Reference in New Issue
Block a user