2014-09-04 17:53:40 +00:00
|
|
|
diff --git gyp/generator/ninja.py gyp/generator/ninja.py
|
2015-11-10 15:18:16 -05:00
|
|
|
index 58be3bf..4dcb2a6 100644
|
2014-09-04 17:53:40 +00:00
|
|
|
--- gyp/generator/ninja.py
|
|
|
|
+++ gyp/generator/ninja.py
|
2015-11-10 15:18:16 -05:00
|
|
|
@@ -745,7 +745,16 @@ class NinjaWriter(object):
|
2013-04-09 17:47:14 +00:00
|
|
|
for path in copy['files']:
|
|
|
|
# Normalize the path so trailing slashes don't confuse us.
|
|
|
|
path = os.path.normpath(path)
|
|
|
|
- basename = os.path.split(path)[1]
|
|
|
|
+ (parent_path, basename) = os.path.split(path)
|
|
|
|
+
|
|
|
|
+ # Xcode uses .lproj directories for localized resources. Add a special
|
|
|
|
+ # case to maintain the localization directory component if present.
|
|
|
|
+ if parent_path != '':
|
|
|
|
+ parent_basename = os.path.basename(parent_path)
|
|
|
|
+ (parent_root, parent_ext) = os.path.splitext(parent_basename)
|
|
|
|
+ if parent_ext == '.lproj':
|
|
|
|
+ basename = os.path.join(parent_basename, basename)
|
|
|
|
+
|
|
|
|
src = self.GypPathToNinja(path, env)
|
|
|
|
dst = self.GypPathToNinja(os.path.join(copy['destination'], basename),
|
|
|
|
env)
|
2015-08-25 18:33:31 -04:00
|
|
|
diff --git gyp/msvs_emulation.py gyp/msvs_emulation.py
|
2015-10-09 11:23:12 -04:00
|
|
|
index ca67b12..a3fd903 100644
|
2015-08-25 18:33:31 -04:00
|
|
|
--- gyp/msvs_emulation.py
|
|
|
|
+++ gyp/msvs_emulation.py
|
2015-10-09 11:23:12 -04:00
|
|
|
@@ -1027,8 +1027,10 @@ def GenerateEnvironmentFiles(toplevel_build_dir, generator_flags,
|
2015-08-25 18:33:31 -04:00
|
|
|
args = vs.SetupScript(arch)
|
|
|
|
args.extend(('&&', 'set'))
|
|
|
|
popen = subprocess.Popen(
|
|
|
|
- args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
|
|
|
+ args, shell=True, stdout=subprocess.PIPE)
|
|
|
|
variables, _ = popen.communicate()
|
|
|
|
+ if popen.returncode != 0:
|
|
|
|
+ raise Exception('Error invoking setup script: ' + repr(args))
|
|
|
|
env = _ExtractImportantEnvironment(variables)
|
|
|
|
|
|
|
|
# Inject system includes from gyp files into INCLUDE.
|