X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=cscript;h=e8bcf00915c3101fb507c91a588783f90cdb5c8f;hb=83efe84020dc0ba2801c4b305448790720fe133f;hp=73e9eebeaa74035db6a261eaddd7dde8db5c3cb1;hpb=f9783b204b672ed5c951125b2476d45ecc50915c;p=dcpomatic.git diff --git a/cscript b/cscript index 73e9eebea..e8bcf0091 100644 --- a/cscript +++ b/cscript @@ -38,7 +38,8 @@ deb_depends['12.04'].extend(['libboost-filesystem1.48.0', 'libxml++2.6-2', 'libboost-date-time1.48.0', 'libzip2', - 'libicu48']) + 'libicu48', + 'libnettle4']) deb_depends['14.04'] = copy.deepcopy(deb_depends_base) deb_depends['14.04'].extend(['libboost-filesystem1.54.0', @@ -50,18 +51,8 @@ deb_depends['14.04'].extend(['libboost-filesystem1.54.0', 'libzip2', 'libcairomm-1.0-1', 'libpangomm-1.4-1', - 'libicu52']) - -deb_depends['15.10'] = copy.deepcopy(deb_depends_base) -deb_depends['15.10'].extend(['libboost-filesystem1.58.0', - 'libboost-thread1.58.0', - 'libboost-regex1.58.0', - 'libmagick++-6.q16-5v5', - 'libxml++2.6-2v5', - 'libboost-date-time1.58.0', - 'libzip4', - 'libwxgtk3.0-0v5', - 'libicu55']) + 'libicu52', + 'libnettle4']) deb_depends['16.04'] = copy.deepcopy(deb_depends_base) deb_depends['16.04'].extend(['libboost-filesystem1.58.0', @@ -72,7 +63,8 @@ deb_depends['16.04'].extend(['libboost-filesystem1.58.0', 'libboost-date-time1.58.0', 'libzip4', 'libwxgtk3.0-0v5', - 'libicu55']) + 'libicu55', + 'libnettle6']) deb_depends['7'] = copy.deepcopy(deb_depends_base) deb_depends['7'].extend(['libboost-filesystem1.49.0', @@ -84,7 +76,9 @@ deb_depends['7'].extend(['libboost-filesystem1.49.0', 'libzip2', 'libcairomm-1.0-1', 'libpangomm-1.4-1', - 'libicu48']) + 'libicu48', + 'libnettle4', + 'libnotify4']) deb_depends['8'] = copy.deepcopy(deb_depends_base) deb_depends['8'].extend(['libboost-filesystem1.55.0', @@ -97,7 +91,8 @@ deb_depends['8'].extend(['libboost-filesystem1.55.0', 'libwxgtk3.0-0', 'libxcb-xfixes0', 'libxcb-shape0', - 'libicu52']) + 'libicu52', + 'libnettle4']) deb_depends['unstable'] = copy.deepcopy(deb_depends_base) deb_depends['unstable'].extend(['libboost-filesystem1.58.0', @@ -108,7 +103,8 @@ deb_depends['unstable'].extend(['libboost-filesystem1.58.0', 'libgtk2.0-0', 'libboost-date-time1.58.0', 'libzip2', - 'libicu52']) + 'libicu52', + 'libnettle6']) def packages(name, packages, f): s = '%s: ' % name @@ -236,9 +232,9 @@ def dependencies(target): else: ffmpeg_options = {} - return (('ffmpeg-cdist', 'aab2fb1', ffmpeg_options), - ('libdcp', '89d5fe1'), - ('libsub', '96ea6d2')) + return (('ffmpeg-cdist', '1d4a1a4', ffmpeg_options), + ('libdcp', 'd23e6e1'), + ('libsub', 'ef7c2ec')) def configure_options(target): opt = '' @@ -255,6 +251,10 @@ def configure_options(target): elif target.version == '7': opt += ' --workaround-gssapi --static-xmlpp' + # Build Windows debug versions with static linking as I think gdb works better then + if target.debug and target.platform == 'windows': + opt += ' --static-dcpomatic' + return opt def build(target, options): @@ -337,7 +337,10 @@ def package_rpm(target, cpu, version): if cpu == "amd64": cpu = "x86_64" else: - cpu = "i686" + if target.distro == 'centos' and target.version == '5': + cpu = "i386" + else: + cpu = "i686" print('Looking in %s/RPMS/%s/*.rpm' % (topdir, cpu)) for p in glob.glob('%s/RPMS/%s/*.rpm' % (topdir, cpu)): @@ -361,7 +364,7 @@ def package(target, version): return package_rpm(target, cpu, version) elif target.platform == 'osx': target.command('bash platform/osx/make_dmg.sh %s' % target.directory) - return os.path.abspath(glob.glob('build/platform/osx/DCP-o-matic*.dmg')[0]) + return [os.path.abspath(x) for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg')] def make_pot(target): target.command('./waf pot') @@ -378,7 +381,9 @@ def make_manual(target): def test(target, test): if target.platform != 'windows': target.set('LC_ALL', 'C') - if test is None: - target.command('run/tests') - else: - target.command('run/tests --run_test=%s' % test) + cmd = 'run/tests ' + if target.debug: + cmd += '--backtrace ' + if test is not None: + cmd += '--run_test=%s' % test + target.command(cmd)