[buildout]
extends =
  software-peer-base.cfg

[sqdr-source]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/slaposdrone/squadrone.git
revision = v2.1
git-executable = ${git:location}/bin/git

[sqdr-wrapper]
recipe = slapos.recipe.cmmi
configure-command = true
path = ${sqdr-source:location}
environment =
  CPLUS_INCLUDE_PATH=include:${qjs-wrapper-source:location}/include
  LDFLAGS=-L${sqdr-source:location}/lib -Wl,-rpath=${sqdr-source:location}/lib

[qjs-wrapper]
autopilot-wrapper = ${sqdr-wrapper:location}
make-options = WITH_AUTOPILOT=y
