2021-11-20 22:03:27 +01:00
|
|
|
pcre_dep = dependency('libpcre2-8', required: get_option('pcre'))
|
2018-11-07 00:28:15 +01:00
|
|
|
conf.set('HAVE_PCRE', pcre_dep.found())
|
|
|
|
if not pcre_dep.found()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-11-20 22:03:27 +01:00
|
|
|
pcre_dep = declare_dependency(
|
|
|
|
compile_args: '-DPCRE2_CODE_UNIT_WIDTH=0',
|
|
|
|
dependencies: pcre_dep,
|
|
|
|
)
|
|
|
|
|
2018-11-07 00:28:15 +01:00
|
|
|
pcre = static_library(
|
|
|
|
'pcre',
|
2021-11-20 22:03:27 +01:00
|
|
|
'Error.cxx',
|
2018-11-07 00:28:15 +01:00
|
|
|
'UniqueRegex.cxx',
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: [
|
|
|
|
pcre_dep,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
pcre_dep = declare_dependency(
|
|
|
|
link_with: pcre,
|
|
|
|
dependencies: [
|
|
|
|
pcre_dep,
|
|
|
|
],
|
|
|
|
)
|