Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config("config") {
- defines = [
- "PCRE2_CODE_UNIT_WIDTH=8",
- "PCRE2_STATIC"
- ]
- }
- static_library("pcre") {
- sources = [
- "pcre2.h",
- "pcre2_auto_possess.c",
- "pcre2_chartables.c",
- "pcre2_compile.c",
- "pcre2_config.c",
- "pcre2_context.c",
- "pcre2_dfa_match.c",
- "pcre2_error.c",
- "pcre2_internal.h",
- "pcre2_intmodedep.h",
- "pcre2_maketables.c",
- "pcre2_match.c",
- "pcre2_match_data.c",
- "pcre2_newline.c",
- "pcre2_ord2utf.c",
- "pcre2_pattern_info.c",
- "pcre2_serialize.c",
- "pcre2_string_utils.c",
- "pcre2_study.c",
- "pcre2_substitute.c",
- "pcre2_substring.c",
- "pcre2_tables.c",
- "pcre2_ucd.c",
- "pcre2_ucp.h",
- "pcre2_valid_utf.c",
- "pcre2_xclass.c",
- ]
- public_configs = [":config"]
- configs -= ["//build/config:default-warnings"]
- configs += ["//build/config:contrib-warnings"]
- defines = [
- "LINK_SIZE=2",
- "MATCH_LIMIT=10000000",
- "NEWLINE_DEFAULT=2",
- "MATCH_LIMIT_RECURSION=MATCH_LIMIT",
- "PARENS_NEST_LIMIT=250",
- "MAX_NAME_SIZE=32",
- "MAX_NAME_COUNT=10000",
- "SUPPORT_UNICODE",
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement