Thank you very much, oBFusCATed ! This is exactly what I was looking for.
So using the examples provided by killerbot, my examples be written like this:
<UnitsGlob directory="src" wildcard="*.cpp" recursive="1" />
<UnitsGlob directory="vendor" wildcard="*.cpp" recursive="0" />
Confirmed working! See this example CBP file:
http://svn.osdn.net/svnroot/peframework/build/peframework.cbpThis is great news! I feel confident about adding Code::Blocks projects as alternative build method. You know how makefiles have problems with spaces in paths? This is not a problem with Code::Blocks projects, am I right?
Despite you mentioning "no GUI support" killerbot has claimed that the file entries do show up in the GUI, at least. By reloading the project you get the recent file list aswell. This sounds like everything I would ever need anyway!
-----------------
Related but different, I would like to report a bug. When importing a MSVC project that has wildcard file entries, Code::Blocks does not resolve them.
Example:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
( ... )
<ItemGroup>
<Natvis Include="peloader.natvis" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\**\*.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\include\**\*.h" />
<ClInclude Include="..\src\**\*.h" />
<ClInclude Include="..\src\**\*.hxx" />
</ItemGroup>
( ... )
</Project>
(location:
http://svn.osdn.net/svnroot/peframework/build/peframework.vcxproj)
Since Code::Blocks does have support for such things, could somebody please add support for the MSVC style wildcard aswell?
- Martin
EDIT: fixes for the examples, etc.