Cosmetic changes in fsdk_define.h
[pdfium.git] / third_party / third_party.gyp
1 # Copyright 2014 PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6   'target_defaults': {
7     'defines': [
8       'OPJ_STATIC',
9       '_CRT_SECURE_NO_WARNINGS',
10     ],
11     'msvs_disabled_warnings': [
12       4005, 4018, 4146, 4333, 4345, 4267
13     ],
14   },
15   'targets': [
16     {
17       'target_name': 'bigint',
18       'type': 'static_library',
19       'sources': [
20         'bigint/BigInteger.hh',
21         'bigint/BigIntegerLibrary.hh',
22         'bigint/BigIntegerUtils.hh',
23         'bigint/BigUnsigned.hh',
24         'bigint/NumberlikeArray.hh',
25         'bigint/BigUnsignedInABase.hh',
26         'bigint/BigInteger.cc',
27         'bigint/BigIntegerUtils.cc',
28         'bigint/BigUnsigned.cc',
29         'bigint/BigUnsignedInABase.cc',
30       ],
31     },
32     {
33       'target_name': 'fx_freetype',
34       'type': 'static_library',
35       'defines': [
36         'FT2_BUILD_LIBRARY',
37       ],
38       'include_dirs': [
39          'freetype/include',
40       ],
41       'sources': [
42         'freetype/include/freetype.h',
43         'freetype/include/ft2build.h',
44         'freetype/include/ftmm.h',
45         'freetype/include/ftotval.h',
46         'freetype/include/ftoutln.h',
47         'freetype/include/tttables.h',
48         'freetype/include/internal/ftobjs.h',
49         'freetype/include/internal/ftstream.h',
50         'freetype/include/internal/tttypes.h',
51         'freetype/src/cff/cffobjs.h',
52         'freetype/src/cff/cfftypes.h',
53         'freetype/src/cff/cff.c',
54         'freetype/src/base/ftbase.c',
55         'freetype/src/base/ftbase.h',
56         'freetype/src/base/ftbitmap.c',
57         'freetype/src/base/ftglyph.c',
58         'freetype/src/base/ftinit.c',
59         'freetype/src/base/ftlcdfil.c',
60         'freetype/src/base/ftmm.c',
61         'freetype/src/base/ftsystem.c',
62         'freetype/src/psaux/psaux.c',
63         'freetype/src/pshinter/pshinter.c',
64         'freetype/src/psnames/psmodule.c',
65         'freetype/src/raster/raster.c',
66         'freetype/src/sfnt/sfnt.c',
67         'freetype/src/smooth/smooth.c',
68         'freetype/src/truetype/truetype.c',
69         'freetype/src/type1/type1.c',
70         'freetype/src/cid/type1cid.c',
71       ],
72       'variables': {
73         'clang_warning_flags': [
74           # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
75           # ftbase.h are unused.
76           '-Wno-unused-function',
77         ],
78       },
79     },
80     {
81       'target_name': 'fx_agg',
82       'type': 'static_library',
83       'sources': [
84         'agg23/agg_basics.h',
85         'agg23/agg_clip_liang_barsky.h',
86         'agg23/agg_conv_dash.h',
87         'agg23/agg_conv_stroke.h',
88         'agg23/agg_curves.cpp',
89         'agg23/agg_curves.h',
90         'agg23/agg_path_storage.cpp',
91         'agg23/agg_path_storage.h',
92         'agg23/agg_rasterizer_scanline_aa.cpp',
93         'agg23/agg_rasterizer_scanline_aa.h',
94         'agg23/agg_renderer_scanline.h',
95         'agg23/agg_rendering_buffer.h',
96         'agg23/agg_scanline_u.h',
97         'agg23/agg_vcgen_dash.cpp',
98         'agg23/agg_vcgen_stroke.cpp',
99       ],
100       'conditions': [
101         ['os_posix==1', {
102           # library contains several enum vs non-enum conditionals.
103           'cflags': [ '-Wno-extra', ],
104         }],
105       ],
106       'variables': {
107         'clang_warning_flags': [
108           # calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
109           '-Wno-unused-function',
110         ],
111       },
112     },
113     {
114       'target_name': 'fx_lcms2',
115       'type': 'static_library',
116       'sources': [
117         'lcms2-2.6/include/lcms2.h',
118         'lcms2-2.6/include/lcms2_plugin.h',
119         'lcms2-2.6/src/cmscam02.c',
120         'lcms2-2.6/src/cmscgats.c',
121         'lcms2-2.6/src/cmscnvrt.c',
122         'lcms2-2.6/src/cmserr.c',
123         'lcms2-2.6/src/cmsgamma.c',
124         'lcms2-2.6/src/cmsgmt.c',
125         'lcms2-2.6/src/cmshalf.c',
126         'lcms2-2.6/src/cmsintrp.c',
127         'lcms2-2.6/src/cmsio0.c',
128         'lcms2-2.6/src/cmsio1.c',
129         'lcms2-2.6/src/cmslut.c',
130         'lcms2-2.6/src/cmsmd5.c',
131         'lcms2-2.6/src/cmsmtrx.c',
132         'lcms2-2.6/src/cmsnamed.c',
133         'lcms2-2.6/src/cmsopt.c',
134         'lcms2-2.6/src/cmspack.c',
135         'lcms2-2.6/src/cmspcs.c',
136         'lcms2-2.6/src/cmsplugin.c',
137         'lcms2-2.6/src/cmsps2.c',
138         'lcms2-2.6/src/cmssamp.c',
139         'lcms2-2.6/src/cmssm.c',
140         'lcms2-2.6/src/cmstypes.c',
141         'lcms2-2.6/src/cmsvirt.c',
142         'lcms2-2.6/src/cmswtpnt.c',
143         'lcms2-2.6/src/cmsxform.c',
144       ],
145       'conditions': [
146         ['os_posix==1', {
147           'cflags': [
148             '-Wno-main',
149             '-Wno-missing-braces',
150             '-Wno-unused',
151           ],
152         }],
153       ],
154       'variables': {
155         'clang_warning_flags': [
156           '-Wno-missing-braces',
157           # FindPrev() in cmsplugin.c is unused.
158           '-Wno-unused-function',
159         ],
160       },
161     },
162     {
163       'target_name': 'fx_libjpeg',
164       'type': 'static_library',
165       'sources': [
166         'libjpeg/cderror.h',
167         'libjpeg/cdjpeg.h',
168         'libjpeg/fpdfapi_jcapimin.c',
169         'libjpeg/fpdfapi_jcapistd.c',
170         'libjpeg/fpdfapi_jccoefct.c',
171         'libjpeg/fpdfapi_jccolor.c',
172         'libjpeg/fpdfapi_jcdctmgr.c',
173         'libjpeg/fpdfapi_jchuff.c',
174         'libjpeg/fpdfapi_jcinit.c',
175         'libjpeg/fpdfapi_jcmainct.c',
176         'libjpeg/fpdfapi_jcmarker.c',
177         'libjpeg/fpdfapi_jcmaster.c',
178         'libjpeg/fpdfapi_jcomapi.c',
179         'libjpeg/fpdfapi_jcparam.c',
180         'libjpeg/fpdfapi_jcphuff.c',
181         'libjpeg/fpdfapi_jcprepct.c',
182         'libjpeg/fpdfapi_jcsample.c',
183         'libjpeg/fpdfapi_jctrans.c',
184         'libjpeg/fpdfapi_jdapimin.c',
185         'libjpeg/fpdfapi_jdapistd.c',
186         'libjpeg/fpdfapi_jdcoefct.c',
187         'libjpeg/fpdfapi_jdcolor.c',
188         'libjpeg/fpdfapi_jddctmgr.c',
189         'libjpeg/fpdfapi_jdhuff.c',
190         'libjpeg/fpdfapi_jdinput.c',
191         'libjpeg/fpdfapi_jdmainct.c',
192         'libjpeg/fpdfapi_jdmarker.c',
193         'libjpeg/fpdfapi_jdmaster.c',
194         'libjpeg/fpdfapi_jdmerge.c',
195         'libjpeg/fpdfapi_jdphuff.c',
196         'libjpeg/fpdfapi_jdpostct.c',
197         'libjpeg/fpdfapi_jdsample.c',
198         'libjpeg/fpdfapi_jdtrans.c',
199         'libjpeg/fpdfapi_jerror.c',
200         'libjpeg/fpdfapi_jfdctfst.c',
201         'libjpeg/fpdfapi_jfdctint.c',
202         'libjpeg/fpdfapi_jidctfst.c',
203         'libjpeg/fpdfapi_jidctint.c',
204         'libjpeg/fpdfapi_jidctred.c',
205         'libjpeg/fpdfapi_jmemmgr.c',
206         'libjpeg/fpdfapi_jmemnobs.c',
207         'libjpeg/fpdfapi_jutils.c',
208         'libjpeg/jchuff.h',
209         'libjpeg/jconfig.h',
210         'libjpeg/jdct.h',
211         'libjpeg/jdhuff.h',
212         'libjpeg/jerror.h',
213         'libjpeg/jinclude.h',
214         'libjpeg/jmemsys.h',
215         'libjpeg/jmorecfg.h',
216         'libjpeg/jpegint.h',
217         'libjpeg/jpeglib.h',
218         'libjpeg/jversion.h',
219         'libjpeg/transupp.h',
220       ],
221       'conditions': [
222         ['os_posix==1', {
223           'cflags': [
224             '-Wno-main',
225             '-Wno-missing-braces',
226             '-Wno-unused',
227           ],
228         }],
229       ],
230     },
231     {
232       'target_name': 'fx_libopenjpeg',
233       'type': 'static_library',
234       'sources': [
235         'libopenjpeg20/bio.c',
236         'libopenjpeg20/cio.c',
237         'libopenjpeg20/dwt.c',
238         'libopenjpeg20/event.c',
239         'libopenjpeg20/function_list.c',
240         'libopenjpeg20/image.c',
241         'libopenjpeg20/invert.c',
242         'libopenjpeg20/j2k.c',
243         'libopenjpeg20/jp2.c',
244         'libopenjpeg20/mct.c',
245         'libopenjpeg20/mqc.c',
246         'libopenjpeg20/openjpeg.c',
247         'libopenjpeg20/opj_clock.c',
248         'libopenjpeg20/pi.c',
249         'libopenjpeg20/raw.c',
250         'libopenjpeg20/t1.c',
251         'libopenjpeg20/t2.c',
252         'libopenjpeg20/tcd.c',
253         'libopenjpeg20/tgt.c',
254       ],
255     },
256     {
257       'target_name': 'fx_zlib',
258       'type': 'static_library',
259       'sources': [
260         'zlib_v128/adler32.c',
261         'zlib_v128/compress.c',
262         'zlib_v128/crc32.c',
263         'zlib_v128/deflate.c',
264         'zlib_v128/gzclose.c',
265         'zlib_v128/gzlib.c',
266         'zlib_v128/gzread.c',
267         'zlib_v128/gzwrite.c',
268         'zlib_v128/infback.c',
269         'zlib_v128/inffast.c',
270         'zlib_v128/inflate.c',
271         'zlib_v128/inftrees.c',
272         'zlib_v128/trees.c',
273         'zlib_v128/uncompr.c',
274         'zlib_v128/zutil.c',
275       ],
276     },
277     {
278       'target_name': 'pdfium_base',
279       'type': 'none',
280       'sources': [
281         'base/logging.h',
282         'base/macros.h',
283         'base/nonstd_unique_ptr.h',
284         'base/numerics/safe_conversions.h',
285         'base/numerics/safe_conversions_impl.h',
286         'base/numerics/safe_math.h',
287         'base/numerics/safe_math_impl.h',
288         'base/stl_util.h',
289         'base/template_util.h',
290       ],
291     },
292   ],
293 }