| # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| _GYP_FETCH_URL = 'https://gyp.googlecode.com/svn/trunk@' + _GYP_REVISION |
| gyp_dir = os.path.join('third_party', 'gyp') |
| if not os.path.exists(gyp_dir): |
| retcode = subprocess.call(['svn', 'checkout', _GYP_FETCH_URL, gyp_dir]) |
| raise "Couldn't fetch gyp" |
| # TODO(bashi): Check revision, etc |
| sys.path.insert(0, os.path.abspath(os.path.join(gyp_dir, 'pylib'))) |
| script_dir = os.path.abspath(os.path.dirname(__file__)) |
| args.extend(['--depth', '.']) |
| args.extend(sys.argv[1:]) |
| args.append(os.path.join(script_dir, 'ots-standalone.gyp')) |
| if __name__ == '__main__': |