aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/pcre/ya.make
blob: d3345c87a2db2bc24ed77289300bb809c486d5ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Generated by devtools/yamaker from nixpkgs 22.05.

LIBRARY()

VERSION(8.45)

ORIGINAL_SOURCE(https://downloads.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.bz2)

LICENSE(
    BSD-2-Clause AND
    BSD-3-Clause AND
    FSFAP AND
    PCRE AND
    Public-Domain
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

ADDINCL(
    contrib/libs/pcre
)

NO_COMPILER_WARNINGS()

NO_RUNTIME()

CFLAGS(
    GLOBAL -DPCRE_STATIC
    -DHAVE_CONFIG_H
)

# JIT adds ≈108KB to binary size which may be critical for mobile and embedded devices binary distributions
DEFAULT(ARCADIA_PCRE_ENABLE_JIT yes)

IF (ARCADIA_PCRE_ENABLE_JIT)
    CFLAGS(
        -DARCADIA_PCRE_ENABLE_JIT
    )
ENDIF()

SRCS(
    pcre_byte_order.c
    pcre_chartables.c
    pcre_compile.c
    pcre_config.c
    pcre_dfa_exec.c
    pcre_exec.c
    pcre_fullinfo.c
    pcre_get.c
    pcre_globals.c
    pcre_jit_compile.c
    pcre_maketables.c
    pcre_newline.c
    pcre_ord2utf8.c
    pcre_refcount.c
    pcre_string_utils.c
    pcre_study.c
    pcre_tables.c
    pcre_ucd.c
    pcre_valid_utf8.c
    pcre_version.c
    pcre_xclass.c
    pcreposix.c
)

END()

RECURSE(
    pcre16
    pcre32
    pcrecpp
)