Merge to XFA: Separate agg-authored code from fx-authored code.
[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': 'fx_agg',
25       'type': 'static_library',
26       'sources': [
27         'agg23/agg_basics.h',
28         'agg23/agg_clip_liang_barsky.h',
29         'agg23/agg_conv_dash.h',
30         'agg23/agg_conv_stroke.h',
31         'agg23/agg_curves.cpp',
32         'agg23/agg_curves.h',
33         'agg23/agg_path_storage.cpp',
34         'agg23/agg_path_storage.h',
35         'agg23/agg_rasterizer_scanline_aa.cpp',
36         'agg23/agg_rasterizer_scanline_aa.h',
37         'agg23/agg_renderer_scanline.h',
38         'agg23/agg_rendering_buffer.h',
39         'agg23/agg_scanline_u.h',
40         'agg23/agg_vcgen_dash.cpp',
41         'agg23/agg_vcgen_stroke.cpp',
42       ],
43       'conditions': [
44         ['os_posix==1', {
45           # library contains several enum vs non-enum conditionals.
46           'cflags': [ '-Wno-extra', ],
47         }],
48       ],
49     },
50     {
51       'target_name': 'freetype',
52       'type': 'static_library',
53       'defines': [
54         'FT2_BUILD_LIBRARY',
55       ],
56       'include_dirs': [
57          'freetype/include',
58       ],
59       'sources': [
60         'freetype/include/freetype.h',
61         'freetype/include/ft2build.h',
62         'freetype/include/ftmm.h',
63         'freetype/include/ftotval.h',
64         'freetype/include/ftoutln.h',
65         'freetype/include/tttables.h',
66         'freetype/include/internal/ftobjs.h',
67         'freetype/include/internal/ftstream.h',
68         'freetype/include/internal/tttypes.h',
69         'freetype/src/cff/cffobjs.h',
70         'freetype/src/cff/cfftypes.h',
71         'freetype/src/cff/cff.c',
72         'freetype/src/base/ftbase.c',
73         'freetype/src/base/ftbitmap.c',
74         'freetype/src/base/ftglyph.c',
75         'freetype/src/base/ftinit.c',
76         'freetype/src/base/ftlcdfil.c',
77         'freetype/src/base/ftmm.c',
78         'freetype/src/base/ftsystem.c',
79         'freetype/src/psaux/psaux.c',
80         'freetype/src/pshinter/pshinter.c',
81         'freetype/src/psnames/psmodule.c',
82         'freetype/src/raster/raster.c',
83         'freetype/src/sfnt/sfnt.c',
84         'freetype/src/smooth/smooth.c',
85         'freetype/src/truetype/truetype.c',
86         'freetype/src/type1/type1.c',
87         'freetype/src/cid/type1cid.c',
88       ],
89     },
90     {
91       'target_name': 'pdfium_base',
92       'type': 'none',
93       'sources': [
94         'base/logging.h',
95         'base/macros.h',
96         'base/nonstd_unique_ptr.h',
97         'base/template_util.h',
98         'base/numerics/safe_conversions.h',
99         'base/numerics/safe_conversions_impl.h',
100         'base/numerics/safe_math.h',
101         'base/numerics/safe_math_impl.h',
102       ],
103     },
104   ],
105 }