aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libiconv/ya.make
blob: f8e7fdce5cf0712786a812d734bc89a978540ca7 (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
LIBRARY()

VERSION(1.13)

LICENSE(Service-Dll-Harness)

WITHOUT_LICENSE_TEXTS()

NO_RUNTIME()

IF (OS_WINDOWS)
    OPENSOURCE_EXPORT_REPLACEMENT(
        CMAKE
        Iconv
        CMAKE_TARGET
        Iconv::Iconv
        CONAN
        libiconv/1.15
        CONAN_OPTIONS
        libiconv:shared=True
    )
ELSE()
    # Opensource code is compatible with libc provided iconv API on major linux distributions and macos.
    #  * We prefere to avoid vendoring LGPL libraries in our opensouce project
    #  * Major distributions do not provide GNU libiconv as separate package
    #  * Shared lib dependencies from conan overcomplicate final artefacts distribution
    DISABLE(OPENSOURCE_EXPORT)
ENDIF()

IF (NOT EXPORT_CMAKE)
    IF (USE_DYNAMIC_ICONV)
        PEERDIR(
            contrib/libs/libiconv/dynamic
        )
    ELSE()
        PEERDIR(
            contrib/libs/libiconv/static
        )
    ENDIF()
ENDIF()

END()

RECURSE(
    dynamic
    static
)