Skip to content
Snippets Groups Projects
Commit 0029f680 authored by Esben Haabendal's avatar Esben Haabendal
Browse files

gn.bbclass: Add support for recipe provided NINJA_ARGS


Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
parent 4e12991e
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,9 @@ GN_ARGS ?= ' \ ...@@ -35,6 +35,9 @@ GN_ARGS ?= ' \
target_cpu="${@gn_target_arch_name(d)}" \ target_cpu="${@gn_target_arch_name(d)}" \
' '
# NINJA_ARGS can be added in the recipe
NINJA_ARGS ?= ""
B = "${WORKDIR}/out" B = "${WORKDIR}/out"
gn_do_configure() { gn_do_configure() {
...@@ -43,7 +46,7 @@ gn_do_configure() { ...@@ -43,7 +46,7 @@ gn_do_configure() {
} }
gn_do_compile() { gn_do_compile() {
ninja -C ${B} ninja ${NINJA_ARGS} -C ${B}
} }
gn_do_install() { gn_do_install() {
......
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