aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libidn/ya.make
blob: fc1d35bcc5b3c10f5e198fed1966d60b701a387e (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
# Generated by devtools/yamaker from nixpkgs 22.11.

DEFAULT(USE_IDN ${_USE_IDN})

LIBRARY()

WITHOUT_LICENSE_TEXTS()

VERSION(1.42)

ORIGINAL_SOURCE(mirror://gnu/libidn/libidn-1.42.tar.gz)

LICENSE(Service-Dll-Harness)

NO_RUNTIME()

IF (EXPORT_CMAKE)
    OPENSOURCE_EXPORT_REPLACEMENT(
        CMAKE
        IDN
        CMAKE_TARGET
        IDN::IDN
    )
ELSEIF (USE_IDN == "dynamic")
    PEERDIR(
        contrib/libs/libidn/dynamic
    )
ELSEIF (USE_IDN == "local")
    GLOBAL_CFLAGS(${USE_LOCAL_IDN_CFLAGS})
    DEFAULT(USE_LOCAL_IDN_LDFLAGS -lidn)
    LDFLAGS(${USE_LOCAL_IDN_LDFLAGS})
ELSE()
    PEERDIR(
        contrib/libs/libidn/static
    )
ENDIF()

END()

IF (USE_IDN != "local")
    RECURSE(
        dynamic
        static
    )
ENDIF()