Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 7fd314a

Browse files
author
Comma Device
committed
update scons build file
1 parent 93d814e commit 7fd314a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ package-lock.json
44
*.pyc
55
__pycache__
66
.*.swp
7+
.*.swo
78
libcereal*.a
9+
libmessaging.a
810

SConscript

+20
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
Import('env')
22

3+
# TODO: remove src-prefix and cereal from command string. can we set working directory?
4+
env.Command(["gen/c/include/c++.capnp.h", "gen/c/include/java.capnp.h"], [], "mkdir -p cereal/gen/c/include && touch $TARGETS")
5+
env.Command(
6+
['gen/c/car.capnp.c', 'gen/c/log.capnp.c'],
7+
['car.capnp', 'log.capnp'],
8+
'capnpc $SOURCES --src-prefix=cereal -o c:cereal/gen/c/')
9+
env.Command(
10+
['gen/cpp/car.capnp.c++', 'gen/cpp/log.capnp.c++'],
11+
['car.capnp', 'log.capnp'],
12+
'capnpc $SOURCES --src-prefix=cereal -o c++:cereal/gen/cpp/')
13+
314
env.Library('cereal', [
415
'gen/c/car.capnp.c',
516
'gen/c/log.capnp.c',
617
'gen/cpp/car.capnp.c++',
718
'gen/cpp/log.capnp.c++',
819
])
920

21+
env.Library('messaging', [
22+
'messaging/messaging.cc',
23+
'messaging/impl_zmq.cc',
24+
'messaging/impl_msgq.cc',
25+
'messaging/msgq.cc',
26+
])
27+
28+
env.Program('messaging/bridge', ['messaging/bridge.cc'], LIBS=['messaging', 'yaml-cpp', 'zmq'])
29+
1030

0 commit comments

Comments
 (0)