diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-01-17 21:05:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-01-31 16:47:23 +0100 |
| commit | db15020d516c2d2ea36c10261a22a7da9c4a60ed (patch) | |
| tree | 00472dc6379bf5377ca5799a5bdb16fc8125a715 /cscript | |
| parent | ff869661d7632bc40aec17d1d42e31f18bd0c40b (diff) | |
Allow building without MPEG2 transcoding, and so without FFmpeg.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -34,6 +34,10 @@ import os import shutil + +option_defaults = { "mpeg2": True } + + def build_with_cpp17(target): return ( target.platform.startswith('osx') or @@ -54,7 +58,8 @@ def dependencies(target, options, for_package): if target.platform != 'linux' or target.distro != 'arch' or not for_package: # Use distro-provided FFmpeg and openjpeg on Arch (except when packaging), otherwise our own - deps.append(('ffmpeg', '693b3a8274ce407d0741d320849dc9433c748262', ffmpeg_options)) + if options['mpeg2']: + deps.append(('ffmpeg', '693b3a8274ce407d0741d320849dc9433c748262', ffmpeg_options)) deps.append(('openjpeg', 'ad8edaacd54a862940d0a77c41ecda5858b54d6e')) return deps @@ -68,6 +73,8 @@ def build(target, options, for_package, version): target.command('sudo pacman --noconfirm -U libdcp*.zst') else: cmd = './waf configure --disable-examples --disable-dumpimage --disable-benchmarks --prefix=%s' % target.directory + if not options['mpeg2']: + cmd += ' --disable-mpeg2-transcode' if target.platform == 'linux': cmd += ' --static' if target.distro != 'ubuntu' or not target.version in ('16.04', '22.04'): |
