# Optional features
option('with-docs',
  type: 'combo',
  choices: ['auto', 'true', 'false'],
  description: 'build documentation'
)
option('enable-gir',
  type: 'combo',
  choices: ['auto', 'true', 'false'],
  description: 'gobject introspection .gir generation'
)
option('enable-vapi',
  type: 'boolean',
  value: true, 
  description: 'Vala .vapi generation - depends on introspection'
)
option('gi-docgen',
  type: 'feature',
  value: 'auto',
  description: 'Build developer documentation (uses gi-docgen)'
)
option('win-debugging',
  type: 'combo',
  choices: ['native', 'dwarf'],
  value: 'native',
  description: 'Build with native/CodeView debug symbols or with DWARF'
)

option('relocatable-bundle',
  type: 'combo', value: 'platform-default',
  description: 'build with resources considered bundled under the same prefix',
  choices: [ 'yes', 'no', 'platform-default' ]
)

# Compiler extensions
option('enable-mmx',
  type: 'boolean', 
  value: true, 
  description: 'MMX support - disables all compiler extensons'
)
option('enable-sse',
  type: 'boolean',
  value: true,
  description: 'SSE support - depends on MMX'
)
option('enable-sse2',
  type: 'boolean',
  value: true,
  description: 'SSE2 support - depends on SSE'
)
option('enable-sse4_1',
  type: 'boolean',
  value: true,
  description: 'SSE4.1 support - depends on SSE2'
)
option('enable-avx2',
  type: 'boolean',
  value: true,
  description: 'AVX2 support - depends on SSE4.1'
)
option('enable-f16c',
  type: 'boolean',
  value: true,
  description: 'Hardware half-float support - depends on SSE'
)

# Optional dependencies
option('with-lcms',
  type: 'feature',
  value: 'auto', 
  description: 'build with lcms'
)
