wangyu5 / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

gyp cross platform generate error(generate win project in linux) #198

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use gyp generate windows sln % vcproj file(use --format=msvs)
2. all the vcproj generate in the root dir.(with path and "\\" as file name 
prefix
3. Want get path1/path2/my.vcproj, but get "path1\\path2\\my.vcproj" file in 
root

What is the expected output? What do you see instead?

Want get path1/path2/my.vcproj, but get "path1\\path2\\my.vcproj" file in root

What version of the product are you using? On what operating system?

Lastest version

Please provide any additional information below.
Below patch work well
svn diff gyp/pylib/gyp/generator/msvs.py
Index: gyp/pylib/gyp/generator/msvs.py
===================================================================
--- gyp/pylib/gyp/generator/msvs.py     (revision 930)
+++ gyp/pylib/gyp/generator/msvs.py     (working copy)
@@ -1570,7 +1570,7 @@
     build_file = gyp.common.BuildFile(qualified_target)
     # Create object for this project.
     obj = MSVSNew.MSVSProject(
-        _FixPath(proj_path),
+        proj_path, # _FixPath(proj_path),
         name=spec['target_name'],
         guid=guid,
         spec=spec,

Original issue reported on code.google.com by lrobot...@gmail.com on 20 Jun 2011 at 3:46