2020-01-15 14:05:04 -08:00
|
|
|
Import('env', 'arch', 'messaging', 'common', 'visionipc')
|
|
|
|
|
|
2020-03-16 16:19:36 -07:00
|
|
|
src = ['loggerd.cc', 'logger.cc']
|
2020-02-06 13:51:42 -08:00
|
|
|
libs = ['zmq', 'czmq', 'capnp', 'kj', 'z',
|
2019-12-13 13:03:08 -08:00
|
|
|
'avformat', 'avcodec', 'swscale', 'avutil',
|
2020-05-09 13:01:35 -07:00
|
|
|
'yuv', 'bz2', common, messaging, visionipc]
|
2020-01-15 14:05:04 -08:00
|
|
|
|
|
|
|
|
if arch == "aarch64":
|
|
|
|
|
src += ['encoder.c', 'raw_logger.cc']
|
|
|
|
|
libs += ['OmxVenc', 'OmxCore', 'cutils']
|
2020-05-09 13:01:35 -07:00
|
|
|
elif arch == "larch64":
|
|
|
|
|
src += ['encoder.c', 'raw_logger.cc']
|
|
|
|
|
libs += ['OmxVenc', 'OmxCore', 'pthread']
|
|
|
|
|
else:
|
|
|
|
|
libs += ['pthread']
|
2020-01-15 14:05:04 -08:00
|
|
|
|
|
|
|
|
env.Program(src, LIBS=libs)
|