Skip to content

Commit

Permalink
cereal_shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Nov 22, 2019
1 parent da655cd commit 57126a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ libmessaging.*
libmessaging_shared.*
services.h
.sconsign.dblite
libcereal_shared.so

7 changes: 7 additions & 0 deletions SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ 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',
'gen/cpp/car.capnp.c++',
'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(
Expand Down

0 comments on commit 57126a2

Please sign in to comment.