geary/meson_options.txt
Michael Gratton 23bd2507a7 build: Update how build profiles are handled
Default to development build profile if a `.git` directory exists, else
error out of build configuration.

This make `auto` the default build profile and if set and a `.git`
directory is present default to `development`, else raise an error.
Add some docs to INSTALL describing build profiles and update how they
are used in the source to match.
2020-10-03 23:34:31 +10:00

72 lines
1.2 KiB
Meson

#
# General build options
#
option(
'profile',
type: 'combo',
choices: [
'auto',
'development',
'beta',
'release'
],
description: 'Specifies the application type to be built'
)
option(
'revno',
type: 'string',
description: 'Custom revision string (default extracted from "git describe")'
)
option(
'iso_639_xml',
type: 'string',
value: '',
description: 'Full path to the ISO 639 XML file.'
)
option(
'iso_3166_xml',
type: 'string',
value: '',
description: 'Full path to the ISO 3166 XML file.'
)
option(
'valadoc',
type: 'feature',
value: 'auto',
description: 'Build API documentation'
)
#
# Development options
#
option(
'ref_tracking',
type: 'feature',
value: 'disabled',
description: 'Enable Geary.BaseObject reference tracking'
)
#
# Optional features
#
option(
'contractor',
type: 'feature',
value: 'disabled',
description: 'Install an Elementary OS a contractor file'
)
option(
'libunwind',
type: 'feature',
value: 'enabled',
description: 'Use libunwind for back traces in problem reports.'
)
option(
'tnef',
type: 'feature',
value: 'enabled',
description: 'Support Microsoft-proprietary TNEF attachments.'
)