mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-05 12:03:45 +08:00
23 lines
611 B
Python
23 lines
611 B
Python
Import('env')
|
|
|
|
common_libs = [
|
|
'params.cc',
|
|
'swaglog.cc',
|
|
'util.cc',
|
|
'ratekeeper.cc',
|
|
'yuv.cc',
|
|
]
|
|
|
|
_common = env.Library('common', common_libs, LIBS="json11")
|
|
Export('_common')
|
|
|
|
params_python = env.SharedLibrary('params_c', 'params_c.cc', LIBS=[_common, 'json11'])
|
|
common_python = [params_python]
|
|
Export('common_python')
|
|
|
|
if GetOption('extras'):
|
|
env.Program('tests/test_swaglog', 'tests/test_swaglog.cc', LIBS=[_common, 'json11', 'pthread'])
|
|
|
|
env.Program('tests/bin/test_params_fork_lock', 'tests/test_params_fork_lock.cc',
|
|
LIBS=[_common, 'json11', 'zmq', 'capnp', 'kj', 'pthread'])
|