blob: 6c6e4898beff9347530f44ec1378d0a1e2e3138d (
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
|
LIBRARY()
VERSION(1.13)
LICENSE(Service-Dll-Harness)
WITHOUT_LICENSE_TEXTS()
NO_RUNTIME()
DEFAULT(USE_ICONV ${_USE_ICONV})
IF (EXPORT_CMAKE)
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()
ELSEIF (USE_ICONV == "dynamic")
PEERDIR(
contrib/libs/libiconv/dynamic
)
ELSEIF (USE_ICONV == "local")
GLOBAL_CFLAGS(${USE_LOCAL_ICONV_CFLAGS})
IF (OS_DARWIN)
LDFLAGS(-liconv)
ENDIF()
# Opensource code is compatible with libc provided iconv API on major linux distributions and macos.
ELSE()
PEERDIR(
contrib/libs/libiconv/static
)
ENDIF()
END()
RECURSE(
dynamic
static
)
|