You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
478 B
10 lines
478 B
Import('env')
|
|
|
|
# TODO: look into this
|
|
# kaitai issue: https://github.com/kaitai-io/kaitai_struct/issues/910
|
|
if GetOption('kaitai'):
|
|
current_dir = Dir('./generated/').srcnode().abspath
|
|
python_cmd = f"kaitai-struct-compiler --target python --outdir {current_dir} $SOURCES"
|
|
env.Command(File('./generated/ubx.py'), 'ubx.ksy', python_cmd)
|
|
env.Command(File('./generated/gps.py'), 'gps.ksy', python_cmd)
|
|
env.Command(File('./generated/glonass.py'), 'glonass.ksy', python_cmd)
|
|
|