summaryrefslogtreecommitdiffstats
path: root/extra/chromium/gyp-make.patch
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-09-30 12:49:10 +0200
committersibel <lesibel at free dot fr>2010-09-30 12:49:10 +0200
commit70d9cfed4469b888f0c9f720e58a92547fc65e9f (patch)
tree0915a689f8e0feb29b00f639fee6da2a5dec89d9 /extra/chromium/gyp-make.patch
parent87955fcf0e15bc471065d1f22a2e3036967f2a3d (diff)
downloadnutyx-pakxe-70d9cfed4469b888f0c9f720e58a92547fc65e9f.tar.gz
nutyx-pakxe-70d9cfed4469b888f0c9f720e58a92547fc65e9f.tar.bz2
nutyx-pakxe-70d9cfed4469b888f0c9f720e58a92547fc65e9f.tar.xz
nutyx-pakxe-70d9cfed4469b888f0c9f720e58a92547fc65e9f.zip
maj de chromium-6#6.0.472.63-1
Diffstat (limited to 'extra/chromium/gyp-make.patch')
-rw-r--r--extra/chromium/gyp-make.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/chromium/gyp-make.patch b/extra/chromium/gyp-make.patch
new file mode 100644
index 000000000..7fa9d639a
--- /dev/null
+++ b/extra/chromium/gyp-make.patch
@@ -0,0 +1,33 @@
+--- tools/gyp/pylib/gyp/generator/make.py (revision 839)
++++ tools/gyp/pylib/gyp/generator/make.py (working copy)
+@@ -497,6 +497,12 @@
+ return string
+
+
++def StringToMakefileVariable(string):
++ """Convert a string to a value that is acceptable as a make variable name."""
++ # TODO: replace other metacharacters that we encounter.
++ return string.replace(' ', '_')
++
++
+ srcdir_prefix = ''
+ def Sourceify(path):
+ """Convert a path to its source directory form."""
+@@ -656,7 +662,7 @@
+ part_of_all: flag indicating this target is part of 'all'
+ """
+ for action in actions:
+- name = self.target + '_' + action['action_name']
++ name = self.target + '_' + StringToMakefileVariable(action['action_name'])
+ self.WriteLn('### Rules for action "%s":' % action['action_name'])
+ inputs = action['inputs']
+ outputs = action['outputs']
+@@ -725,7 +731,7 @@
+ part_of_all: flag indicating this target is part of 'all'
+ """
+ for rule in rules:
+- name = self.target + '_' + rule['rule_name']
++ name = self.target + '_' + StringToMakefileVariable(rule['rule_name'])
+ count = 0
+ self.WriteLn('### Generated for rule %s:' % name)
+