|
1 | | -from __future__ importprint_function |
2 | 1 | # Copyright (c) 2012 Google Inc. All rights reserved. |
3 | 2 | # Use of this source code is governed by a BSD-style license that can be |
4 | 3 | # found in the LICENSE file. |
|
15 | 14 | # variables set potentially clash with other Android build system variables. |
16 | 15 | # Try to avoid setting global variables where possible. |
17 | 16 |
|
| 17 | +from __future__ importprint_function |
| 18 | + |
18 | 19 | importgyp |
19 | 20 | importgyp.common |
20 | 21 | importgyp.generator.makeasmake# Reuse global functions from make backend. |
@@ -251,7 +252,7 @@ def WriteActions(self, actions, extra_sources, extra_outputs): |
251 | 252 | dirs=set() |
252 | 253 | foroutinoutputs: |
253 | 254 | ifnotout.startswith('$'): |
254 | | -print('WARNING: Action for target "%s" writes output to local path ' |
| 255 | +print('WARNING: Action for target "%s" writes output to local path ' |
255 | 256 | '"%s".'% (self.target, out)) |
256 | 257 | dir=os.path.split(out)[0] |
257 | 258 | ifdir: |
@@ -356,7 +357,7 @@ def WriteRules(self, rules, extra_sources, extra_outputs): |
356 | 357 | dirs=set() |
357 | 358 | foroutinoutputs: |
358 | 359 | ifnotout.startswith('$'): |
359 | | -print('WARNING: Rule for target %s writes output to local path %s' |
| 360 | +print('WARNING: Rule for target %s writes output to local path %s' |
360 | 361 | % (self.target, out)) |
361 | 362 | dir=os.path.dirname(out) |
362 | 363 | ifdir: |
@@ -430,7 +431,7 @@ def WriteCopies(self, copies, extra_outputs): |
430 | 431 | # $(gyp_shared_intermediate_dir). Note that we can't use an assertion |
431 | 432 | # because some of the gyp tests depend on this. |
432 | 433 | ifnotcopy['destination'].startswith('$'): |
433 | | -print('WARNING: Copy rule for target %s writes output to ' |
| 434 | +print('WARNING: Copy rule for target %s writes output to ' |
434 | 435 | 'local path %s'% (self.target, copy['destination'])) |
435 | 436 |
|
436 | 437 | # LocalPathify() calls normpath, stripping trailing slashes. |
@@ -637,8 +638,8 @@ def ComputeOutputParts(self, spec): |
637 | 638 | elifself.type=='none': |
638 | 639 | target_ext='.stamp' |
639 | 640 | elifself.type!='executable': |
640 | | -print(("ERROR: What output file should be generated?", |
641 | | -"type", self.type, "target", target)) |
| 641 | +print("ERROR: What output file should be generated?", |
| 642 | +"type", self.type, "target", target) |
642 | 643 |
|
643 | 644 | ifself.type!='static_library'andself.type!='shared_library': |
644 | 645 | target_prefix=spec.get('product_prefix', target_prefix) |
@@ -1066,7 +1067,7 @@ def CalculateMakefilePath(build_file, base_name): |
1066 | 1067 | write_alias_target=write_alias_targets, |
1067 | 1068 | sdk_version=sdk_version) |
1068 | 1069 | ifandroid_moduleinandroid_modules: |
1069 | | -print('ERROR: Android module names must be unique. The following ' |
| 1070 | +print('ERROR: Android module names must be unique. The following ' |
1070 | 1071 | 'targets both generate Android module name %s.\n %s\n %s'% |
1071 | 1072 | (android_module, android_modules[android_module], |
1072 | 1073 | qualified_target)) |
|
0 commit comments