OLD | NEW |
---|---|
1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 Google Inc. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """ | 5 """ |
6 TestGyp.py: a testing framework for GYP integration tests. | 6 TestGyp.py: a testing framework for GYP integration tests. |
7 """ | 7 """ |
8 | 8 |
9 import os | 9 import os |
10 import re | 10 import re |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
450 result = [] | 450 result = [] |
451 chdir = kw.get('chdir') | 451 chdir = kw.get('chdir') |
452 if chdir: | 452 if chdir: |
453 result.append(chdir) | 453 result.append(chdir) |
454 result.append('out') | 454 result.append('out') |
455 result.append(self.configuration_dirname()) | 455 result.append(self.configuration_dirname()) |
456 if type == self.STATIC_LIB: | 456 if type == self.STATIC_LIB: |
457 if sys.platform != 'darwin': | 457 if sys.platform != 'darwin': |
458 result.append('obj') | 458 result.append('obj') |
459 elif type == self.SHARED_LIB: | 459 elif type == self.SHARED_LIB: |
460 if sys.platform != 'darwin': | 460 if sys.platform != 'darwin' and sys.platform != 'win32': |
461 result.append('lib') | 461 result.append('lib') |
Evan Martin
2012/02/21 18:10:47
I wonder why this is different. Maybe we should u
| |
462 subdir = kw.get('subdir') | 462 subdir = kw.get('subdir') |
463 if subdir: | 463 if subdir: |
464 result.append(subdir) | 464 result.append(subdir) |
465 result.append(self.built_file_basename(name, type, **kw)) | 465 result.append(self.built_file_basename(name, type, **kw)) |
466 return self.workpath(*result) | 466 return self.workpath(*result) |
467 | 467 |
468 def up_to_date(self, gyp_file, target=None, **kw): | 468 def up_to_date(self, gyp_file, target=None, **kw): |
469 result = self.build(gyp_file, target, **kw) | 469 result = self.build(gyp_file, target, **kw) |
470 if not result: | 470 if not result: |
471 stdout = self.stdout() | 471 stdout = self.stdout() |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
799 """ | 799 """ |
800 format = kw.get('format') | 800 format = kw.get('format') |
801 if format: | 801 if format: |
802 del kw['format'] | 802 del kw['format'] |
803 else: | 803 else: |
804 format = os.environ.get('TESTGYP_FORMAT') | 804 format = os.environ.get('TESTGYP_FORMAT') |
805 for format_class in format_class_list: | 805 for format_class in format_class_list: |
806 if format == format_class.format: | 806 if format == format_class.format: |
807 return format_class(*args, **kw) | 807 return format_class(*args, **kw) |
808 raise Exception, "unknown format %r" % format | 808 raise Exception, "unknown format %r" % format |
OLD | NEW |