mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 01:53:57 +08:00
This reverts commit f2f01e3afaeaa267af61c8d7ab918da04d3411f2.
old-commit-hash: 7c112341c3
14 lines
613 B
Python
14 lines
613 B
Python
Import('env', 'envCython', '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'], 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)
|