[Zlib-devel] zlib 1.2.3.9 is out (fwd)

Vincent Torri vtorri at univ-evry.fr
Mon Feb 22 02:29:23 EST 2010



On Mon, 22 Feb 2010, Philip Lowman wrote:

> On Mon, Feb 22, 2010 at 1:30 AM, Vincent Torri <vtorri at univ-evry.fr> wrote:
>>
>>
>> On Mon, 22 Feb 2010, Philip Lowman wrote:
>>
>>>> 5) How can a Visual Studio user compile zlib if he does not have the
>>>> possibility to launch ./configure (to create zconf.h) ?
>>>
>>> Here are a couple of ideas which might solve this.
>>> 1. They could use CMake
>>
>> i do not agree. The purpose of VS is to have a unique development IDE. To
>> give the same argument, i could have say: 'They could use MSYS'. But that's
>> not a solution for Windows developpers
>
> Perhaps I should have reordered my suggestions?  Personally, I think
> CMake is a good option for a lot of projects especially considering
> its extensive support for Visual Studio.  Realizing that it's not
> perfect, however, I did suggest an alternative to solve this problem.
> There are certainly other options available.
>
> Another option would be for traditional VS users to simply rename
> zconf.h.in to zconf.h and delete the #cmakedefine's near the top.
> Since unistd.h isn't available with VS the code should compile fine.

After a quick search with google, it seems that it is possible to run 
commands before the build:

<Project>
     ...
     <Target Name="BeforeBuild">
         <!-- Insert tasks to run before build here -->
     </Target>
     <Target Name="AfterBuild">
         <!-- Insert tasks to run after build here -->
     </Target>
</Project>

(found in msdn). So maybe we can use it.

Vincent Torri




More information about the Zlib-devel mailing list