diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-07 12:53:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-07 12:53:32 +0200 |
| commit | 6636d343b8a1c0d37bf5c6aefccaff64fb3cab84 (patch) | |
| tree | b410c63f643400f523b6fcf9d54351d9f751d9cb /wscript | |
| parent | 6c9cee14107f7c33787bab5873652677ae18e476 (diff) | |
Work around failure to open maximised on Ubuntu 24.04 (#3010).
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -71,6 +71,7 @@ def options(opt): opt.add_option('--static-sub', action='store_true', default=False, help='link statically to libsub') opt.add_option('--static-curl', action='store_true', default=False, help='link statically to libcurl') opt.add_option('--workaround-gssapi', action='store_true', default=False, help='link to gssapi_krb5') + opt.add_option('--workaround-mutter', action='store_true', default=False, help='work around window maximising bug on (e.g.) Ubuntu 24.04') opt.add_option('--use-lld', action='store_true', default=False, help='use lld linker') opt.add_option('--enable-disk', action='store_true', default=False, help='build dcpomatic2_disk tool; requires Boost process, lwext4 and nanomsg libraries') opt.add_option('--enable-grok', action='store_true', default=False, help='build with support for grok J2K encoder') @@ -148,6 +149,9 @@ def configure(conf): if conf.options.warnings_are_errors: conf.env.append_value('CXXFLAGS', '-Werror') + if conf.options.workaround_mutter: + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_WORKAROUND_MUTTER') + if conf.env.SSE: conf.env.append_value('CXXFLAGS', ['-msse', '-mfpmath=sse']) |
