SDK: add native+target packages to build chromium
[AGL/meta-agl-demo.git] / recipes-devtools / gn / gn.inc
diff --git a/recipes-devtools/gn/gn.inc b/recipes-devtools/gn/gn.inc
new file mode 100644 (file)
index 0000000..2728bc1
--- /dev/null
@@ -0,0 +1,21 @@
+SUMMARY = "Meta-build system from Google"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0fca02217a5d49a14dfe2d11837bb34d"
+
+DEPENDS = "python-native ninja-native"
+
+SRC_URI = "http://gsdview.appspot.com/chromium-browser-official/chromium-${PV}.tar.xz"
+
+S ?= "${WORKDIR}/chromium-${PV}"
+
+do_compile () {
+  cd ${S}/tools/gn
+  ./bootstrap/bootstrap.py -s
+}
+
+do_install () {
+  install -d ${D}${bindir}
+  install -m 0755 out/Release/gn ${D}${bindir}/gn
+}
+
+BBCLASSEXTEND = "native nativesdk"