summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-11-30 21:17:50 +0000
committerCarl Hetherington <cth@carlh.net>2014-11-30 21:17:50 +0000
commit4e60579afd2cec1a12dd4ed245111999861ab212 (patch)
tree7b77d4cf51f60f69eb68995ccb0200091a3ec787 /wscript
parentbbb3db16cc7e6f2262a89da4bec9fc356d6c3c12 (diff)
Use openjpeg2.
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files changed, 3 insertions, 11 deletions
diff --git a/wscript b/wscript
index 9ce74e06..9db20a65 100644
--- a/wscript
+++ b/wscript
@@ -42,20 +42,12 @@ def configure(conf):
conf.env.DEFINES_XMLSEC1 = [f.replace('\\', '') for f in conf.env.DEFINES_XMLSEC1]
if conf.options.static:
- conf.check_cc(fragment="""
- #include <stdio.h>\n
- #include <openjpeg.h>\n
- int main () {\n
- void* p = (void *) opj_image_create;\n
- return 0;\n
- }
- """,
- msg='Checking for library openjpeg', stlib='openjpeg', uselib_store='OPENJPEG', mandatory=True)
-
+ conf.check_cfg(package='libopenjp2', args='--cflags', atleast_version='2.1.0', uselib_store='OPENJPEG', mandatory=True)
+ conf.env.STLIB_OPENJPEG = ['openjpeg']
conf.env.HAVE_CXML = 1
conf.env.STLIB_CXML = ['cxml']
else:
- conf.check_cfg(package='libopenjpeg', args='--cflags --libs', uselib_store='OPENJPEG', mandatory=True)
+ conf.check_cfg(package='libopenjp2', args='--cflags --libs', atleast_version='2.1.0', uselib_store='OPENJPEG', mandatory=True)
conf.check_cfg(package='libcxml', atleast_version='0.11.0', args='--cflags --libs', uselib_store='CXML', mandatory=True)
if conf.options.target_windows: