ninja: support target builds

Extend the recipe so that it supports target builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Ross Burton
2016-08-02 09:00:15 +01:00
committed by Martin Jansa
parent 41414e07d2
commit b0ae995bc8
@@ -3,23 +3,28 @@ HOMEPAGE = "http://martine.github.com/ninja/"
LICENSE = "Apache-2.0" LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=a81586a64ad4e476c791cda7e2f2c52e" LIC_FILES_CHKSUM = "file://COPYING;md5=a81586a64ad4e476c791cda7e2f2c52e"
DEPENDS = "re2c-native" DEPENDS = "re2c-native ninja-native"
inherit native SRCREV = "484c16336f19bd8970bb6e75322d61b92a229899"
SRCREV="484c16336f19bd8970bb6e75322d61b92a229899"
SRC_URI = "git://github.com/martine/ninja.git;branch=release" SRC_URI = "git://github.com/martine/ninja.git;branch=release"
S="${WORKDIR}/git" S = "${WORKDIR}/git"
do_configure[noexec] = "1" do_configure[noexec] = "1"
do_compile_class-native() {
./configure.py --bootstrap
}
do_compile() { do_compile() {
python ${S}/configure.py --bootstrap ./configure.py
ninja
} }
do_install() { do_install() {
install -d ${D}${bindir} install -d ${D}${bindir}
install -m 0755 ${S}/ninja ${D}${bindir}/ install -m 0755 ${S}/ninja ${D}${bindir}/
} }
BBCLASSEXTEND = "native"