Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adbc758

Browse files
committed
Fix libpng paths.
1 parent 07a2115 commit adbc758

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ci/azure-pipelines-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ steps:
2222

2323
- script: |
2424
nuget install libpng-msvc14-x64 -ExcludeVersion -OutputDirectory "$(build.BinariesDirectory)"
25-
echo ##vso[task.setvariable variable=MPLBASEDIRLIST]win32_static;$(build.BinariesDirectory)\libpng-msvc14-x64\build\native
26-
echo ##vso[task.setvariable variable=LIBDIR]%LIBDIR%;$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\lib_release
25+
echo ##vso[task.setvariable variable=CL]/I$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\include
26+
echo ##vso[task.setvariable variable=LINK]/LIBPATH:$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\lib_release
2727
echo ##vso[task.prependpath]$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\bin_release
2828
displayName: 'Install dependencies with nuget'
2929

setupext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,8 +1024,7 @@ def get_extension(self):
10241024
default_libraries=(
10251025
['png', 'z'] if os.name == 'posix' else
10261026
# libpng upstream names their lib libpng16.lib, not png.lib.
1027-
# zlib upstream names their lib zlib.lib, not z.lib.
1028-
['libpng16', 'zlib'] if os.name == 'nt' else
1027+
['libpng16'] if os.name == 'nt' else
10291028
[]
10301029
),
10311030
alt_exec='libpng-config --ldflags')

0 commit comments

Comments
 (0)