Commit 0ce7ded9 authored by Ondřej Surý's avatar Ondřej Surý

Add xsl.c generation to vcxproj files for named build

parent 1a870e05
......@@ -62,6 +62,9 @@
<ClCompile Include="..\tsigconf.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\xsl.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\zoneconf.c">
<Filter>Source Files</Filter>
</ClCompile>
......@@ -114,6 +117,9 @@
<ClInclude Include="..\include\named\types.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\xsl_p.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\named\zoneconf.h">
<Filter>Header Files</Filter>
</ClInclude>
......
......@@ -77,6 +77,13 @@
<AdditionalLibraryDirectories>..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);..\..\..\lib\isccc\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\bind9\win32\$(Configuration);..\..\..\lib\ns\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>@OPENSSL_LIB@@LIBXML2_LIB@@GSSAPI_LIB@@GEOIP_LIB@libisc.lib;libdns.lib;libisccc.lib;libisccfg.lib;libbind9.lib;libns.lib;version.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent>
<Command>cd ..
perl -e "print \"const char xslmsg[] =\n\";" &gt; xsl.c
perl -p -e "s/\"/\\\\\"/g;" -e "s/^/\"/;" -e "s/$/\"/;" &lt; bind9.xsl &gt;&gt; xsl.c
perl -e "print \";\";" &gt;&gt; xsl.c
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
<ClCompile>
......@@ -109,6 +116,13 @@
<AdditionalLibraryDirectories>..\..\..\lib\isc\win32\$(Configuration);..\..\..\lib\dns\win32\$(Configuration);..\..\..\lib\isccc\win32\$(Configuration);..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\lib\bind9\win32\$(Configuration);..\..\..\lib\ns\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>@OPENSSL_LIB@@LIBXML2_LIB@@GSSAPI_LIB@@GEOIP_LIB@libisc.lib;libdns.lib;libisccc.lib;libisccfg.lib;libbind9.lib;libns.lib;version.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent>
<Command>cd ..
perl -e "print \"const char xslmsg[] =\n\";" &gt; xsl.c
perl -p -e "s/\"/\\\\\"/g;s/^/\"/;s/$/\"/;" &lt; bind9.xsl &gt;&gt; xsl.c
perl -e "print \";\";" &gt;&gt; xsl.c
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\builtin.c" />
......@@ -125,6 +139,7 @@
<ClCompile Include="..\statschannel.c" />
<ClCompile Include="..\tkeyconf.c" />
<ClCompile Include="..\tsigconf.c" />
<ClCompile Include="..\xsl.c" />
<ClCompile Include="..\zoneconf.c" />
<ClCompile Include="dlz_dlopen_driver.c" />
<ClCompile Include="ntservice.c" />
......@@ -146,6 +161,7 @@
<ClInclude Include="..\include\named\tkeyconf.h" />
<ClInclude Include="..\include\named\tsigconf.h" />
<ClInclude Include="..\include\named\types.h" />
<ClInclude Include="..\xsl_p.h" />
<ClInclude Include="..\include\named\zoneconf.h" />
<ClInclude Include="include\named\ntservice.h" />
<ClInclude Include="include\named\os.h" />
......
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