Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: gyp/freetype.gyp

Issue 20220002: Add libpoppler PDF rasterizer (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Poppler gypfile simplification Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gyp/fontconfig.gyp ('k') | gyp/freetype.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 'targets': [ 2 'targets': [
3 { 3 {
4 'target_name': 'freetype', 4 'target_name': 'freetype',
5 'type': 'none', 5 'type': 'none',
6 'conditions': [ 6 'conditions': [
7 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { 7 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
8 'direct_dependent_settings': { 8 'direct_dependent_settings': {
9 'include_dirs' : [ 9 'include_dirs' : [
10 '/usr/include/freetype2', 10 '/usr/include/freetype2',
(...skipping 28 matching lines...) Expand all
39 ], 39 ],
40 }, 40 },
41 { 41 {
42 'target_name': 'freetype_static', 42 'target_name': 'freetype_static',
43 'type': 'static_library', 43 'type': 'static_library',
44 'standalone_static_library': 1, 44 'standalone_static_library': 1,
45 'dependencies': [ 45 'dependencies': [
46 # we are dependent upon PNG for color emoji glyphs 46 # we are dependent upon PNG for color emoji glyphs
47 'images.gyp:images' 47 'images.gyp:images'
48 ], 48 ],
49 'sources': [ 49 'includes': [
50 # base components (required) 50 # common freetype sources needed for both the base Skia build and the
51 '../third_party/externals/freetype/src/base/ftsystem.c', 51 # libpoppler build for testing only
52 '../third_party/externals/freetype/src/base/ftinit.c', 52 'freetype.gypi',
53 '../third_party/externals/freetype/src/base/ftdebug.c',
54 '../third_party/externals/freetype/src/base/ftbase.c',
55
56 '../third_party/externals/freetype/src/base/ftbbox.c', # recommend ed, see <freetype/ftbbox.h>
57 '../third_party/externals/freetype/src/base/ftglyph.c', # recommend ed, see <freetype/ftglyph.h>
58
59 '../third_party/externals/freetype/src/base/ftbitmap.c', # optional, see <freetype/ftbitmap.h>
60 '../third_party/externals/freetype/src/base/ftfstype.c', # optional
61 '../third_party/externals/freetype/src/base/ftgasp.c', # optional, see <freetype/ftgasp.h>
62 '../third_party/externals/freetype/src/base/ftlcdfil.c', # optional, see <freetype/ftlcdfil.h>
63 '../third_party/externals/freetype/src/base/ftmm.c', # optional, see <freetype/ftmm.h>
64 '../third_party/externals/freetype/src/base/ftpatent.c', # optional
65 '../third_party/externals/freetype/src/base/ftstroke.c', # optional, see <freetype/ftstroke.h>
66 '../third_party/externals/freetype/src/base/ftsynth.c', # optional, see <freetype/ftsynth.h>
67 '../third_party/externals/freetype/src/base/fttype1.c', # optional, see <freetype/t1tables.h>
68 '../third_party/externals/freetype/src/base/ftwinfnt.c', # optional, see <freetype/ftwinfnt.h>
69 '../third_party/externals/freetype/src/base/ftxf86.c', # optional, see <freetype/ftxf86.h>
70
71 # font drivers (optional; at least one is needed)
72 '../third_party/externals/freetype/src/cff/cff.c', # CFF/OpenT ype font driver
73 '../third_party/externals/freetype/src/sfnt/sfnt.c', # SFNT file s support (TrueType & OpenType)
74 '../third_party/externals/freetype/src/truetype/truetype.c', # TrueType font driver
75
76 # rasterizers (optional; at least one is needed for vector formats)
77 '../third_party/externals/freetype/src/raster/raster.c', # monochrom e rasterizer
78 '../third_party/externals/freetype/src/smooth/smooth.c', # anti-alia sing rasterizer
79
80 # auxiliary modules (optional)
81 '../third_party/externals/freetype/src/autofit/autofit.c', # auto hint ing module
82 '../third_party/externals/freetype/src/pshinter/pshinter.c', # PS hintin g module
83 '../third_party/externals/freetype/src/psnames/psnames.c', # PostScrip t glyph names support
84 ],
85 'include_dirs': [
86 '../third_party/freetype/include_overrides',
87 '../third_party/externals/freetype/internal',
88 '../third_party/externals/freetype/builds',
89 '../third_party/externals/freetype/include',
90 '../third_party/externals/freetype',
91 ],
92 'cflags': [
93 '-DFT2_BUILD_LIBRARY',
94 ], 53 ],
95 'direct_dependent_settings': { 54 'direct_dependent_settings': {
96 'include_dirs': [ 55 'include_dirs': [
97 '../third_party/freetype/include_overrides', 56 '../third_party/freetype/include_overrides',
98 '../third_party/externals/freetype/include',
99 ], 57 ],
100 }, 58 },
101 'conditions': [ 59 'conditions': [
102 [ 'skia_warnings_as_errors', {
103 'cflags!': [
104 '-Werror',
105 ],
106 }],
107 [ 'skia_os == "mac"', {
108 'sources': [
109 '../third_party/externals/freetype/src/base/ftmac.c', # only on the Macintosh
110 ],
111 }],
112 [ 'skia_os == "android"', { 60 [ 'skia_os == "android"', {
113 # These flags are used by the Android OS. They are probably overkill 61 # These flags are used by the Android OS. They are probably overkill
114 # for Skia, but we add them for consistency. 62 # for Skia, but we add them for consistency.
115 'cflags': [ 63 'cflags': [
116 '-W', 64 '-W',
117 '-Wall', 65 '-Wall',
118 '-fPIC', 66 '-fPIC',
119 '-DPIC', 67 '-DPIC',
120 '-DDARWIN_NO_CARBON', 68 '-DDARWIN_NO_CARBON',
121 '-DFT2_BUILD_LIBRARY', 69 '-DFT2_BUILD_LIBRARY',
122 '-O2', 70 '-O2',
123 ], 71 ],
124 }], 72 }],
125 ], 73 ],
126 }, 74 },
75 {
76 'target_name': 'freetype_poppler',
77 'type': 'static_library',
78 'standalone_static_library': 1,
79 'includes': [
80 'freetype.gypi',
81 ],
82 'sources': [
83 # additional components used by poppler
84 '../third_party/externals/freetype/src/base/ftbdf.c',
85 '../third_party/externals/freetype/src/base/ftpfr.c',
86
87 '../third_party/externals/freetype/src/bdf/bdf.c',
88 '../third_party/externals/freetype/src/cid/type1cid.c',
89 '../third_party/externals/freetype/src/pcf/pcf.c',
90 '../third_party/externals/freetype/src/pfr/pfr.c',
91 '../third_party/externals/freetype/src/psaux/psaux.c',
92 '../third_party/externals/freetype/src/type1/type1.c',
93 '../third_party/externals/freetype/src/type42/type42.c',
94 '../third_party/externals/freetype/src/winfonts/winfnt.c',
95
96 '../third_party/externals/freetype/src/gzip/ftgzip.c',
97 '../third_party/externals/freetype/src/lzw/ftlzw.c',
98 ],
99 },
127 ], 100 ],
128 } 101 }
129 102
130 # Local Variables: 103 # Local Variables:
131 # tab-width:2 104 # tab-width:2
132 # indent-tabs-mode:nil 105 # indent-tabs-mode:nil
133 # End: 106 # End:
134 # vim: set expandtab tabstop=2 shiftwidth=2: 107 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « gyp/fontconfig.gyp ('k') | gyp/freetype.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698