Menu

#598 Add .vcxproj wildcard support

Undefined
open
nobody
Feature_Request
2018-01-11
2018-01-11
No

DESCRIPTION:
Code::Blocks (all versions) does not seem to understand MSBUILD wildcard entries despite having support for opening .vcxproj
files. But since Code::Blocks does have UnitsGlob support, it should be easy to add this feature (I think?).

HOW TO REPRODUCE:
Open the .vcxproj file in Visual Studio. You should see a C++ project that contains the source files:
one.cpp two.cpp three.cpp four.cpp

Now open the .vcxproj file in Code::Blocks.

UNDER 16.01: you should see random entries that consist of asterisks, taken from the .vcxproj file.
UNDER 17.12: you should see the "one.cpp" file but the remaining .cpp files should be missing.
EXPECTED RESULT: all cpp files that are visible through Visual Studio should also be included into the CB project

SUGGESTION:
convert the wildcard entries from the .vcxproj into equivalent UnitsGlob entries.
you can find info on UnitsGlob here: http://forums.codeblocks.org/index.php/topic,22365.0.html

EXAMPLES OF CONVERSION:
- MSBUILD: <ClCompile Include="../src/**/*.cpp"/>
Code::Blocks: <UnitsGlob directory="../src" recursive="1" wildcard="*.cpp"/>
- MSBUILD: <ClCompile Include="../src/*.cpp"/>
Code::Blocks: <UnitsGlob directory="../src" recursive="0" wildcard="*.cpp"/>
- MSBUILD: <ClCompile Include="../src/win32_*.cpp"/>
Code::Blocks: <UnitsGlob directory="../src" recursive="0" wildcard="win32_*.cpp"/>
- MSBUILD: <ClCompile Include="../src/*"/>
Code::Blocks: <UnitsGlob directory="../src" recursive="0"/>

DISCUSSION:
The wildcard filename feature is designed for power-users. Code::Blocks appears to have added it in 2012
and the Microsoft MSBUILD team around the same time aswell (somewhere after Visual Studio 2010).
While good support for understanding today's Visual Studio C++ projects exists within Code::Blocks, this
issue is a sign of incompletion most likely due to sparse documentation.

Any further form of MSBUILD wildcard inclusion is unknown to me. In my rationale this is all you are recommended to
implement.

CONTACT:
The_GTA on codeblocks forums.

1 Attachments

Discussion


Log in to post a comment.