]> git.tdb.fi Git - ext/libpng.git/blob - Build
Adjust library name to match upstream
[ext/libpng.git] / Build
1 package "libpng"
2 {
3         require "zlib";
4
5         library "png16"
6         {
7                 source "png.c";
8                 source "pngerror.c";
9                 source "pngget.c";
10                 source "pngmem.c";
11                 source "pngpread.c";
12                 source "pngread.c";
13                 source "pngrio.c";
14                 source "pngrtran.c";
15                 source "pngrutil.c";
16                 source "pngset.c";
17                 source "pngtrans.c";
18                 source "pngwio.c";
19                 source "pngwrite.c";
20                 source "pngwtran.c";
21                 source "pngwutil.c";
22                 source "png.h";
23                 source "pngconf.h";
24                 source "pnglibconf.h";
25                 source "pngpriv.h";
26                 source "pngdebug.h";
27                 source "pnginfo.h";
28                 source "pngstruct.h";
29                 if_arch "x86"
30                 {
31                         source "intel/intel_init.c";
32                         source "intel/filter_sse2_intrinsics.c";
33                 };
34                 build_info
35                 {
36                         define "_CRT_SECURE_NO_WARNINGS" "1";
37                         define "PNG_BUILD_DLL" "1";
38                 };
39                 install true;
40                 install_headers false;
41         };
42
43         install "include"
44         {
45                 source "png.h";
46                 source "pngconf.h";
47                 source "pnglibconf.h";
48         };
49 };