| Index: pylib/gyp/generator/ninja.py
|
| diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py
|
| index 5cda5c3ce1eb3af06375ae98e733b8600425a1af..78213d7b8f32958bc0f5aa20035cc4c8985abce2 100644
|
| --- a/pylib/gyp/generator/ninja.py
|
| +++ b/pylib/gyp/generator/ninja.py
|
| @@ -769,7 +769,8 @@ class NinjaWriter(object):
|
| output = self.ExpandSpecial(output)
|
| if os.path.splitext(output)[-1] != '.xcassets':
|
| self.ninja.build(output, 'mac_tool', res,
|
| - variables=[('mactool_cmd', 'copy-bundle-resource')])
|
| + variables=[('mactool_cmd', 'copy-bundle-resource'), \
|
| + ('binary', self.xcode_settings.isIOS)])
|
| bundle_depends.append(output)
|
| else:
|
| xcassets.append(res)
|
| @@ -850,7 +851,8 @@ class NinjaWriter(object):
|
| keys = self.xcode_settings.GetExtraPlistItems(self.config_name)
|
| keys = QuoteShellArgument(json.dumps(keys), self.flavor)
|
| self.ninja.build(out, 'copy_infoplist', info_plist,
|
| - variables=[('env', env), ('keys', keys)])
|
| + variables=[('env', env), ('keys', keys),
|
| + ('binary', self.xcode_settings.isIOS)])
|
| bundle_depends.append(out)
|
|
|
| def WriteSources(self, ninja_file, config_name, config, sources, predepends,
|
| @@ -2192,7 +2194,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params,
|
| master_ninja.rule(
|
| 'copy_infoplist',
|
| description='COPY INFOPLIST $in',
|
| - command='$env ./gyp-mac-tool copy-info-plist $in $out $keys')
|
| + command='$env ./gyp-mac-tool copy-info-plist $in $out $binary $keys')
|
| master_ninja.rule(
|
| 'merge_infoplist',
|
| description='MERGE INFOPLISTS $in',
|
| @@ -2204,7 +2206,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params,
|
| master_ninja.rule(
|
| 'mac_tool',
|
| description='MACTOOL $mactool_cmd $in',
|
| - command='$env ./gyp-mac-tool $mactool_cmd $in $out')
|
| + command='$env ./gyp-mac-tool $mactool_cmd $in $out $binary')
|
| master_ninja.rule(
|
| 'package_framework',
|
| description='PACKAGE FRAMEWORK $out, POSTBUILDS',
|
|
|