Skip to content

Commit

Permalink
meson: add libdovi dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
quietvoid committed Feb 19, 2023
1 parent 958a939 commit cb62007
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ option('shaderc', type: 'feature', value: 'auto',
option('lcms', type: 'feature', value: 'auto',
description: 'LittleCMS 2 support')

option('libdovi', type: 'feature', value: 'auto',
description: 'libdovi support')

# Miscellaneous
option('demos', type: 'boolean', value: true,
description: 'Enable building (and installing) the demo programs')
Expand Down
6 changes: 6 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ if needs_spirv and not has_spirv
'likely to be very limited in functionality!')
endif

libdovi = dependency('dovi', version: '>=1.6.7', required: get_option('libdovi'))
components.set('libdovi', libdovi.found())
if libdovi.found()
build_deps += libdovi
endif

# Generate configuration files
defs = ''
pc_vars = []
Expand Down

0 comments on commit cb62007

Please sign in to comment.