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

src = ['loggerd.cc', 'logger.c']
libs = ['zmq', 'czmq', 'capnp', 'kj', 'yaml-cpp', 'z',
  'avformat', 'avcodec', 'swscale', 'avutil',
  'yuv', 'bz2', common, 'json', messaging, visionipc]

if arch == "aarch64":
  src += ['encoder.c', 'raw_logger.cc']
  libs += ['OmxVenc', 'OmxCore', 'cutils']

env.Program(src, LIBS=libs)
