part 2: latest gyp pointed at official git repo.

This commit is contained in:
Ben Vanik 2014-07-09 21:33:14 -07:00
parent f61c21506b
commit 0c3583f0e4
3 changed files with 30 additions and 0 deletions

3
.gitmodules vendored
View File

@ -13,3 +13,6 @@
[submodule "third_party/xbyak"]
path = third_party/xbyak
url = https://github.com/herumi/xbyak.git
[submodule "third_party/gyp"]
path = third_party/gyp
url = https://chromium.googlesource.com/external/gyp

1
third_party/gyp vendored Submodule

@ -0,0 +1 @@
Subproject commit 867a23f4b596b7406cce1231a23b44b47bc1a583

26
third_party/gyp.patch vendored Normal file
View File

@ -0,0 +1,26 @@
diff --git a/pylib/gyp/generator/msvs.py b/pylib/gyp/generator/msvs.py
index 05783d6..539614c 100644
--- a/pylib/gyp/generator/msvs.py
+++ b/pylib/gyp/generator/msvs.py
@@ -1963,13 +1963,17 @@ def _AppendFiltersForMSBuild(parent_filter_name, sources,
if isinstance(source, MSVSProject.Filter):
# We have a sub-filter. Create the name of that sub-filter.
if not parent_filter_name:
- filter_name = source.name
+ if source.name == '..':
+ filter_name = ''
+ else:
+ filter_name = source.name
else:
filter_name = '%s\\%s' % (parent_filter_name, source.name)
# Add the filter to the group.
- filter_group.append(
- ['Filter', {'Include': filter_name},
- ['UniqueIdentifier', MSVSNew.MakeGuid(source.name)]])
+ if filter_name:
+ filter_group.append(
+ ['Filter', {'Include': filter_name},
+ ['UniqueIdentifier', MSVSNew.MakeGuid(source.name)]])
# Recurse and add its dependents.
_AppendFiltersForMSBuild(filter_name, source.contents,
extension_to_rule_name,