You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
630 B
23 lines
630 B
Import('env', 'arch', 'cereal', 'messaging', 'common', 'visionipc', 'gpucommon')
|
|
|
|
src = ['loggerd.cc', 'logger.cc']
|
|
libs = ['zmq', 'capnp', 'kj', 'z',
|
|
'avformat', 'avcodec', 'swscale', 'avutil',
|
|
'yuv', 'bz2', 'OpenCL', common, cereal, messaging, visionipc]
|
|
|
|
if arch in ["aarch64", "larch64"]:
|
|
src += ['encoder.cc']
|
|
libs += ['OmxVenc', 'OmxCore', 'gsl', 'CB'] + gpucommon
|
|
if arch == "aarch64":
|
|
libs += ['cutils']
|
|
else:
|
|
libs += ['pthread']
|
|
else:
|
|
libs += ['pthread']
|
|
|
|
if arch == "Darwin":
|
|
# fix OpenCL
|
|
del libs[libs.index('OpenCL')]
|
|
env['FRAMEWORKS'] = ['OpenCL']
|
|
|
|
env.Program(src, LIBS=libs)
|
|
|