Chromium Code Reviews| Index: pylib/gyp/generator/ninja.py |
| diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py |
| index 2def4b1c18817348bb4bd1de90ec8ec4f44a3bad..2582bc004c5f3996d5d614a128547a184db8777d 100644 |
| --- a/pylib/gyp/generator/ninja.py |
| +++ b/pylib/gyp/generator/ninja.py |
| @@ -9,6 +9,7 @@ import gyp.msvs_emulation |
| import gyp.MSVSVersion |
| import gyp.system_test |
| import gyp.xcode_emulation |
| +import hashlib |
| import os.path |
| import re |
| import subprocess |
| @@ -510,7 +511,8 @@ class NinjaWriter: |
| all_outputs = [] |
| for action in actions: |
| # First write out a rule for the action. |
| - name = '%s_%s' % (self.qualified_target, action['action_name']) |
| + name = '%s_%s' % (hashlib.md5(self.qualified_target).hexdigest(), |
|
Nico
2012/06/23 00:00:06
nit: I think it'd look slightly nicer if you swapp
|
| + action['action_name']) |
| description = self.GenerateDescription('ACTION', |
| action.get('message', None), |
| name) |
| @@ -543,7 +545,8 @@ class NinjaWriter: |
| all_outputs = [] |
| for rule in rules: |
| # First write out a rule for the rule action. |
| - name = '%s_%s' % (self.qualified_target, rule['rule_name']) |
| + name = '%s_%s' % (hashlib.md5(self.qualified_target).hexdigest(), |
| + rule['rule_name']) |
| # Skip a rule with no action and no inputs. |
| if 'action' not in rule and not rule.get('rule_sources', []): |
| continue |