Run bin/fetch-gn as a gclient hook.

Seems like the bots don't run hooks.  That's okay, even ideal.
They'll keep getting GN via recipes.

DOCS_PREVIEW= https://skia.org/?cl=5725

Change-Id: I000bad3390dddaeb4548972f29c96b8b3288ea6c
Reviewed-on: https://skia-review.googlesource.com/5725
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Eric Boren <borenet@google.com>
This commit is contained in:
Mike Klein 2016-12-09 11:31:28 -05:00 committed by Skia Commit-Bot
parent 291c62a0ff
commit feda468155
2 changed files with 7 additions and 4 deletions

7
DEPS
View File

@ -45,3 +45,10 @@ deps = {
}
recursedeps = [ "common" ]
hooks = []
import os
import sys
if os.path.exists('bin/fetch-gn'):
hooks.append({ 'action': [sys.executable, 'bin/fetch-gn'] })

View File

@ -14,10 +14,6 @@ them.
Quickstart
----------
After gclient sync, run `fetch-gn` to make sure you have GN.
gclient sync && python bin/fetch-gn
Run GN to generate your build files.
gn gen out/Static --args='is_official_build=true'