Revert "Move libopenjpeg to third_party/"
[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   'targets': [
7     {
8       'target_name': 'bigint',
9       'type': 'static_library',
10       'sources': [
11         'bigint/BigInteger.hh',
12         'bigint/BigIntegerLibrary.hh',
13         'bigint/BigIntegerUtils.hh',
14         'bigint/BigUnsigned.hh',
15         'bigint/NumberlikeArray.hh',
16         'bigint/BigUnsignedInABase.hh',
17         'bigint/BigInteger.cc',
18         'bigint/BigIntegerUtils.cc',
19         'bigint/BigUnsigned.cc',
20         'bigint/BigUnsignedInABase.cc',
21       ],
22     },
23     {
24       'target_name': 'freetype',
25       'type': 'static_library',
26       'defines': [
27         'FT2_BUILD_LIBRARY',
28       ],
29       'include_dirs': [
30          'freetype/include',
31       ],
32       'sources': [
33         'freetype/include/freetype.h',
34         'freetype/include/ft2build.h',
35         'freetype/include/ftmm.h',
36         'freetype/include/ftotval.h',
37         'freetype/include/ftoutln.h',
38         'freetype/include/tttables.h',
39         'freetype/include/internal/ftobjs.h',
40         'freetype/include/internal/ftstream.h',
41         'freetype/include/internal/tttypes.h',
42         'freetype/src/cff/cffobjs.h',
43         'freetype/src/cff/cfftypes.h',
44         'freetype/src/cff/cff.c',
45         'freetype/src/base/ftbase.c',
46         'freetype/src/base/ftbitmap.c',
47         'freetype/src/base/ftglyph.c',
48         'freetype/src/base/ftinit.c',
49         'freetype/src/base/ftlcdfil.c',
50         'freetype/src/base/ftmm.c',
51         'freetype/src/base/ftsystem.c',
52         'freetype/src/psaux/psaux.c',
53         'freetype/src/pshinter/pshinter.c',
54         'freetype/src/psnames/psmodule.c',
55         'freetype/src/raster/raster.c',
56         'freetype/src/sfnt/sfnt.c',
57         'freetype/src/smooth/smooth.c',
58         'freetype/src/truetype/truetype.c',
59         'freetype/src/type1/type1.c',
60         'freetype/src/cid/type1cid.c',
61       ],
62     },
63     {
64       'target_name': 'fx_agg',
65       'type': 'static_library',
66       'sources': [
67         'agg23/agg_basics.h',
68         'agg23/agg_clip_liang_barsky.h',
69         'agg23/agg_conv_dash.h',
70         'agg23/agg_conv_stroke.h',
71         'agg23/agg_curves.cpp',
72         'agg23/agg_curves.h',
73         'agg23/agg_path_storage.cpp',
74         'agg23/agg_path_storage.h',
75         'agg23/agg_rasterizer_scanline_aa.cpp',
76         'agg23/agg_rasterizer_scanline_aa.h',
77         'agg23/agg_renderer_scanline.h',
78         'agg23/agg_rendering_buffer.h',
79         'agg23/agg_scanline_u.h',
80         'agg23/agg_vcgen_dash.cpp',
81         'agg23/agg_vcgen_stroke.cpp',
82       ],
83       'conditions': [
84         ['os_posix==1', {
85           # library contains several enum vs non-enum conditionals.
86           'cflags': [ '-Wno-extra', ],
87         }],
88       ],
89     },
90     {
91       'target_name': 'fx_lcms2',
92       'type': 'static_library',
93       'sources': [
94         'lcms2-2.6/include/lcms2.h',
95         'lcms2-2.6/include/lcms2_plugin.h',
96         'lcms2-2.6/src/cmscam02.c',
97         'lcms2-2.6/src/cmscgats.c',
98         'lcms2-2.6/src/cmscnvrt.c',
99         'lcms2-2.6/src/cmserr.c',
100         'lcms2-2.6/src/cmsgamma.c',
101         'lcms2-2.6/src/cmsgmt.c',
102         'lcms2-2.6/src/cmshalf.c',
103         'lcms2-2.6/src/cmsintrp.c',
104         'lcms2-2.6/src/cmsio0.c',
105         'lcms2-2.6/src/cmsio1.c',
106         'lcms2-2.6/src/cmslut.c',
107         'lcms2-2.6/src/cmsmd5.c',
108         'lcms2-2.6/src/cmsmtrx.c',
109         'lcms2-2.6/src/cmsnamed.c',
110         'lcms2-2.6/src/cmsopt.c',
111         'lcms2-2.6/src/cmspack.c',
112         'lcms2-2.6/src/cmspcs.c',
113         'lcms2-2.6/src/cmsplugin.c',
114         'lcms2-2.6/src/cmsps2.c',
115         'lcms2-2.6/src/cmssamp.c',
116         'lcms2-2.6/src/cmssm.c',
117         'lcms2-2.6/src/cmstypes.c',
118         'lcms2-2.6/src/cmsvirt.c',
119         'lcms2-2.6/src/cmswtpnt.c',
120         'lcms2-2.6/src/cmsxform.c',
121       ],
122       'conditions': [
123         ['os_posix==1', {
124           'cflags': [
125             '-Wno-main',
126             '-Wno-missing-braces',
127             '-Wno-unused',
128           ],
129         }],
130       ],
131     },
132     {
133       'target_name': 'fx_libjpeg',
134       'type': 'static_library',
135       'sources': [
136         'libjpeg/cderror.h',
137         'libjpeg/cdjpeg.h',
138         'libjpeg/fpdfapi_jcapimin.c',
139         'libjpeg/fpdfapi_jcapistd.c',
140         'libjpeg/fpdfapi_jccoefct.c',
141         'libjpeg/fpdfapi_jccolor.c',
142         'libjpeg/fpdfapi_jcdctmgr.c',
143         'libjpeg/fpdfapi_jchuff.c',
144         'libjpeg/fpdfapi_jcinit.c',
145         'libjpeg/fpdfapi_jcmainct.c',
146         'libjpeg/fpdfapi_jcmarker.c',
147         'libjpeg/fpdfapi_jcmaster.c',
148         'libjpeg/fpdfapi_jcomapi.c',
149         'libjpeg/fpdfapi_jcparam.c',
150         'libjpeg/fpdfapi_jcphuff.c',
151         'libjpeg/fpdfapi_jcprepct.c',
152         'libjpeg/fpdfapi_jcsample.c',
153         'libjpeg/fpdfapi_jctrans.c',
154         'libjpeg/fpdfapi_jdapimin.c',
155         'libjpeg/fpdfapi_jdapistd.c',
156         'libjpeg/fpdfapi_jdcoefct.c',
157         'libjpeg/fpdfapi_jdcolor.c',
158         'libjpeg/fpdfapi_jddctmgr.c',
159         'libjpeg/fpdfapi_jdhuff.c',
160         'libjpeg/fpdfapi_jdinput.c',
161         'libjpeg/fpdfapi_jdmainct.c',
162         'libjpeg/fpdfapi_jdmarker.c',
163         'libjpeg/fpdfapi_jdmaster.c',
164         'libjpeg/fpdfapi_jdmerge.c',
165         'libjpeg/fpdfapi_jdphuff.c',
166         'libjpeg/fpdfapi_jdpostct.c',
167         'libjpeg/fpdfapi_jdsample.c',
168         'libjpeg/fpdfapi_jdtrans.c',
169         'libjpeg/fpdfapi_jerror.c',
170         'libjpeg/fpdfapi_jfdctfst.c',
171         'libjpeg/fpdfapi_jfdctint.c',
172         'libjpeg/fpdfapi_jidctfst.c',
173         'libjpeg/fpdfapi_jidctint.c',
174         'libjpeg/fpdfapi_jidctred.c',
175         'libjpeg/fpdfapi_jmemmgr.c',
176         'libjpeg/fpdfapi_jmemnobs.c',
177         'libjpeg/fpdfapi_jutils.c',
178         'libjpeg/jchuff.h',
179         'libjpeg/jconfig.h',
180         'libjpeg/jdct.h',
181         'libjpeg/jdhuff.h',
182         'libjpeg/jerror.h',
183         'libjpeg/jinclude.h',
184         'libjpeg/jmemsys.h',
185         'libjpeg/jmorecfg.h',
186         'libjpeg/jpegint.h',
187         'libjpeg/jpeglib.h',
188         'libjpeg/jversion.h',
189         'libjpeg/makefile',
190         'libjpeg/transupp.h',
191       ],
192       'conditions': [
193         ['os_posix==1', {
194           'cflags': [
195             '-Wno-main',
196             '-Wno-missing-braces',
197             '-Wno-unused',
198           ],
199         }],
200       ],
201     },
202     {
203       'target_name': 'pdfium_base',
204       'type': 'none',
205       'sources': [
206         'base/logging.h',
207         'base/macros.h',
208         'base/nonstd_unique_ptr.h',
209         'base/template_util.h',
210         'base/numerics/safe_conversions.h',
211         'base/numerics/safe_conversions_impl.h',
212         'base/numerics/safe_math.h',
213         'base/numerics/safe_math_impl.h',
214       ],
215     },
216   ],
217 }