Move lcms2 into 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': 'pdfium_base',
134       'type': 'none',
135       'sources': [
136         'base/logging.h',
137         'base/macros.h',
138         'base/nonstd_unique_ptr.h',
139         'base/template_util.h',
140         'base/numerics/safe_conversions.h',
141         'base/numerics/safe_conversions_impl.h',
142         'base/numerics/safe_math.h',
143         'base/numerics/safe_math_impl.h',
144       ],
145     },
146   ],
147 }