DescriptionFix msvs-ninja OutputDirectory path.
_FixPath is designed to take gyp paths and convert them to msvs project paths.
This translates a <gyp_dir>"<gyp_dir_to_X>" to
<msvs_project_dir>"<msvs_project_dir_to_gyp_dir>/<gyp_dir_to_X>".
The OutputDirectory when using ninja as the external builder with the ninja
generator generated build files needs to be the path
<msvs_project_dir>"<msvs_project_dir_to_ninja_build_config>".
Since this is specified on a per target basis and will be run though _FixPath,
the external builder directory in the target must be specified as
<gyp_dir>"<gyp_dir_to_toplevel_dir>/<toplevel_dir_to_ninja_build>/<config>".
Chromium currently does not see any issue as it does not set generator_output.
When generator_output is not set, _GetPathOfProject sets fix_prefix to None.
Also, Chromium appears to be using an absolute path for
msvs_external_builder_out_dir.
This is, however, affecting Skia, which sets generator_output to 'out' and
places all of its gyp files in a 'gyp' directory. As a result Skia is seeing
the OutputDirectory set to "../../gyp/out/$(Configuration)". This change fixes
this to "../../out/$(Configuration)".
R=scottmg@chromium.org
Committed: https://code.google.com/p/gyp/source/detail?r=1926
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : Can now run just msvs-ninja. #
Total comments: 4
Patch Set 9 : Find MSBuild with registry. #
Total comments: 2
Patch Set 10 : FindVisualStudioInstallation to locate MSBuild. #
Total comments: 3
Patch Set 11 : Simplify and correct pathing. #
Total comments: 4
Patch Set 12 : Use reg.exe instead of _winreg. #
Messages
Total messages: 17 (0 generated)
|