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

Side by Side Diff: third_party/ots/gyp_ots

Issue 775893002: Updating OTS repo from https://github.com/khaledhosny/ots.git (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating with 4800 warning fix Created 6 years 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 unified diff | Download patch
« no previous file with comments | « third_party/ots/docs/HowToTest.md ('k') | third_party/ots/include/opentype-sanitiser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 import os
8 import subprocess
9 import sys
10
11 _GYP_REVISION = '1344'
12 _GYP_FETCH_URL = 'https://gyp.googlecode.com/svn/trunk@' + _GYP_REVISION
13
14 def _fetch_gyp():
15 gyp_dir = os.path.join('third_party', 'gyp')
16 if not os.path.exists(gyp_dir):
17 retcode = subprocess.call(['svn', 'checkout', _GYP_FETCH_URL, gyp_dir])
18 if retcode < 0:
19 raise "Couldn't fetch gyp"
20 # TODO(bashi): Check revision, etc
21 sys.path.insert(0, os.path.abspath(os.path.join(gyp_dir, 'pylib')))
22
23 def main():
24 script_dir = os.path.abspath(os.path.dirname(__file__))
25 os.chdir(script_dir)
26 _fetch_gyp()
27 import gyp
28
29 args = []
30 args.extend(['--depth', '.'])
31 args.extend(sys.argv[1:])
32 args.append(os.path.join(script_dir, 'ots-standalone.gyp'))
33 sys.exit(gyp.main(args))
34
35 if __name__ == '__main__':
36 main()
OLDNEW
« no previous file with comments | « third_party/ots/docs/HowToTest.md ('k') | third_party/ots/include/opentype-sanitiser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698