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

Unified Diff: build/gyp_chromium

Issue 7015061: grit complete CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gritty Created 9 years, 7 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 | « no previous file | tools/grit/grit_info.py » ('j') | tools/grit/grit_info.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/gyp_chromium
diff --git a/build/gyp_chromium b/build/gyp_chromium
index 3cddef69f7ca42117c2e24bca1ff61644e3e6bfa..37762c9dd34877b67efce46b3d5d3c0a5ee1e9a5 100755
--- a/build/gyp_chromium
+++ b/build/gyp_chromium
@@ -7,6 +7,7 @@
# This script is wrapper for Chromium that adds some support for how GYP
# is invoked by Chromium beyond what can be done in the gclient hooks.
+import cProfile
Mark Mentovai 2011/05/16 16:42:54 Unneeded?
import glob
import os
import shlex
@@ -16,6 +17,10 @@ import sys
script_dir = os.path.dirname(__file__)
chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir))
+# Insert grit into path so that gyp can find it. This speeds gyp up
+# considerably.
+sys.path.insert(0, os.path.join(chrome_src, 'tools', 'grit'))
Mark Mentovai 2011/05/16 16:42:54 I find this hard to follow on a quick glance. You’
+
sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
import gyp
@@ -95,7 +100,7 @@ def additional_include_files(args=[]):
return result
-if __name__ == '__main__':
+def main():
args = sys.argv[1:]
# Use the Psyco JIT if available.
@@ -165,3 +170,8 @@ if __name__ == '__main__':
# Off we go...
sys.exit(gyp.main(args))
+
+
Mark Mentovai 2011/05/16 16:42:54 This file seems to use only one blank line between
+if __name__ == '__main__':
+ #cProfile.run('main()', 'profile')
Mark Mentovai 2011/05/16 16:42:54 Unneeded?
+ main()
Mark Mentovai 2011/05/16 16:42:54 sys.exit(main(sys.argv[1:])) instead, and adjust m
« no previous file with comments | « no previous file | tools/grit/grit_info.py » ('j') | tools/grit/grit_info.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698