mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 06:34:00 +08:00
* add PubMaster & SubMaster remove 'delete msg' remove headers * use constructor to initial all submster * modify drain sockets * fix typo in ssconscript.remove lines no checkValid in loggerd last modify handle_message:event->&event fix type remove heads event to auto * new interface * api changed * Revert "use constructor to initial all submster" This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692. * change to new api * revert loggerd * dd * use new PubSub api * update to new interface don't modify loggerd reset panda reset opendbc remove empty lines * switch to new pubMaster * update to the new inteface change remove error code . to -> merge paramsd.cc update panda fix typo simplify fix typo * Fix build * always conflate Co-authored-by: deanlee <deanlee3@gmail.com>
48 lines
1.2 KiB
Python
48 lines
1.2 KiB
Python
Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc')
|
|
lenv = env.Clone()
|
|
|
|
libs = [cereal, messaging, common, 'OpenCL', 'SNPE', 'capnp', 'zmq', 'kj', 'yuv', gpucommon, visionipc]
|
|
|
|
TEST_THNEED = False
|
|
|
|
common_src = [
|
|
"models/commonmodel.c",
|
|
"runners/snpemodel.cc",
|
|
"transforms/loadyuv.c",
|
|
"transforms/transform.c"]
|
|
|
|
if arch == "aarch64":
|
|
libs += ['gsl', 'CB', 'gnustl_shared']
|
|
if not TEST_THNEED:
|
|
common_src += ["thneed/thneed.cc"]
|
|
lenv['CFLAGS'].append("-DUSE_THNEED")
|
|
lenv['CXXFLAGS'].append("-DUSE_THNEED")
|
|
elif arch == "larch64":
|
|
libs += ['gsl', 'CB', 'symphony-cpu', 'pthread']
|
|
else:
|
|
libs += ['symphony-cpu', 'pthread']
|
|
|
|
# for tensorflow support
|
|
common_src += ['runners/tfmodel.cc']
|
|
# tell runners to use it
|
|
lenv['CFLAGS'].append("-DUSE_TF_MODEL")
|
|
lenv['CXXFLAGS'].append("-DUSE_TF_MODEL")
|
|
|
|
common = lenv.Object(common_src)
|
|
|
|
lenv.Program('_dmonitoringmodeld', [
|
|
"dmonitoringmodeld.cc",
|
|
"models/dmonitoring.cc",
|
|
]+common, LIBS=libs)
|
|
|
|
lenv.Program('_modeld', [
|
|
"modeld.cc",
|
|
"models/driving.cc",
|
|
]+common, LIBS=libs)
|
|
|
|
if TEST_THNEED:
|
|
lenv.Program('thneed/debug/_thneed', [
|
|
"thneed/thneed.cc", "thneed/debug/test.cc"
|
|
]+common, LIBS=libs)
|
|
|