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

Skip to content

Commit 8262c96

Browse files
committed
Fix libpng paths.
1 parent 6c5a008 commit 8262c96

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
@@ -646,8 +646,7 @@ def get_extension(self):
646646
default_libraries=(
647647
['png', 'z'] if os.name == 'posix' else
648648
# libpng upstream names their lib libpng16.lib, not png.lib.
649-
# zlib upstream names their lib zlib.lib, not z.lib.
650-
['libpng16', 'zlib'] if os.name == 'nt' else
649+
['libpng16'] if os.name == 'nt' else
651650
[]
652651
),
653652
)

0 commit comments

Comments
 (0)