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

Side by Side Diff: tools/utils.py

Issue 2194223002: Remove Fuchsia build from the gyp build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « tools/gyp/configurations_fuchsia.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 # This file contains a set of utilities functions used by other Python-based 5 # This file contains a set of utilities functions used by other Python-based
6 # scripts. 6 # scripts.
7 7
8 import commands 8 import commands
9 import datetime 9 import datetime
10 import json 10 import json
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 def GetArchFamily(arch): 262 def GetArchFamily(arch):
263 return ARCH_FAMILY[arch] 263 return ARCH_FAMILY[arch]
264 264
265 def IsCrossBuild(target_os, arch): 265 def IsCrossBuild(target_os, arch):
266 host_arch = ARCH_GUESS 266 host_arch = ARCH_GUESS
267 return ((GetArchFamily(host_arch) != GetArchFamily(arch)) or 267 return ((GetArchFamily(host_arch) != GetArchFamily(arch)) or
268 (target_os != GuessOS())) 268 (target_os != GuessOS()))
269 269
270 def GetBuildConf(mode, arch, conf_os=None): 270 def GetBuildConf(mode, arch, conf_os=None):
271 if conf_os == 'android' or conf_os == 'fuchsia': 271 if conf_os == 'android':
272 return '%s%s%s' % (GetBuildMode(mode), conf_os.title(), arch.upper()) 272 return '%s%s%s' % (GetBuildMode(mode), conf_os.title(), arch.upper())
273 else: 273 else:
274 # Ask for a cross build if the host and target architectures don't match. 274 # Ask for a cross build if the host and target architectures don't match.
275 host_arch = ARCH_GUESS 275 host_arch = ARCH_GUESS
276 cross_build = '' 276 cross_build = ''
277 if GetArchFamily(host_arch) != GetArchFamily(arch): 277 if GetArchFamily(host_arch) != GetArchFamily(arch):
278 print "GetBuildConf: Cross-build of %s on %s\n" % (arch, host_arch) 278 print "GetBuildConf: Cross-build of %s on %s\n" % (arch, host_arch)
279 cross_build = 'X' 279 cross_build = 'X'
280 return '%s%s%s' % (GetBuildMode(mode), cross_build, arch.upper()) 280 return '%s%s%s' % (GetBuildMode(mode), cross_build, arch.upper())
281 281
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 os.chdir(self._working_directory) 653 os.chdir(self._working_directory)
654 654
655 def __exit__(self, *_): 655 def __exit__(self, *_):
656 print "Enter directory = ", self._old_cwd 656 print "Enter directory = ", self._old_cwd
657 os.chdir(self._old_cwd) 657 os.chdir(self._old_cwd)
658 658
659 659
660 if __name__ == "__main__": 660 if __name__ == "__main__":
661 import sys 661 import sys
662 Main() 662 Main()
OLDNEW
« no previous file with comments | « tools/gyp/configurations_fuchsia.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698