from waflib import Logs
APPNAME = 'dcpomatic'
-VERSION = '2.1.8devel'
+VERSION = '2.1.14devel'
def options(opt):
opt.load('compiler_cxx')
conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_IMAGE_MAGICK')
if graphics is not None:
conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_GRAPHICS_MAGICK')
-
+
# libzip
conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True)
# libsub
if conf.options.static_sub:
- conf.check_cfg(package='libsub-1.0', atleast_version='1.1.0', args='--cflags', uselib_store='DCP', mandatory=True)
+ conf.check_cfg(package='libsub-1.0', atleast_version='1.1.0', args='--cflags', uselib_store='SUB', mandatory=True)
conf.env.DEFINES_SUB = [f.replace('\\', '') for f in conf.env.DEFINES_SUB]
conf.env.STLIB_SUB = ['sub-1.0']
else:
- conf.check_cfg(package='libsub-1.0', atleast_version='1.1.0', args='--cflags --libs', uselib_store='DCP', mandatory=True)
+ conf.check_cfg(package='libsub-1.0', atleast_version='1.1.0', args='--cflags --libs', uselib_store='SUB', mandatory=True)
conf.env.DEFINES_SUB = [f.replace('\\', '') for f in conf.env.DEFINES_SUB]
# libxml++
# Other stuff
conf.find_program('msgfmt', var='MSGFMT')
-
+
datadir = conf.env.DATADIR
if not datadir:
datadir = os.path.join(conf.env.PREFIX, 'share')
-
+
conf.define('LOCALEDIR', os.path.join(datadir, 'locale'))
conf.define('DATADIR', datadir)
if commit is None and os.path.exists('.git_revision'):
f = open('.git_revision', 'r')
commit = f.readline().strip()
-
+
if commit is None:
commit = 'release'
except IOError:
print('Could not open src/lib/version.cc for writing\n')
sys.exit(-1)
-
+
def post(ctx):
if ctx.cmd == 'install':
ctx.exec_command('/sbin/ldconfig')
os.rename('dcpomatic_%s' % l, 'src/tools/po/%s' % l)
os.rename('libdcpomatic_%s' % l, 'src/lib/po/%s' % l)
os.rename('libdcpomatic-wx_%s' % l, 'src/wx/po/%s' % l)
+
+def cppcheck(bld):
+ os.system('cppcheck --enable=all --quiet .')