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

Unified Diff: tools/mb/mb.py

Issue 2038483002: mb: Allow overriding the path to the gyp script (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review Created 4 years, 6 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 | « tools/mb/docs/user_guide.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/mb/mb.py
diff --git a/tools/mb/mb.py b/tools/mb/mb.py
index 2c16266c641b09fcb0b12c41863af082a377914f..028d2ad157356f6d1bd70ecf1544adf5d628857f 100755
--- a/tools/mb/mb.py
+++ b/tools/mb/mb.py
@@ -84,6 +84,10 @@ class MetaBuildWrapper(object):
'(default is //tools/mb/mb_config.pyl)')
subp.add_argument('-g', '--goma-dir',
help='path to goma directory')
+ subp.add_argument('--gyp-script', metavar='PATH',
+ default=self.PathJoin('build', 'gyp_chromium'),
+ help='path to gyp script relative to project root '
+ '(default is %(default)s)')
subp.add_argument('--android-version-code',
help='Sets GN arg android_default_version_code and '
'GYP_DEFINE app_manifest_version_code')
@@ -1105,7 +1109,7 @@ class MetaBuildWrapper(object):
cmd = [
self.executable,
- self.PathJoin('build', 'gyp_chromium'),
+ self.args.gyp_script,
'-G',
'output_dir=' + output_dir,
]
« no previous file with comments | « tools/mb/docs/user_guide.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698