Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1895)

Unified Diff: platform_tools/barelinux/bin/download_deps

Issue 152513007: Build Skia for a bare-bones embedded Linux system. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: again Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: platform_tools/barelinux/bin/download_deps
diff --git a/platform_tools/barelinux/bin/download_deps b/platform_tools/barelinux/bin/download_deps
new file mode 100755
index 0000000000000000000000000000000000000000..06769613b308946665a1df2be9186334fd924ecd
--- /dev/null
+++ b/platform_tools/barelinux/bin/download_deps
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# Copyright 2014 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# download_deps - download Skia's dependencies for a bare Linux system
+# (the normal dependecies plus giflib, libpng, and zlib.)
+
+try() {
+ # print an error on nonzero return code
+ "$@"
+ local ret=$?
+ if [ $ret != 0 ] ; then
+ echo "'$@' failed and returned ${ret}." >&2
+ return $ret
+ fi
+}
+
+try command -v gclient > /dev/null || exit
+cd "$(dirname "$0")/../../.."
+
+try gclient config --unmanaged --name . \
+ 'https://skia.googlesource.com/skia.git' || exit
+
+echo 'target_os = ["barelinux"]' >> ./.gclient
+
+try gclient sync --jobs=1 || exit
« platform_tools/barelinux/bin/barelinux_make ('K') | « platform_tools/barelinux/bin/barelinux_make ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698