mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-21 01:02:48 +08:00
cfd8323ccb
date: 2023-05-18T22:02:42 master commit: c7d3b28b93faa6c955fb24bc64031512ee985ee9
14 lines
670 B
Python
14 lines
670 B
Python
Import('env', 'common', 'cereal', 'messaging', 'libkf', 'transformations')
|
|
|
|
loc_libs = [cereal, messaging, 'zmq', common, 'capnp', 'kj', 'pthread']
|
|
|
|
ekf_sym_cc = env.SharedObject("#rednose/helpers/ekf_sym.cc")
|
|
locationd_sources = ["locationd.cc", "models/live_kf.cc", ekf_sym_cc]
|
|
lenv = env.Clone()
|
|
lenv["_LIBFLAGS"] += f' {libkf[0].get_labspath()}'
|
|
locationd = lenv.Program("locationd", locationd_sources, LIBS=loc_libs + transformations)
|
|
lenv.Depends(locationd, libkf)
|
|
|
|
if File("liblocationd.cc").exists():
|
|
liblocationd = lenv.SharedLibrary("liblocationd", ["liblocationd.cc"] + locationd_sources, LIBS=loc_libs + transformations)
|
|
lenv.Depends(liblocationd, libkf) |