From 57126a23d9694fd15e5a917050114ca1ece7bc71 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Fri, 22 Nov 2019 01:48:01 +0000 Subject: [PATCH] cereal_shared --- .gitignore | 1 + SConscript | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index f24a0a443a8d95..5053090f144df5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ libmessaging.* libmessaging_shared.* services.h .sconsign.dblite +libcereal_shared.so diff --git a/SConscript b/SConscript index 397402f39bfcec..9bd911cadde6f9 100644 --- a/SConscript +++ b/SConscript @@ -14,6 +14,7 @@ env.Command( ['car.capnp', 'log.capnp'], 'capnpc $SOURCES --src-prefix=cereal -o c++:' + gen_dir.path + '/cpp/') +# TODO: remove non shared cereal and messaging env.Library('cereal', [ 'gen/c/car.capnp.c', 'gen/c/log.capnp.c', @@ -21,6 +22,12 @@ env.Library('cereal', [ 'gen/cpp/log.capnp.c++', ]) +env.SharedLibrary('cereal_shared', [ + 'gen/c/car.capnp.c', + 'gen/c/log.capnp.c', + 'gen/cpp/car.capnp.c++', + 'gen/cpp/log.capnp.c++', + ]) cereal_dir = Dir('.') env.Command(