• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1pcre_sources = [
2  'pcre_byte_order.c',
3  'pcre_chartables.c',
4  'pcre_compile.c',
5  'pcre_config.c',
6  'pcre_dfa_exec.c',
7  'pcre_exec.c',
8  'pcre_fullinfo.c',
9  'pcre_get.c',
10  'pcre_globals.c',
11  'pcre_jit_compile.c',
12  'pcre_newline.c',
13  'pcre_ord2utf8.c',
14  'pcre_string_utils.c',
15  'pcre_study.c',
16  'pcre_tables.c',
17  'pcre_valid_utf8.c',
18  'pcre_version.c',
19  'pcre_xclass.c',
20  'pcre.h',
21  'pcre_internal.h',
22  'ucp.h',
23]
24
25libpcre = static_library('pcre',
26  sources : [pcre_sources],
27  include_directories : [configinc, glibinc],
28  pic : true,
29  c_args : [
30    '-DG_LOG_DOMAIN="GLib-GRegex"',
31    '-DHAVE_MEMMOVE',
32    '-DSUPPORT_UCP',
33    '-DSUPPORT_UTF',
34    '-DSUPPORT_UTF8',
35    '-DNEWLINE=-1',
36    '-DMATCH_LIMIT=10000000',
37    '-DMATCH_LIMIT_RECURSION=8192',
38    '-DMAX_NAME_SIZE=32',
39    '-DMAX_NAME_COUNT=10000',
40    '-DMAX_DUPLENGTH=30000',
41    '-DLINK_SIZE=2',
42    '-DPOSIX_MALLOC_THRESHOLD=10',
43    '-DPCRE_STATIC',
44    '-UBSR_ANYCRLF',
45    '-UEBCDIC',
46    '-DGLIB_COMPILATION'
47  ] + glib_hidden_visibility_args
48)
49
50pcre = declare_dependency(link_with : libpcre)
51