Import('env', 'common', 'messaging')

env.Program('boardd.cc', LIBS=['usb-1.0', common, messaging, 'pthread', 'zmq', 'capnp', 'kj'])
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])

env.Command(['boardd_api_impl.so'],
  ['libcan_list_to_can_capnp.a', 'boardd_api_impl.pyx', 'boardd_setup.py'],
  "cd selfdrive/boardd && python3 boardd_setup.py build_ext --inplace")

