diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2012-08-22 15:18:45 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2012-08-22 15:18:45 -0400 |
commit | f90c9ce0e255e531fee4f07dbe53f0c6c893e700 (patch) | |
tree | a7562df35ce3a399a2f373f79a5fd019d92b0a75 /tools/gyp/pylib/gyp/generator/eclipse.py | |
parent | 2e1f2b535e91506a128062ead055da0a9447b17e (diff) | |
download | android-node-v8-f90c9ce0e255e531fee4f07dbe53f0c6c893e700.tar.gz android-node-v8-f90c9ce0e255e531fee4f07dbe53f0c6c893e700.tar.bz2 android-node-v8-f90c9ce0e255e531fee4f07dbe53f0c6c893e700.zip |
Upgrade GYP to r1477
Diffstat (limited to 'tools/gyp/pylib/gyp/generator/eclipse.py')
-rw-r--r-- | tools/gyp/pylib/gyp/generator/eclipse.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gyp/pylib/gyp/generator/eclipse.py b/tools/gyp/pylib/gyp/generator/eclipse.py index 5e16c02739..0f90b5ea60 100644 --- a/tools/gyp/pylib/gyp/generator/eclipse.py +++ b/tools/gyp/pylib/gyp/generator/eclipse.py @@ -17,6 +17,7 @@ still result in a few indexer issues here and there. This generator has no automated tests, so expect it to be broken. """ +from xml.sax.saxutils import escape import os.path import subprocess import gyp @@ -36,7 +37,8 @@ for unused in ['RULE_INPUT_PATH', 'RULE_INPUT_ROOT', 'RULE_INPUT_NAME', 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT', 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX', 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX', - 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX']: + 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX', + 'CONFIGURATION_NAME']: generator_default_variables[unused] = '' # Include dirs will occasionaly use the SHARED_INTERMEDIATE_DIR variable as @@ -216,7 +218,7 @@ def WriteMacros(out, eclipse_langs, defines): out.write(' <language name="%s">\n' % lang) for key in sorted(defines.iterkeys()): out.write(' <macro><name>%s</name><value>%s</value></macro>\n' % - (key, defines[key])) + (escape(key), escape(defines[key]))) out.write(' </language>\n') out.write(' </section>\n') |