diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-10-18 14:38:48 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-18 14:39:39 -0700 |
commit | dbfc8198a6879a0764314db701b610ca2f0c038b (patch) | |
tree | 6a1416c70a981f1f095e40909f14fc22a8bd7a7e /tools/gyp/pylib/gyp/generator/xcode.py | |
parent | 5783a52a9c6dc12f6d60f69cb095efec84468373 (diff) | |
download | android-node-v8-dbfc8198a6879a0764314db701b610ca2f0c038b.tar.gz android-node-v8-dbfc8198a6879a0764314db701b610ca2f0c038b.tar.bz2 android-node-v8-dbfc8198a6879a0764314db701b610ca2f0c038b.zip |
Upgrade GYP to r1078
Diffstat (limited to 'tools/gyp/pylib/gyp/generator/xcode.py')
-rw-r--r-- | tools/gyp/pylib/gyp/generator/xcode.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gyp/pylib/gyp/generator/xcode.py b/tools/gyp/pylib/gyp/generator/xcode.py index 0429b8006c..066bb9f02f 100644 --- a/tools/gyp/pylib/gyp/generator/xcode.py +++ b/tools/gyp/pylib/gyp/generator/xcode.py @@ -53,6 +53,7 @@ generator_default_variables = { 'RULE_INPUT_EXT': '$(INPUT_FILE_SUFFIX)', 'RULE_INPUT_NAME': '$(INPUT_FILE_NAME)', 'RULE_INPUT_PATH': '$(INPUT_FILE_PATH)', + 'RULE_INPUT_DIRNAME': '$(INPUT_FILE_DIRNAME)', 'SHARED_INTERMEDIATE_DIR': '$(%s)' % _shared_intermediate_var, 'CONFIGURATION_NAME': '$(CONFIGURATION)', } @@ -865,7 +866,8 @@ def GenerateOutput(target_list, target_dicts, data, params): actions = [] for rule_source in rule.get('rule_sources', []): - rule_source_basename = posixpath.basename(rule_source) + rule_source_dirname, rule_source_basename = \ + posixpath.split(rule_source) (rule_source_root, rule_source_ext) = \ posixpath.splitext(rule_source_basename) @@ -877,6 +879,7 @@ def GenerateOutput(target_list, target_dicts, data, params): 'INPUT_FILE_SUFFIX': rule_source_ext, 'INPUT_FILE_NAME': rule_source_basename, 'INPUT_FILE_PATH': rule_source, + 'INPUT_FILE_DIRNAME': rule_source_dirname, } concrete_outputs_for_this_rule_source = [] |