File tree 4 files changed +10
-228
lines changed
4 files changed +10
-228
lines changed Original file line number Diff line number Diff line change 68
68
- name : Install dependencies
69
69
id : install
70
70
run : |
71
- 7z x winbuild\depends\nasm-2.14.02 -win64.zip "-o$env:RUNNER_WORKSPACE\"
72
- echo "$env:RUNNER_WORKSPACE\nasm-2.14.02 " >> $env:GITHUB_PATH
71
+ 7z x winbuild\depends\nasm-2.15.05 -win64.zip "-o$env:RUNNER_WORKSPACE\"
72
+ echo "$env:RUNNER_WORKSPACE\nasm-2.15.05 " >> $env:GITHUB_PATH
73
73
74
74
winbuild\depends\gs9540w32.exe /S
75
75
echo "C:\Program Files (x86)\gs\gs9.54.0\bin" >> $env:GITHUB_PATH
Original file line number Diff line number Diff line change @@ -810,9 +810,11 @@ def build_extensions(self):
810
810
if feature .tiff :
811
811
libs .append (feature .tiff )
812
812
defs .append (("HAVE_LIBTIFF" , None ))
813
- # FIXME the following define should be detected automatically
814
- # based on system libtiff, see #4237
815
- if PLATFORM_MINGW :
813
+ if sys .platform == "win32" :
814
+ # This define needs to be defined if-and-only-if it was defined
815
+ # when compiling LibTIFF. LibTIFF doesn't expose it in `tiffconf.h`,
816
+ # so we have to guess; by default it is defined in all Windows builds.
817
+ # See #4237, #5243, #5359 for more information.
816
818
defs .append (("USE_WIN32_FILEIO" , None ))
817
819
if feature .xcb :
818
820
libs .append (feature .xcb )
Original file line number Diff line number Diff line change @@ -145,9 +145,9 @@ def cmd_msbuild(
145
145
"filename" : "tiff-4.2.0.tar.gz" ,
146
146
"dir" : "tiff-4.2.0" ,
147
147
"build" : [
148
- cmd_copy ( r"{winbuild_dir}\tiff.opt" , "nmake.opt " ),
149
- cmd_nmake ("makefile.vc" , "clean" ),
150
- cmd_nmake ("makefile.vc" , "lib " ),
148
+ cmd_cmake ( "-DBUILD_SHARED_LIBS:BOOL=OFF " ),
149
+ cmd_nmake (target = "clean" ),
150
+ cmd_nmake (target = "tiff " ),
151
151
],
152
152
"headers" : [r"libtiff\tiff*.h" ],
153
153
"libs" : [r"libtiff\*.lib" ],
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments