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

Unified Diff: gn_data_build_system/run.py

Issue 1000163003: Generate the icu data binaries at compile time instead of checking in binaries Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Fixed warnings in cross compiling Created 5 years, 8 months 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 | « gn_data_build_system/BUILD.gn ('k') | gn_tool_build_system/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gn_data_build_system/run.py
diff --git a/gn_data_build_system/run.py b/gn_data_build_system/run.py
new file mode 100644
index 0000000000000000000000000000000000000000..4eccace608e318378b2cbbc74b2c4ed9022b2e60
--- /dev/null
+++ b/gn_data_build_system/run.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# Copyright 2014 the V8 project authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""This program wraps an arbitrary command since gn currently can only execute
+scripts."""
+
+import os
+import subprocess
+import sys
+
+try:
+ res = subprocess.call(sys.argv[1:])
+except Exception as e:
+ res = 1
+ print("%s" % e)
+
+if res != 0:
+ print("In %s" % os.getcwd())
+ print("%s" % sys.argv)
+
+sys.exit(res)
« no previous file with comments | « gn_data_build_system/BUILD.gn ('k') | gn_tool_build_system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698