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

Unified Diff: bin/deps-and-gyp

Issue 1423463005: bin/deps-and-gyp -> bin/sync-and-gyp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | bin/sync-and-gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/deps-and-gyp
diff --git a/bin/deps-and-gyp b/bin/deps-and-gyp
deleted file mode 100755
index 06f0fd5d90147e22b46fcc56df91b73968b8e243..0000000000000000000000000000000000000000
--- a/bin/deps-and-gyp
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-# Copyright 2015 Google Inc.
-#
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# This script will update Skia's dependenciess as necessary and run
-# gyp if needed.
-
-# Depends on: Posix-compliant shell, Python, and Git.
-#
-# Example usage:
-#
-# git clone https://skia.googlesource.com/skia
-# cd skia
-# bin/deps-and-gyp
-# ninja -C out/Debug && out/Debug/dm
-#
-# Once changes are made to DEPS or gyp/ or the source, call:
-#
-# bin/deps-and-gyp
-
-if [ "$SKIA_OUT" ]; then
- mkdir -p "$SKIA_OUT" || exit
- # get non-relative path of $SKIA_OUT before changing directory.
- SKIA_OUT="$(cd "$SKIA_OUT"; pwd)"
-fi
-
-cd "$(dirname "$0")/.."
-
-if ! [ -f DEPS ]; then
- echo DEPS file missing >&2
- exit 1
-fi
-
-GIT_SYNC_DEPS_QUIET=1 python tools/git-sync-deps || exit
-
-catifexists() { if [ -f "$1" ]; then cat "$1"; fi; }
-
-gyp_hasher() {
- {
- echo "$CC"
- echo "$CXX"
- echo "$GYP_GENERATORS"
- echo "$GYP_DEFINES"
- find gyp -type f -print -exec git hash-object {} \;
- find bench gm tests -name '*.c*' | LANG= sort
- } | git hash-object --stdin
-}
-
-: ${SKIA_OUT:=out}
-GYP_HASH=$(gyp_hasher)
-HASH_PATH="${SKIA_OUT}/gyp_hash"
-if [ "$GYP_HASH" != "$(catifexists "$HASH_PATH")" ]; then
- python ./gyp_skia || exit
- echo "$GYP_HASH" > "$HASH_PATH"
-fi
« no previous file with comments | « no previous file | bin/sync-and-gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698