Skip to content

Commit

Permalink
Added OpenJPEG to Python 3 AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Apr 17, 2019
1 parent 23b1d13 commit 47a0693
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions winbuild/build_dep.py
Expand Up @@ -113,23 +113,27 @@ def end_compiler():
"""


def nmake_openjpeg(compiler):
atts = {'op_ver': '2.1'}
def nmake_openjpeg(compiler, bit):
if compiler['env_version'] == 'v7.0':
return ""

atts = {'op_ver': '2.3.1'}
atts.update(compiler)
return r"""
rem build openjpeg
setlocal
""" + vc_setup(compiler, bit) + r"""
@echo on
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
copy /Y /B bin\* %%INCLIB%%
mkdir %%INCLIB%%\openjpeg-%(op_ver)s
copy /Y /B src\lib\openjp2\*.h %%INCLIB%%\openjpeg-%(op_ver)s
endlocal
""" % atts
""" % atts # noqa: E501


def nmake_libs(compiler, bit):
Expand Down Expand Up @@ -284,7 +288,7 @@ def add_compiler(compiler, bit):

script.append(msbuild_freetype(compiler, bit))
script.append(build_lcms2(compiler))
# script.append(nmake_openjpeg(compiler))
script.append(nmake_openjpeg(compiler, bit))
script.append(build_ghostscript(compiler, bit))
script.append(end_compiler())

Expand Down

0 comments on commit 47a0693

Please sign in to comment.