support linking with system libunibreak

This commit is contained in:
Ross Vandegrift 2024-01-13 21:35:57 -08:00 committed by Christopher Michael
parent 4569da4ad1
commit 94f3e588fc
2 changed files with 39 additions and 30 deletions

View File

@ -388,3 +388,9 @@ option('docs',
value: false, value: false,
description: 'Enable building C of documentation (Requires doxygen)' description: 'Enable building C of documentation (Requires doxygen)'
) )
option('embedded-libunibreak',
type : 'boolean',
value : true,
description : 'Use the embedded in-tree libunibreak instead of the system libunibreak.'
)

View File

@ -1,4 +1,4 @@
if (get_option('embedded-libunibreak'))
libunibreak_src = [ libunibreak_src = [
'unibreakbase.h', 'unibreakbase.h',
'unibreakdef.h', 'unibreakdef.h',
@ -30,3 +30,6 @@ libunibreak = declare_dependency(
link_with: libunibreak_lib, link_with: libunibreak_lib,
dependencies: [eina], dependencies: [eina],
) )
else
libunibreak = dependency('libunibreak', version : '>=4.2')
endif