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

Unified Diff: gyp_skia

Issue 614753002: allow caller to override the default output directory for gyp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp_skia
diff --git a/gyp_skia b/gyp_skia
index 0b0fa7d1bd38f497cfe24a543ab12f25b13ce384..5828780183ecacd09ee47d0481f6b2ce07e3a53e 100755
--- a/gyp_skia
+++ b/gyp_skia
@@ -23,6 +23,10 @@ gyp_source_dir = os.path.join(script_dir, 'third_party', 'externals', 'gyp')
# Directory within which we can find most of Skia's gyp configuration files.
gyp_config_dir = os.path.join(script_dir, 'gyp')
+# Allow the user to override the directory where gyp should produce its output
+# Default to the current directory.
+gyp_output_dir = os.environ.get('SKIA_GYP_OUTPUT_DIR', '.')
+
# Ensure we import our current gyp source's module, not any version
# pre-installed in your PYTHONPATH.
sys.path.insert(0, os.path.join(gyp_source_dir, 'pylib'))
@@ -133,7 +137,7 @@ if __name__ == '__main__':
args.extend(['--generator-output', os.path.abspath(get_output_dir())])
# Tell ninja to write its output into the same directory.
- args.extend(['-Goutput_dir=.'])
+ args.extend(['-Goutput_dir=%s' % gyp_output_dir])
# By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp.
args.extend(['-Gdefault_target=most'])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698