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

Commit e8ae908

Browse files
author
andyh2
committed
Generate capnp for java
1 parent 57126a2 commit e8ae908

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SConscript

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ env.Command(
1313
['gen/cpp/car.capnp.c++', 'gen/cpp/log.capnp.c++', 'gen/cpp/car.capnp.h', 'gen/cpp/log.capnp.h'],
1414
['car.capnp', 'log.capnp'],
1515
'capnpc $SOURCES --src-prefix=cereal -o c++:' + gen_dir.path + '/cpp/')
16+
import shutil
17+
if shutil.which('capnpc-java'):
18+
env.Command(
19+
['gen/java/Car.java', 'gen/java/Log.java'],
20+
['car.capnp', 'log.capnp'],
21+
'capnpc $SOURCES --src-prefix=cereal -o java:' + gen_dir.path + '/java/')
1622

1723
# TODO: remove non shared cereal and messaging
1824
env.Library('cereal', [

0 commit comments

Comments
 (0)