coapp-packages / libpng

http://www.libpng.org/
Other
6 stars 2 forks source link

add NuGet build targets for MSVC 2015 (v140) #3

Closed igagis closed 9 years ago

igagis commented 9 years ago

Add NuGet targets to build for MSVS 2015 tools v140 and upload new package to NuGet repository

madewokherd commented 9 years ago

CC @Raggles

I'm looking into this, and we have a dependency on zlib, which we do not control. Version 1.2.8.7, which we're using now, does not support v140.

Version 1.2.8.8, the current version, supports v140, but does not support static linking.

So, options:

I'm inclined to do the last one, but I'd like to put it up for discussion first, if there's anyone around who cares.

Raggles commented 9 years ago

Yea, I built my own zlib package for testing libpng which had all the flavors (https://www.myget.org/gallery/raggles), but I'm inclined to agree with you, I think we should rely on the official zlib and if people really want the other options they will have to build it themselves. Or we could nicely ask whoever controls the zlib package to add static overlays.

igagis commented 9 years ago

I don't care about v100 and v110 support, so last one looks best, as for me :). Static linking is not really that necessary also.

igagis commented 9 years ago

By the way, is there really a need to divide by compiler? AFAIK in C and C++ there is a binary backwards compatibility between standards. I.e. the library built by C++'99 compiler can be used by code built by C++'11 compiler, isn't it? If we remove this division by v100, v110, v140 altogether then the problem will not arise again when v150 comes out?

I.e. have targets listed like this: [x86,release] { //.. }

[x86,debug] { //... }

[x64,release] { //... }

[x64,debug] { //... }

Raggles commented 9 years ago

http://siomsystems.com/mixing-visual-studio-versions/

madewokherd commented 9 years ago

It might be worth checking into whether ucrtbase solves these problems, though that won't really help without dropping v120.

madewokherd commented 9 years ago

New version uploaded: https://www.nuget.org/packages/libpng/1.5.10.13

igagis commented 9 years ago

Thanks! Will try it out in the evening...

igagis commented 9 years ago

It works. Closing the issue.