Commit 024694e7 authored by Andres Amaya Garcia's avatar Andres Amaya Garcia

Fix missing include in vs proj files for query programs

parent cb6b6dcd
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
<Platform>x64</Platform> <Platform>x64</Platform>
</ProjectConfiguration> </ProjectConfiguration>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup><SOURCES>
<ClCompile Include="..\..\programs\<PATHNAME>.c" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="mbedTLS.vcxproj"> <ProjectReference Include="mbedTLS.vcxproj">
......
...@@ -93,8 +93,14 @@ sub gen_app { ...@@ -93,8 +93,14 @@ sub gen_app {
$path =~ s!/!\\!g; $path =~ s!/!\\!g;
(my $appname = $path) =~ s/.*\\//; (my $appname = $path) =~ s/.*\\//;
my $srcs = "\n <ClCompile Include=\"..\\..\\programs\\$path.c\" \/>";
if( $appname eq "ssl_client2" or $appname eq "ssl_server2" or
$appname eq "query_compile_time_config" ) {
$srcs .= "\n <ClCompile Include=\"..\\..\\programs\\ssl\\query_config.c\" \/>";
}
my $content = $template; my $content = $template;
$content =~ s/<PATHNAME>/$path/g; $content =~ s/<SOURCES>/$srcs/g;
$content =~ s/<APPNAME>/$appname/g; $content =~ s/<APPNAME>/$appname/g;
$content =~ s/<GUID>/$guid/g; $content =~ s/<GUID>/$guid/g;
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\..\programs\test\query_compile_time_config.c" /> <ClCompile Include="..\..\programs\test\query_compile_time_config.c" />
<ClCompile Include="..\..\programs\ssl\query_config.c" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="mbedTLS.vcxproj"> <ProjectReference Include="mbedTLS.vcxproj">
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\..\programs\ssl\ssl_client2.c" /> <ClCompile Include="..\..\programs\ssl\ssl_client2.c" />
<ClCompile Include="..\..\programs\ssl\query_config.c" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="mbedTLS.vcxproj"> <ProjectReference Include="mbedTLS.vcxproj">
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\..\programs\ssl\ssl_server2.c" /> <ClCompile Include="..\..\programs\ssl\ssl_server2.c" />
<ClCompile Include="..\..\programs\ssl\query_config.c" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="mbedTLS.vcxproj"> <ProjectReference Include="mbedTLS.vcxproj">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment