aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libidn/ya.make
blob: ef3f85cbdea15b85cd488a728a5cfc19f4cb55ed (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
# 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
    )
ENDIF()

IF (USE_IDN == "dynamic" AND NOT EXPORT_CMAKE)
    PEERDIR(
        contrib/libs/libidn/dynamic
    )
ELSEIF (USE_IDN == "local" OR EXPORT_CMAKE)
    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" AND NOT EXPORT_CMAKE)
    RECURSE(
        dynamic
        static
    )
ENDIF()