2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Add xsl.c generation to vcxproj files for named build

This commit is contained in:
Ondřej Surý
2020-05-21 17:05:11 +02:00
parent 1a870e054d
commit 0ce7ded9f9
2 changed files with 22 additions and 0 deletions

View File

@@ -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>

View File

@@ -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" />