ordering file list whe generating msvc.proj

This commit is contained in:
Karel Miko 2017-03-07 23:56:29 +01:00
parent 8c831e1e30
commit c260954b52
3 changed files with 219 additions and 220 deletions

View File

@ -75,12 +75,11 @@ sub prepare_msvc_files_xml {
my $last = []; my $last = [];
my $depth = 2; my $depth = 2;
my $files = "<Files>\r\n"; my $files = "<Files>\r\n";
for my $full (@$all) { for my $full (sort @$all) {
my @items = split /\//, $full; # split by '/' my @items = split /\//, $full; # split by '/'
$full =~ s|/|\\|g; # replace '/' bt '\' $full =~ s|/|\\|g; # replace '/' bt '\'
#XXXXXXXXXXXXX shift @items; # drop first one (src)
shift @items; pop @items; # drop last one (filename.ext)
pop @items; # drop last one
my $current = \@items; my $current = \@items;
if (join(':', @$current) ne join(':', @$last)) { if (join(':', @$current) ne join(':', @$last)) {
my $common = 0; my $common = 0;

View File

@ -170,6 +170,38 @@
<Filter <Filter
Name="ciphers" Name="ciphers"
> >
<Filter
Name="aes"
>
<File
RelativePath="src\ciphers\aes\aes.c"
>
</File>
<File
RelativePath="src\ciphers\aes\aes_tab.c"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
</File>
</Filter>
<File <File
RelativePath="src\ciphers\anubis.c" RelativePath="src\ciphers\anubis.c"
> >
@ -222,46 +254,6 @@
RelativePath="src\ciphers\rc6.c" RelativePath="src\ciphers\rc6.c"
> >
</File> </File>
<File
RelativePath="src\ciphers\skipjack.c"
>
</File>
<File
RelativePath="src\ciphers\xtea.c"
>
</File>
<Filter
Name="aes"
>
<File
RelativePath="src\ciphers\aes\aes.c"
>
</File>
<File
RelativePath="src\ciphers\aes\aes_tab.c"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
</File>
</Filter>
<Filter <Filter
Name="safer" Name="safer"
> >
@ -269,10 +261,6 @@
RelativePath="src\ciphers\safer\safer.c" RelativePath="src\ciphers\safer\safer.c"
> >
</File> </File>
<File
RelativePath="src\ciphers\safer\saferp.c"
>
</File>
<File <File
RelativePath="src\ciphers\safer\safer_tab.c" RelativePath="src\ciphers\safer\safer_tab.c"
> >
@ -297,7 +285,15 @@
/> />
</FileConfiguration> </FileConfiguration>
</File> </File>
<File
RelativePath="src\ciphers\safer\saferp.c"
>
</File>
</Filter> </Filter>
<File
RelativePath="src\ciphers\skipjack.c"
>
</File>
<Filter <Filter
Name="twofish" Name="twofish"
> >
@ -330,6 +326,10 @@
</FileConfiguration> </FileConfiguration>
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\ciphers\xtea.c"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="encauth" Name="encauth"
@ -566,6 +566,34 @@
<Filter <Filter
Name="hashes" Name="hashes"
> >
<Filter
Name="chc"
>
<File
RelativePath="src\hashes\chc\chc.c"
>
</File>
</Filter>
<Filter
Name="helper"
>
<File
RelativePath="src\hashes\helper\hash_file.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_filehandle.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory_multi.c"
>
</File>
</Filter>
<File <File
RelativePath="src\hashes\md2.c" RelativePath="src\hashes\md2.c"
> >
@ -598,38 +626,6 @@
RelativePath="src\hashes\sha1.c" RelativePath="src\hashes\sha1.c"
> >
</File> </File>
<File
RelativePath="src\hashes\tiger.c"
>
</File>
<Filter
Name="chc"
>
<File
RelativePath="src\hashes\chc\chc.c"
>
</File>
</Filter>
<Filter
Name="helper"
>
<File
RelativePath="src\hashes\helper\hash_file.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_filehandle.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory_multi.c"
>
</File>
</Filter>
<Filter <Filter
Name="sha2" Name="sha2"
> >
@ -658,6 +654,10 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\hashes\tiger.c"
>
</File>
<Filter <Filter
Name="whirl" Name="whirl"
> >
@ -938,6 +938,14 @@
<Filter <Filter
Name="math" Name="math"
> >
<Filter
Name="fp"
>
<File
RelativePath="src\math\fp\ltc_ecc_fp_mulmod.c"
>
</File>
</Filter>
<File <File
RelativePath="src\math\gmp_desc.c" RelativePath="src\math\gmp_desc.c"
> >
@ -962,14 +970,6 @@
RelativePath="src\math\tfm_desc.c" RelativePath="src\math\tfm_desc.c"
> >
</File> </File>
<Filter
Name="fp"
>
<File
RelativePath="src\math\fp\ltc_ecc_fp_mulmod.c"
>
</File>
</Filter>
</Filter> </Filter>
<Filter <Filter
Name="misc" Name="misc"
@ -978,30 +978,6 @@
RelativePath="src\misc\adler32.c" RelativePath="src\misc\adler32.c"
> >
</File> </File>
<File
RelativePath="src\misc\burn_stack.c"
>
</File>
<File
RelativePath="src\misc\crc32.c"
>
</File>
<File
RelativePath="src\misc\error_to_string.c"
>
</File>
<File
RelativePath="src\misc\mem_neq.c"
>
</File>
<File
RelativePath="src\misc\pk_get_oid.c"
>
</File>
<File
RelativePath="src\misc\zeromem.c"
>
</File>
<Filter <Filter
Name="base64" Name="base64"
> >
@ -1014,6 +990,14 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\burn_stack.c"
>
</File>
<File
RelativePath="src\misc\crc32.c"
>
</File>
<Filter <Filter
Name="crypt" Name="crypt"
> >
@ -1126,6 +1110,10 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\error_to_string.c"
>
</File>
<Filter <Filter
Name="hkdf" Name="hkdf"
> >
@ -1138,6 +1126,14 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\mem_neq.c"
>
</File>
<File
RelativePath="src\misc\pk_get_oid.c"
>
</File>
<Filter <Filter
Name="pkcs5" Name="pkcs5"
> >
@ -1154,6 +1150,10 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\zeromem.c"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="modes" Name="modes"

View File

@ -172,6 +172,38 @@
<Filter <Filter
Name="ciphers" Name="ciphers"
> >
<Filter
Name="aes"
>
<File
RelativePath="src\ciphers\aes\aes.c"
>
</File>
<File
RelativePath="src\ciphers\aes\aes_tab.c"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
</File>
</Filter>
<File <File
RelativePath="src\ciphers\anubis.c" RelativePath="src\ciphers\anubis.c"
> >
@ -224,46 +256,6 @@
RelativePath="src\ciphers\rc6.c" RelativePath="src\ciphers\rc6.c"
> >
</File> </File>
<File
RelativePath="src\ciphers\skipjack.c"
>
</File>
<File
RelativePath="src\ciphers\xtea.c"
>
</File>
<Filter
Name="aes"
>
<File
RelativePath="src\ciphers\aes\aes.c"
>
</File>
<File
RelativePath="src\ciphers\aes\aes_tab.c"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
/>
</FileConfiguration>
</File>
</Filter>
<Filter <Filter
Name="safer" Name="safer"
> >
@ -271,10 +263,6 @@
RelativePath="src\ciphers\safer\safer.c" RelativePath="src\ciphers\safer\safer.c"
> >
</File> </File>
<File
RelativePath="src\ciphers\safer\saferp.c"
>
</File>
<File <File
RelativePath="src\ciphers\safer\safer_tab.c" RelativePath="src\ciphers\safer\safer_tab.c"
> >
@ -299,7 +287,15 @@
/> />
</FileConfiguration> </FileConfiguration>
</File> </File>
<File
RelativePath="src\ciphers\safer\saferp.c"
>
</File>
</Filter> </Filter>
<File
RelativePath="src\ciphers\skipjack.c"
>
</File>
<Filter <Filter
Name="twofish" Name="twofish"
> >
@ -332,6 +328,10 @@
</FileConfiguration> </FileConfiguration>
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\ciphers\xtea.c"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="encauth" Name="encauth"
@ -568,6 +568,34 @@
<Filter <Filter
Name="hashes" Name="hashes"
> >
<Filter
Name="chc"
>
<File
RelativePath="src\hashes\chc\chc.c"
>
</File>
</Filter>
<Filter
Name="helper"
>
<File
RelativePath="src\hashes\helper\hash_file.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_filehandle.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory_multi.c"
>
</File>
</Filter>
<File <File
RelativePath="src\hashes\md2.c" RelativePath="src\hashes\md2.c"
> >
@ -600,38 +628,6 @@
RelativePath="src\hashes\sha1.c" RelativePath="src\hashes\sha1.c"
> >
</File> </File>
<File
RelativePath="src\hashes\tiger.c"
>
</File>
<Filter
Name="chc"
>
<File
RelativePath="src\hashes\chc\chc.c"
>
</File>
</Filter>
<Filter
Name="helper"
>
<File
RelativePath="src\hashes\helper\hash_file.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_filehandle.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory.c"
>
</File>
<File
RelativePath="src\hashes\helper\hash_memory_multi.c"
>
</File>
</Filter>
<Filter <Filter
Name="sha2" Name="sha2"
> >
@ -660,6 +656,10 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\hashes\tiger.c"
>
</File>
<Filter <Filter
Name="whirl" Name="whirl"
> >
@ -940,6 +940,14 @@
<Filter <Filter
Name="math" Name="math"
> >
<Filter
Name="fp"
>
<File
RelativePath="src\math\fp\ltc_ecc_fp_mulmod.c"
>
</File>
</Filter>
<File <File
RelativePath="src\math\gmp_desc.c" RelativePath="src\math\gmp_desc.c"
> >
@ -964,14 +972,6 @@
RelativePath="src\math\tfm_desc.c" RelativePath="src\math\tfm_desc.c"
> >
</File> </File>
<Filter
Name="fp"
>
<File
RelativePath="src\math\fp\ltc_ecc_fp_mulmod.c"
>
</File>
</Filter>
</Filter> </Filter>
<Filter <Filter
Name="misc" Name="misc"
@ -980,30 +980,6 @@
RelativePath="src\misc\adler32.c" RelativePath="src\misc\adler32.c"
> >
</File> </File>
<File
RelativePath="src\misc\burn_stack.c"
>
</File>
<File
RelativePath="src\misc\crc32.c"
>
</File>
<File
RelativePath="src\misc\error_to_string.c"
>
</File>
<File
RelativePath="src\misc\mem_neq.c"
>
</File>
<File
RelativePath="src\misc\pk_get_oid.c"
>
</File>
<File
RelativePath="src\misc\zeromem.c"
>
</File>
<Filter <Filter
Name="base64" Name="base64"
> >
@ -1016,6 +992,14 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\burn_stack.c"
>
</File>
<File
RelativePath="src\misc\crc32.c"
>
</File>
<Filter <Filter
Name="crypt" Name="crypt"
> >
@ -1128,6 +1112,10 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\error_to_string.c"
>
</File>
<Filter <Filter
Name="hkdf" Name="hkdf"
> >
@ -1140,6 +1128,14 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\mem_neq.c"
>
</File>
<File
RelativePath="src\misc\pk_get_oid.c"
>
</File>
<Filter <Filter
Name="pkcs5" Name="pkcs5"
> >
@ -1156,6 +1152,10 @@
> >
</File> </File>
</Filter> </Filter>
<File
RelativePath="src\misc\zeromem.c"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="modes" Name="modes"