support linking with system libunibreak
This commit is contained in:
parent
4569da4ad1
commit
94f3e588fc
|
@ -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.'
|
||||||
|
)
|
||||||
|
|
|
@ -1,32 +1,35 @@
|
||||||
|
if (get_option('embedded-libunibreak'))
|
||||||
|
libunibreak_src = [
|
||||||
|
'unibreakbase.h',
|
||||||
|
'unibreakdef.h',
|
||||||
|
'linebreak.h',
|
||||||
|
'linebreakdef.h',
|
||||||
|
'wordbreakdef.h',
|
||||||
|
'wordbreak.h',
|
||||||
|
'unibreakbase.c',
|
||||||
|
'unibreakdef.c',
|
||||||
|
'linebreak.c',
|
||||||
|
'linebreakdata.c',
|
||||||
|
'linebreakdef.c',
|
||||||
|
'wordbreak.c',
|
||||||
|
'graphemebreak.c',
|
||||||
|
'graphemebreak.h',
|
||||||
|
'graphemebreakdef.h',
|
||||||
|
'emojidef.h',
|
||||||
|
'emojidef.c',
|
||||||
|
]
|
||||||
|
|
||||||
libunibreak_src = [
|
libunibreak_lib = static_library('libunibreak',
|
||||||
'unibreakbase.h',
|
libunibreak_src,
|
||||||
'unibreakdef.h',
|
include_directories : config_dir,
|
||||||
'linebreak.h',
|
install: false,
|
||||||
'linebreakdef.h',
|
)
|
||||||
'wordbreakdef.h',
|
|
||||||
'wordbreak.h',
|
|
||||||
'unibreakbase.c',
|
|
||||||
'unibreakdef.c',
|
|
||||||
'linebreak.c',
|
|
||||||
'linebreakdata.c',
|
|
||||||
'linebreakdef.c',
|
|
||||||
'wordbreak.c',
|
|
||||||
'graphemebreak.c',
|
|
||||||
'graphemebreak.h',
|
|
||||||
'graphemebreakdef.h',
|
|
||||||
'emojidef.h',
|
|
||||||
'emojidef.c',
|
|
||||||
]
|
|
||||||
|
|
||||||
libunibreak_lib = static_library('libunibreak',
|
libunibreak = declare_dependency(
|
||||||
libunibreak_src,
|
include_directories: [include_directories('.')],
|
||||||
include_directories : config_dir,
|
link_with: libunibreak_lib,
|
||||||
install: false,
|
dependencies: [eina],
|
||||||
)
|
)
|
||||||
|
else
|
||||||
libunibreak = declare_dependency(
|
libunibreak = dependency('libunibreak', version : '>=4.2')
|
||||||
include_directories: [include_directories('.')],
|
endif
|
||||||
link_with: libunibreak_lib,
|
|
||||||
dependencies: [eina],
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue