mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-03 03:13:04 +03:00
Added OpenJPEG to Python 3 AppVeyor
This commit is contained in:
parent
23b1d13045
commit
47a06938c8
|
@ -113,23 +113,27 @@ endlocal
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def nmake_openjpeg(compiler):
|
def nmake_openjpeg(compiler, bit):
|
||||||
atts = {'op_ver': '2.1'}
|
if compiler['env_version'] == 'v7.0':
|
||||||
|
return ""
|
||||||
|
|
||||||
|
atts = {'op_ver': '2.3.1'}
|
||||||
atts.update(compiler)
|
atts.update(compiler)
|
||||||
return r"""
|
return r"""
|
||||||
rem build openjpeg
|
rem build openjpeg
|
||||||
setlocal
|
setlocal
|
||||||
|
""" + vc_setup(compiler, bit) + r"""
|
||||||
@echo on
|
@echo on
|
||||||
cd /D %%OPENJPEG%%%(inc_dir)s
|
cd /D %%OPENJPEG%%%(inc_dir)s
|
||||||
|
|
||||||
%%CMAKE%% -DBUILD_THIRDPARTY:BOOL=OFF -G "NMake Makefiles" .
|
%%CMAKE%% -DBUILD_THIRDPARTY:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=OFF -G "NMake Makefiles" .
|
||||||
nmake -f Makefile clean
|
nmake -f Makefile clean
|
||||||
nmake -f Makefile
|
nmake -f Makefile
|
||||||
copy /Y /B bin\* %%INCLIB%%
|
copy /Y /B bin\* %%INCLIB%%
|
||||||
mkdir %%INCLIB%%\openjpeg-%(op_ver)s
|
mkdir %%INCLIB%%\openjpeg-%(op_ver)s
|
||||||
copy /Y /B src\lib\openjp2\*.h %%INCLIB%%\openjpeg-%(op_ver)s
|
copy /Y /B src\lib\openjp2\*.h %%INCLIB%%\openjpeg-%(op_ver)s
|
||||||
endlocal
|
endlocal
|
||||||
""" % atts
|
""" % atts # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
def nmake_libs(compiler, bit):
|
def nmake_libs(compiler, bit):
|
||||||
|
@ -284,7 +288,7 @@ def add_compiler(compiler, bit):
|
||||||
|
|
||||||
script.append(msbuild_freetype(compiler, bit))
|
script.append(msbuild_freetype(compiler, bit))
|
||||||
script.append(build_lcms2(compiler))
|
script.append(build_lcms2(compiler))
|
||||||
# script.append(nmake_openjpeg(compiler))
|
script.append(nmake_openjpeg(compiler, bit))
|
||||||
script.append(build_ghostscript(compiler, bit))
|
script.append(build_ghostscript(compiler, bit))
|
||||||
script.append(end_compiler())
|
script.append(end_compiler())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user