Add tiff_compression build option
This commit is contained in:
@@ -36,6 +36,7 @@ APP_ID = "@APP_ID@"
|
|||||||
VERSION = "@VERSION@"
|
VERSION = "@VERSION@"
|
||||||
PREFIX = "@PREFIX@"
|
PREFIX = "@PREFIX@"
|
||||||
PROFILE = "@PROFILE@"
|
PROFILE = "@PROFILE@"
|
||||||
|
TIFF_COMPRESSION = "@TIFF_COMPRESSION@"
|
||||||
SPEC_VERSION = 1.5 # The version of the game_id.json spec
|
SPEC_VERSION = 1.5 # The version of the game_id.json spec
|
||||||
|
|
||||||
schema = Gio.Settings.new(APP_ID)
|
schema = Gio.Settings.new(APP_ID)
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ def convert_cover(
|
|||||||
tmp_path,
|
tmp_path,
|
||||||
compression="tiff_adobe_deflate"
|
compression="tiff_adobe_deflate"
|
||||||
if shared.schema.get_boolean("high-quality-images")
|
if shared.schema.get_boolean("high-quality-images")
|
||||||
else "webp",
|
else shared.TIFF_COMPRESSION,
|
||||||
)
|
)
|
||||||
except UnidentifiedImageError:
|
except UnidentifiedImageError:
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ conf.set('APP_ID', app_id)
|
|||||||
conf.set('PREFIX', prefix)
|
conf.set('PREFIX', prefix)
|
||||||
conf.set('VERSION', meson.project_version())
|
conf.set('VERSION', meson.project_version())
|
||||||
conf.set('PROFILE', profile)
|
conf.set('PROFILE', profile)
|
||||||
|
conf.set('TIFF_COMPRESSION', get_option('tiff_compression'))
|
||||||
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
||||||
conf.set('pkgdatadir', pkgdatadir)
|
conf.set('pkgdatadir', pkgdatadir)
|
||||||
conf.set('libexecdir', libexecdir)
|
conf.set('libexecdir', libexecdir)
|
||||||
|
|||||||
@@ -7,3 +7,12 @@ option(
|
|||||||
],
|
],
|
||||||
value: 'release'
|
value: 'release'
|
||||||
)
|
)
|
||||||
|
option(
|
||||||
|
'tiff_compression',
|
||||||
|
type: 'combo',
|
||||||
|
choices: [
|
||||||
|
'webp',
|
||||||
|
'jpeg',
|
||||||
|
],
|
||||||
|
value: 'webp'
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user