mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 08:42:11 +08:00
openpilot v0.8.2 release
This commit is contained in:
@@ -1,18 +1,27 @@
|
||||
Import('env', 'arch', 'cereal', 'messaging', 'common', 'visionipc')
|
||||
Import('env', 'arch', 'cereal', 'messaging', 'common', 'visionipc', 'gpucommon')
|
||||
|
||||
src = ['loggerd.cc', 'logger.cc']
|
||||
libs = ['zmq', 'capnp', 'kj', 'z',
|
||||
'avformat', 'avcodec', 'swscale', 'avutil',
|
||||
'yuv', 'bz2', common, cereal, messaging, visionipc]
|
||||
|
||||
logger_lib = env.Library('logger', ["logger.cc"])
|
||||
libs = [logger_lib, 'zmq', 'capnp', 'kj', 'z',
|
||||
'avformat', 'avcodec', 'swscale', 'avutil',
|
||||
'yuv', 'bz2', 'OpenCL', common, cereal, messaging, visionipc]
|
||||
|
||||
src = ['loggerd.cc']
|
||||
if arch in ["aarch64", "larch64"]:
|
||||
src += ['encoder.c']
|
||||
libs += ['OmxVenc', 'OmxCore']
|
||||
src += ['omx_encoder.cc']
|
||||
libs += ['OmxCore', 'gsl', 'CB'] + gpucommon
|
||||
if arch == "aarch64":
|
||||
libs += ['cutils']
|
||||
libs += ['OmxVenc', 'cutils']
|
||||
else:
|
||||
libs += ['pthread']
|
||||
else:
|
||||
src += ['raw_logger.cc']
|
||||
libs += ['pthread']
|
||||
|
||||
if arch == "Darwin":
|
||||
# fix OpenCL
|
||||
del libs[libs.index('OpenCL')]
|
||||
env['FRAMEWORKS'] = ['OpenCL']
|
||||
|
||||
env.Program(src, LIBS=libs)
|
||||
env.Program('bootlog.cc', LIBS=libs)
|
||||
|
||||
Reference in New Issue
Block a user