summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-04 22:57:59 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-04 22:57:59 +0100
commitb995947a86a583a44bbe667e9bbd031296bf7e88 (patch)
tree6c2018c87d69665a488c085becaddd4647c7cf94 /wscript
parent32360aedc97a0cc9acc1b1c10d2e8351dcacb549 (diff)
Remove support for building with OpenJPEG 1.x.
Diffstat (limited to 'wscript')
-rw-r--r--wscript21
1 files changed, 3 insertions, 18 deletions
diff --git a/wscript b/wscript
index acb2a93e..4c2d20c1 100644
--- a/wscript
+++ b/wscript
@@ -62,7 +62,6 @@ def options(opt):
opt.add_option('--disable-examples', action='store_true', default=False, help='disable building of examples')
opt.add_option('--enable-openmp', action='store_true', default=False, help='enable use of OpenMP')
opt.add_option('--openmp', default='gomp', help='specify OpenMP Library to use: omp, gomp (default), iomp')
- opt.add_option('--jpeg', default='oj2', help='specify JPEG library to build with: oj1 or oj2 for OpenJPEG 1.5.x or OpenJPEG 2.1.x respectively')
def configure(conf):
conf.load('compiler_cxx')
@@ -112,13 +111,6 @@ def configure(conf):
if conf.env.TARGET_LINUX:
conf.check(lib='dl', uselib_store='DL', msg='Checking for library dl')
- if conf.options.jpeg == 'oj1':
- conf.env.append_value('CXXFLAGS', ['-DLIBDCP_OPENJPEG1'])
- elif conf.options.jpeg == 'oj2':
- conf.env.append_value('CXXFLAGS', ['-DLIBDCP_OPENJPEG2'])
- else:
- Logs.error('Invalid --jpeg value %s' % conf.options.jpeg)
-
conf.check_cfg(package='openssl', args='--cflags --libs', uselib_store='OPENSSL', mandatory=True)
conf.check_cfg(package='libxml++-2.6', args='--cflags --libs', uselib_store='LIBXML++', mandatory=True)
conf.check_cfg(package='xmlsec1', args='--cflags --libs', uselib_store='XMLSEC1', mandatory=True)
@@ -138,12 +130,8 @@ def configure(conf):
conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=False)
if conf.options.static:
- if conf.options.jpeg == 'oj2':
- conf.check_cfg(package='libopenjp2', args='--cflags', atleast_version='2.1.0', uselib_store='OPENJPEG', mandatory=True)
- conf.env.STLIB_OPENJPEG = ['openjp2']
- elif conf.options.jpeg == 'oj1':
- conf.check_cfg(package='libopenjpeg1', args='--cflags', atleast_version='1.5.0', uselib_store='OPENJPEG', mandatory=True)
- conf.env.STLIB_OPENJPEG = ['openjpeg']
+ conf.check_cfg(package='libopenjp2', args='--cflags', atleast_version='2.1.0', uselib_store='OPENJPEG', mandatory=True)
+ conf.env.STLIB_OPENJPEG = ['openjp2']
conf.check_cfg(package='libasdcp-carl', atleast_version='0.1.3', args='--cflags', uselib_store='ASDCPLIB_CTH', mandatory=True)
conf.env.HAVE_ASDCPLIB_CTH = 1
conf.env.STLIB_ASDCPLIB_CTH = ['asdcp-carl', 'kumu-carl']
@@ -153,10 +141,7 @@ def configure(conf):
conf.check_cfg(package='xerces-c', args='--cflags', uselib_store='XERCES', mandatory=True)
conf.env.LIB_XERCES = ['xerces-c', 'icuuc', 'curl']
else:
- if conf.options.jpeg == 'oj2':
- conf.check_cfg(package='libopenjp2', args='--cflags --libs', atleast_version='2.1.0', uselib_store='OPENJPEG', mandatory=True)
- elif conf.options.jpeg == 'oj1':
- conf.check_cfg(package='libopenjpeg1', args='--cflags --libs', atleast_version='1.5.0', 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='libasdcp-carl', atleast_version='0.1.3', args='--cflags --libs', uselib_store='ASDCPLIB_CTH', mandatory=True)
conf.check_cfg(package='libcxml', atleast_version='0.17.0', args='--cflags --libs', uselib_store='CXML', mandatory=True)
conf.check_cfg(package='xerces-c', args='--cflags --libs', uselib_store='XERCES', mandatory=True)