aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/lcms2/ya.make
blob: 716a2d7c982185c426fb020c78d3eb6e4b138058 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Generated by devtools/yamaker from nixpkgs 22.11.

LIBRARY()

LICENSE(
    MIT AND
    Softsurfer
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(2.15)

ORIGINAL_SOURCE(https://github.com/mm2/Little-CMS/archive/lcms2.15.tar.gz)

ADDINCL(
    contrib/libs/lcms2/include
    contrib/libs/lcms2/src
)

NO_COMPILER_WARNINGS()

NO_RUNTIME()

CFLAGS(
    -DHAVE_DLFCN_H=1
    -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1
    -DHAVE_INTTYPES_H=1
    -DHAVE_MEMORY_H=1
    -DHAVE_PTHREAD=1
    -DHAVE_PTHREAD_PRIO_INHERIT=1
    -DHAVE_STDINT_H=1
    -DHAVE_STDLIB_H=1
    -DHAVE_STRINGS_H=1
    -DHAVE_STRING_H=1
    -DHAVE_SYS_STAT_H=1
    -DHAVE_SYS_TYPES_H=1
    -DHAVE_TIFFCONF_H=1
    -DHAVE_UNISTD_H=1
    -DHasJPEG=1
    -DHasTHREADS=1
    -DHasTIFF=1
    -DHasZLIB=1
    -DLT_OBJDIR=\".libs/\"
)

IF (OS_WINDOWS)
    CFLAGS(
        -DHAVE_GMTIME_S=1
    )
ELSE()
    CFLAGS(
        -DHAVE_GMTIME_R=1
    )
ENDIF()

SRCS(
    src/cmsalpha.c
    src/cmscam02.c
    src/cmscgats.c
    src/cmscnvrt.c
    src/cmserr.c
    src/cmsgamma.c
    src/cmsgmt.c
    src/cmshalf.c
    src/cmsintrp.c
    src/cmsio0.c
    src/cmsio1.c
    src/cmslut.c
    src/cmsmd5.c
    src/cmsmtrx.c
    src/cmsnamed.c
    src/cmsopt.c
    src/cmspack.c
    src/cmspcs.c
    src/cmsplugin.c
    src/cmsps2.c
    src/cmssamp.c
    src/cmssm.c
    src/cmstypes.c
    src/cmsvirt.c
    src/cmswtpnt.c
    src/cmsxform.c
)

END()

RECURSE(
    utils/jpgicc
    utils/linkicc
    utils/psicc
    utils/tificc
    utils/transicc
)