Example project showing the usage of conans Qbs build helper and QbsToolchain generator
THIS EXAMPLE WILL REQUIRES CONAN 1.33
- Linux
arm-none-eabi-gcc
installed at/usr/bin
- default conan profile (can be created via
conan profile new --detect default
) - Qbs in PATH
- conan in PATH
To setup this example you need to execute the following steps:
- add
Mcu
to conanssettings.yml
asos
- copy profile
mcu/arm
to `.conan/profiles - export the example build requirements via
conan export toolchain_definitions/conanfile_none_eabi_arm.py
andconan export toolchain_definitions/conanfile_generic_mcu_flags.py
Now compiling and package creation can start :D
Just call qbs -f qbs_project/example.qbs
or conan create qbs_project
for native compilation and
qbs -f qbs_project/example.qbs profile:mcu/arm
or
conan create qbs_project -pr:b default -pr:h mcu/arm
to cross compile for arm.