OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright 2015 Google Inc. | 3 # Copyright 2015 Google Inc. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
7 | 7 |
8 # This script will update Skia's dependenciess as necessary and run | 8 # This script will update Skia's dependenciess as necessary and run |
9 # gyp if needed. | 9 # gyp if needed. |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 echo "$GYP_GENERATORS" | 44 echo "$GYP_GENERATORS" |
45 echo "$GYP_DEFINES" | 45 echo "$GYP_DEFINES" |
46 find gyp -type f -print -exec git hash-object {} \; | 46 find gyp -type f -print -exec git hash-object {} \; |
47 } | git hash-object --stdin | 47 } | git hash-object --stdin |
48 } | 48 } |
49 | 49 |
50 : ${SKIA_OUT:=out} | 50 : ${SKIA_OUT:=out} |
51 GYP_HASH=$(gyp_hasher) | 51 GYP_HASH=$(gyp_hasher) |
52 HASH_PATH="${SKIA_OUT}/gyp_hash" | 52 HASH_PATH="${SKIA_OUT}/gyp_hash" |
53 if [ "$GYP_HASH" != "$(catifexists "$HASH_PATH")" ]; then | 53 if [ "$GYP_HASH" != "$(catifexists "$HASH_PATH")" ]; then |
54 ./gyp_skia || exit | 54 python ./gyp_skia || exit |
55 echo "$GYP_HASH" > "$HASH_PATH" | 55 echo "$GYP_HASH" > "$HASH_PATH" |
56 fi | 56 fi |
OLD | NEW |