0

Pull gn binary.

This pulls the Windows and Linux binaries down from Google storage on sync. These aren't hooked up to anything yet, and Mac will come later.

BUG=
R=hinoka@google.com

Review URL: https://codereview.chromium.org/31083008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231440 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
brettw@chromium.org
2013-10-28 22:41:28 +00:00
parent 0832a1ae6e
commit 3645abc4b0
5 changed files with 63 additions and 0 deletions

3
.gitignore vendored

@ -305,6 +305,9 @@ v8.log
/third_party/yasm/yasm.xml
/tools/deps2git/
/tools/distcc
/tools/gn/bin/linux
/tools/gn/bin/mac
/tools/gn/bin/win
/tools/grit
/tools/gyp
/tools/histograms

32
DEPS

@ -1,3 +1,14 @@
# This file is automatically processed to create .DEPS.git which is the file
# that gclient uses under git.
#
# See http://code.google.com/p/chromium/wiki/UsingGit
#
# To test manually, run:
# python tools/deps2git/deps2git.py -o .DEPS.git
# gclient runhooks
# DO NOT CHECK IN CHANGES TO .DEPS.git. It will be automatically updated by
# a bot when you modify this one.
#
# When adding a new dependency, please update the top-level .gitignore file
# to list the dependency's destination directory.
@ -606,6 +617,27 @@ hooks = [
"-s", "src/third_party/WebKit",
"-o", "src/build/util/LASTCHANGE.blink"],
},
# Pull GN binaries. This needs to be before running GYP below.
{
"name": "gn_win",
"pattern": "\\.sha1$",
"action": [ "download_from_google_storage",
"--platform=win32",
"--directory",
"--bucket", "chromium-gn",
"src/tools/gn/bin/win",
],
},
{
"name": "gn_linux",
"pattern": "\\.sha1$",
"action": [ "download_from_google_storage",
"--platform=\"linux*\"",
"--directory",
"--bucket", "chromium-gn",
"src/tools/gn/bin/linux",
],
},
{
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
"name": "gyp",

26
tools/gn/bin/README.txt Normal file

@ -0,0 +1,26 @@
This folder contains GN binaries. They should be automatically downloaded from
Google Storage by gclient runhooks for the current platform.
To upload a file:
python ~/depot_tools/upload_to_google_storage.py -b chromium-gn <FILENAME>
To download a file given a .sha1 file:
python ~/depot_tools/download_from_google_storage.py -b chromium-gn -s <FILENAME>.sha1
List the contents of GN's Google Storage bucket:
python ~/depot_tools/third_party/gsutil/gsutil ls gs://chromium-gn/
To initialize gsutil's credentials:
python ~/depot_tools/third_party/gsutil/gsutil config
That will give a URL which you should log into with your web browser. The
username should be the one that is on the ACL for the "chromium-gn" bucket
(probably your @google.com address). Contact the build team for help getting
access if necessary.
Copy the code back to the command line util. Ignore the project ID (it's OK
to just leave blank when prompted).
gsutil documentation:
https://developers.google.com/storage/docs/gsutil

@ -0,0 +1 @@
9c71ff30a0781745029d018313783cc814a8c305

@ -0,0 +1 @@
afd819eef0c7a347b4021ac47b722e04e9ff3193