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

Unified Diff: tools/generate_buildfiles.py

Issue 2873693002: [infra] Ensure args.gn is updated for the Linux cross builds during gclient runhooks. (Closed)
Patch Set: Created 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/generate_buildfiles.py
diff --git a/tools/generate_buildfiles.py b/tools/generate_buildfiles.py
index 0333a97ca7cdbe16f71030c03df3791c142502eb..d7258e713a4d75474bb3cd6f632b77f9de09054c 100755
--- a/tools/generate_buildfiles.py
+++ b/tools/generate_buildfiles.py
@@ -46,6 +46,21 @@ def RunAndroidGn(options):
return Execute(gn_command)
+def RunCrossGn(options):
+ if HOST_OS != 'linux':
+ return 0
+ gn_command = [
+ 'python',
+ os.path.join(DART_ROOT, 'tools', 'gn.py'),
+ '-m', 'all',
+ '-a', 'arm,arm64',
+ ]
+ if options.verbose:
+ gn_command.append('-v')
+ print ' '.join(gn_command)
+ return Execute(gn_command)
+
+
def RunHostGn(options):
gn_command = [
'python',
@@ -61,6 +76,9 @@ def RunHostGn(options):
def RunGn(options):
status = RunHostGn(options)
+ if status != 0:
+ return status
+ status = RunCrossGn(options)
if status != 0:
return status
return RunAndroidGn(options)
« 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