mirror of
https://github.com/commaai/msgq.git
synced 2026-06-08 05:54:44 +08:00
only build stubs with extras
This commit is contained in:
@@ -14,9 +14,10 @@ env.Command([f'gen/cpp/{s}.c++' for s in schema_files] + [f'gen/cpp/{s}.h' for s
|
||||
schema_files,
|
||||
f"capnpc --src-prefix={cereal_dir.path} $SOURCES -o c++:{gen_dir.path}/cpp/")
|
||||
|
||||
env.Command([f'gen/py/{s}_capnp.pyi' for s in schema_files] + [f'gen/py/{s}_capnp.py' for s in schema_files],
|
||||
schema_files,
|
||||
f"capnp-stub-generator -p '{cereal_dir.path}/*.capnp' -c '{cereal_dir.path}/*_capnp.pyi' '{cereal_dir.path}/*_capnp.py' -o {cereal_dir.path}/gen/py/")
|
||||
if GetOption('extras'):
|
||||
env.Command([f'gen/py/{s}_capnp.pyi' for s in schema_files] + [f'gen/py/{s}_capnp.py' for s in schema_files],
|
||||
schema_files,
|
||||
f"capnp-stub-generator -p '{cereal_dir.path}/*.capnp' -c '{cereal_dir.path}/*_capnp.pyi' '{cereal_dir.path}/*_capnp.py' -o {cereal_dir.path}/gen/py/")
|
||||
|
||||
# TODO: remove non shared cereal and messaging
|
||||
cereal_objects = env.SharedObject([f'gen/cpp/{s}.c++' for s in schema_files])
|
||||
|
||||
Reference in New Issue
Block a user