allweax / gyp

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

Gyp generates invalid solution folders / Turn off MSVCFolders completely? #494

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In _DictsToFolders(), gyp wraps the folder name in parantheses:

        folder_children = MSVSNew.MSVSFolder(os.path.join(base_path, folder),
            name='(' + folder + ')',
            ...

The brackets make it impossible to build individual targets/projects with 
msbuild on command line (error MSB4057):

    msbuild all.sln /t:v8
    msbuild all.sln /t:(tools)\(gyp)\v8

Without parens, the latter command will work.

But I don't want any solution folders at all, to make the former command work 
(3rd party build script expects it this way). How do I turn MSVSFolders off 
entirely? It should be a flat solution.

Screenshot and .sln attached.

Original issue reported on code.google.com by simran.b...@gmail.com on 19 Aug 2015 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
Dived into the code and found out, that solution folders are created if the 
target VS supports it. I'm now forcing flat=True because it doesn't look like 
it could be controlled by a setting.

Original comment by simran.b...@gmail.com on 19 Aug 2015 at 8:07

Attachments: