aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pillow/py2/ya.make
blob: dd9ed9b0737f0905eddc33b4d2354c52bfce32b1 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
PY2_LIBRARY()

LICENSE(PIL)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(6.2.2)

ORIGINAL_SOURCE(mirror://pypi/P/Pillow/Pillow-6.2.2.tar.gz)

PEERDIR(
    contrib/libs/freetype
    contrib/libs/lcms2
    contrib/libs/libjpeg-turbo
    contrib/libs/libtiff
    contrib/libs/libwebp
    contrib/libs/libwebp/demux
    contrib/libs/libwebp/mux
    contrib/libs/openjpeg
    contrib/libs/python
    contrib/libs/zlib
    contrib/python/cffi
    contrib/python/olefile
)

ADDINCL(
    contrib/libs/freetype/include
    contrib/libs/lcms2/include
    contrib/libs/libjpeg-turbo
    contrib/libs/libwebp
    contrib/libs/openjpeg/include
    contrib/python/Pillow/py2/libImaging
)

NO_COMPILER_WARNINGS()

NO_LINT()

CFLAGS(
    -DHAVE_LIBJPEG
    -DHAVE_LIBTIFF
    -DHAVE_LIBZ
    -DHAVE_OPENJPEG
    -DHAVE_WEBPMUX
    -DPILLOW_VERSION=\"6.2.2\"
)

SRCS(
    _imaging.c
    _imagingcms.c
    _imagingft.c
    _imagingmath.c
    _imagingmorph.c
    _webp.c
    decode.c
    display.c
    encode.c
    libImaging/Access.c
    libImaging/AlphaComposite.c
    libImaging/Bands.c
    libImaging/BcnDecode.c
    libImaging/BitDecode.c
    libImaging/Blend.c
    libImaging/BoxBlur.c
    libImaging/Chops.c
    libImaging/ColorLUT.c
    libImaging/Convert.c
    libImaging/ConvertYCbCr.c
    libImaging/Copy.c
    libImaging/Crop.c
    libImaging/Dib.c
    libImaging/Draw.c
    libImaging/Effects.c
    libImaging/EpsEncode.c
    libImaging/File.c
    libImaging/Fill.c
    libImaging/Filter.c
    libImaging/FliDecode.c
    libImaging/Geometry.c
    libImaging/GetBBox.c
    libImaging/GifDecode.c
    libImaging/GifEncode.c
    libImaging/HexDecode.c
    libImaging/Histo.c
    libImaging/Jpeg2KDecode.c
    libImaging/Jpeg2KEncode.c
    libImaging/JpegDecode.c
    libImaging/JpegEncode.c
    libImaging/Matrix.c
    libImaging/ModeFilter.c
    libImaging/Negative.c
    libImaging/Offset.c
    libImaging/Pack.c
    libImaging/PackDecode.c
    libImaging/Palette.c
    libImaging/Paste.c
    libImaging/PcdDecode.c
    libImaging/PcxDecode.c
    libImaging/PcxEncode.c
    libImaging/Point.c
    libImaging/Quant.c
    libImaging/QuantHash.c
    libImaging/QuantHeap.c
    libImaging/QuantOctree.c
    libImaging/QuantPngQuant.c
    libImaging/RankFilter.c
    libImaging/RawDecode.c
    libImaging/RawEncode.c
    libImaging/Resample.c
    libImaging/SgiRleDecode.c
    libImaging/Storage.c
    libImaging/SunRleDecode.c
    libImaging/TgaRleDecode.c
    libImaging/TgaRleEncode.c
    libImaging/TiffDecode.c
    libImaging/Unpack.c
    libImaging/UnpackYCC.c
    libImaging/UnsharpMask.c
    libImaging/XbmDecode.c
    libImaging/XbmEncode.c
    libImaging/ZipDecode.c
    libImaging/ZipEncode.c
    libImaging/codec_fd.c
    map.c
    outline.c
    path.c
)

PY_REGISTER(
    PIL._imaging
    PIL._imagingcms
    PIL._imagingft
    PIL._imagingmath
    PIL._imagingmorph
    PIL._webp
)

PY_SRCS(
    TOP_LEVEL
    PIL/__init__.py
    PIL/__main__.py
    PIL/_binary.py
    PIL/_util.py
    PIL/_version.py
    PIL/BdfFontFile.py
    PIL/BlpImagePlugin.py
    PIL/BmpImagePlugin.py
    PIL/BufrStubImagePlugin.py
    PIL/ContainerIO.py
    PIL/CurImagePlugin.py
    PIL/DcxImagePlugin.py
    PIL/DdsImagePlugin.py
    PIL/EpsImagePlugin.py
    PIL/ExifTags.py
    PIL/features.py
    PIL/FitsStubImagePlugin.py
    PIL/FliImagePlugin.py
    PIL/FontFile.py
    PIL/FpxImagePlugin.py
    PIL/FtexImagePlugin.py
    PIL/GbrImagePlugin.py
    PIL/GdImageFile.py
    PIL/GifImagePlugin.py
    PIL/GimpGradientFile.py
    PIL/GimpPaletteFile.py
    PIL/GribStubImagePlugin.py
    PIL/Hdf5StubImagePlugin.py
    PIL/IcnsImagePlugin.py
    PIL/IcoImagePlugin.py
    PIL/Image.py
    PIL/ImageChops.py
    PIL/ImageCms.py
    PIL/ImageColor.py
    PIL/ImageDraw.py
    PIL/ImageDraw2.py
    PIL/ImageEnhance.py
    PIL/ImageFile.py
    PIL/ImageFilter.py
    PIL/ImageFont.py
    PIL/ImageMath.py
    PIL/ImageMode.py
    PIL/ImageMorph.py
    PIL/ImageOps.py
    PIL/ImagePalette.py
    PIL/ImagePath.py
    PIL/ImageSequence.py
    PIL/ImageShow.py
    PIL/ImageStat.py
    PIL/ImageTransform.py
    PIL/ImageWin.py
    PIL/ImImagePlugin.py
    PIL/ImtImagePlugin.py
    PIL/IptcImagePlugin.py
    PIL/Jpeg2KImagePlugin.py
    PIL/JpegImagePlugin.py
    PIL/JpegPresets.py
    PIL/McIdasImagePlugin.py
    PIL/MicImagePlugin.py
    PIL/MpegImagePlugin.py
    PIL/MpoImagePlugin.py
    PIL/MspImagePlugin.py
    PIL/PaletteFile.py
    PIL/PalmImagePlugin.py
    PIL/PcdImagePlugin.py
    PIL/PcfFontFile.py
    PIL/PcxImagePlugin.py
    PIL/PdfImagePlugin.py
    PIL/PdfParser.py
    PIL/PixarImagePlugin.py
    PIL/PngImagePlugin.py
    PIL/PpmImagePlugin.py
    PIL/PsdImagePlugin.py
    PIL/PSDraw.py
    PIL/PyAccess.py
    PIL/SgiImagePlugin.py
    PIL/SpiderImagePlugin.py
    PIL/SunImagePlugin.py
    PIL/TarIO.py
    PIL/TgaImagePlugin.py
    PIL/TiffImagePlugin.py
    PIL/TiffTags.py
    PIL/WalImageFile.py
    PIL/WebPImagePlugin.py
    PIL/WmfImagePlugin.py
    PIL/XbmImagePlugin.py
    PIL/XpmImagePlugin.py
    PIL/XVThumbImagePlugin.py
)

IF (OS_DARWIN OR OS_WINDOWS)
    PY_SRCS(
        TOP_LEVEL
        PIL/ImageGrab.py
    )
ENDIF()

END()