Skip to content
Snippets Groups Projects
Commit 58af029f authored by Robert Drab's avatar Robert Drab
Browse files

gn.bbclass: add class for building GN-based projects

GN meta-build system uses it's own meta-language to describe build process of
the project including toolchain definition, compiler flags, dependencies, etc.
GN tool parses the meta data and generates ninja file for the final build
process.

For the project to use Yocto-provided toolchain and flags it is necessary to
patch the BUILDCONFIG.gn file in following manner:
- change set_default_toolchain function call to use
  //build/toolchain/yocto:yocto_target
- append  [ "//build/toolchain/yocto:yocto_flags" ] to configs variable in all
  set_defaults function calls

Closes: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/64
Closes: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/65
Closes: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/66



Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
parent 8ddfab75
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment