Skip to content

Commit

Permalink
Add png16 and libpng16 to library names in libpng.jam (#514)
Browse files Browse the repository at this point in the history
* Add png16 and libpng16 to library names in libpng.jam

On Windows, this allows to successfully find the library installed
using vcpkg which deploys the library named as libpng16.lib
and not png16.lib or png.lib.

* Add rationale behind listing multiple libpng names
  • Loading branch information
mloskot authored and grafikrobot committed Dec 18, 2019
1 parent eadc7ac commit d4efd2d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tools/libpng.jam
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ import ac ;
import errors ;
import feature ;
import "class" : new ;
import targets ;
import targets ;
import path ;
import modules ;
import indirect ;
import property ;
import property-set ;

header = png.h ;
names = png ;

# On Windows, binary distributions of libpng and package managers
# name the library differently (e.g. vcpkg installs libpng16.lib).
# Listing popular names increases chances of successful look-up.
names = libpng libpng16 png png16 ;

sources = png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c pngrio.c pngrtran.c pngrutil.c
pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c ;
Expand Down

0 comments on commit d4efd2d

Please sign in to comment.