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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/gyp_ots
diff --git a/third_party/ots/gyp_ots b/third_party/ots/gyp_ots
new file mode 100755
index 0000000000000000000000000000000000000000..9a4056e054f05316fbc98b23fee18a4c70ba15d7
--- /dev/null
+++ b/third_party/ots/gyp_ots
@@ -0,0 +1,36 @@
+#!/usr/bin/env python
+
+# 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.
+
+import os
+import subprocess
+import sys
+
+_GYP_REVISION = '1344'
+_GYP_FETCH_URL = 'https://gyp.googlecode.com/svn/trunk@' + _GYP_REVISION
+
+def _fetch_gyp():
+ 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])
+ if retcode < 0:
+ raise "Couldn't fetch gyp"
+ # TODO(bashi): Check revision, etc
+ sys.path.insert(0, os.path.abspath(os.path.join(gyp_dir, 'pylib')))
+
+def main():
+ script_dir = os.path.abspath(os.path.dirname(__file__))
+ os.chdir(script_dir)
+ _fetch_gyp()
+ import gyp
+
+ args = []
+ args.extend(['--depth', '.'])
+ args.extend(sys.argv[1:])
+ args.append(os.path.join(script_dir, 'ots-standalone.gyp'))
+ sys.exit(gyp.main(args))
+
+if __name__ == '__main__':
+ main()
« 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