Autobuild script usage
Generation
To be integrated in the Yocto build workflow you have to generate autobuild
scripts using autobuild target.
To generate those scripts proceeds:
mkdir -p build
cd build
cmake .. && make autobuild
You should see conf.d/autobuild/agl/autobuild file now.
Available targets
Here are the available targets available from autobuild scripts:
- clean : clean build directory from object file and targets results.
- distclean : delete build directory
- configure : generate project Makefile from CMakeLists.txt files.
- build : compile all project targets.
- package : build and output a wgt package.
You can specify variables that modify the behavior of compilation using the following variables:
- CONFIGURE_ARGS : Variable used at configure time.
- BUILD_ARGS : Variable used at build time.
- DEST* : Directory where to output wgt*** file.
Variable as to be in CMake format. (ie: BUILD_ARGS="-DC_FLAGS='-g -O2'")
Usage example:
./conf.d/autobuild/wgt/autobuild package DEST=/tmp