DescriptionUse relative path/dir msbuild variables to map $(InputDir) and $(InputPath)
$(InputDir) and $(InputPath) assume relative paths, but they're mapped to
%(RootDir)%(Directory) and %(FullPath) respectively. This makes gyp
generate incorrect commands for non-external rules in VS, for example:
-I ../foo/C:/bar/baz.h
(based on a generated command when building content_shell in VS)
MSBuild also provides variables for relative dir and path, so we should
use those instead to map $(InputDir) and $(InputPath).
Ran test/msvs and test/win test suites against VS2010 and VS2013, no regression.
Since VS maintains the cwd when building, using relative paths shouldn't affect
the current behavior. The only case where it might break things is if an
external script/command expects absolute paths for its arguments. I haven't
seen any instance of this while building content_shell and its dependencies.
BUG=
Patch from romain.pokrzywka@gmail.com.
R=scottmg@chromium.org
Committed: https://code.google.com/p/gyp/source/detail?r=1924
Patch Set 1 #Patch Set 2 : Updated patch with test case #Patch Set 3 : correct path for msvs_cygwin_dirs #Patch Set 4 : Disabled new test for xcode and make generators (not supported yet) #Patch Set 5 : Rebased against master HEAD #Patch Set 6 : Fix for Mac trybot #
Messages
Total messages: 13 (0 generated)
|