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

Side by Side Diff: gyp/freetype.gyp

Issue 20220002: Add libpoppler PDF rasterizer (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address review comments 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
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 ], 53 ],
85 'include_dirs': [ 54 'include_dirs': [
86 '../third_party/freetype/include_overrides',
87 '../third_party/externals/freetype/internal', 55 '../third_party/externals/freetype/internal',
88 '../third_party/externals/freetype/builds', 56 '../third_party/externals/freetype/builds',
89 '../third_party/externals/freetype/include', 57 '../third_party/externals/freetype/include',
90 '../third_party/externals/freetype', 58 '../third_party/externals/freetype',
91 ], 59 ],
92 'cflags': [ 60 'defines': [
93 '-DFT2_BUILD_LIBRARY', 61 'FT2_BUILD_LIBRARY',
94 ], 62 ],
95 'direct_dependent_settings': { 63 'direct_dependent_settings': {
96 'include_dirs': [ 64 'include_dirs': [
97 '../third_party/freetype/include_overrides', 65 '../third_party/freetype/include_overrides',
98 '../third_party/externals/freetype/include', 66 '../third_party/externals/freetype/include',
99 ], 67 ],
100 }, 68 },
101 'conditions': [ 69 'conditions': [
102 [ 'skia_warnings_as_errors', { 70 [ 'skia_warnings_as_errors', {
103 'cflags!': [ 71 'cflags!': [
(...skipping 13 matching lines...) Expand all
117 '-Wall', 85 '-Wall',
118 '-fPIC', 86 '-fPIC',
119 '-DPIC', 87 '-DPIC',
120 '-DDARWIN_NO_CARBON', 88 '-DDARWIN_NO_CARBON',
121 '-DFT2_BUILD_LIBRARY', 89 '-DFT2_BUILD_LIBRARY',
122 '-O2', 90 '-O2',
123 ], 91 ],
124 }], 92 }],
125 ], 93 ],
126 }, 94 },
95 {
96 'target_name': 'freetype_poppler',
97 'type': 'static_library',
98 'standalone_static_library': 1,
99 'includes': [
100 'freetype.gypi',
101 ],
102 'sources': [
103 # additional components used by poppler
104 '../third_party/externals/freetype/src/base/ftbdf.c',
105 '../third_party/externals/freetype/src/base/ftpfr.c',
106
107 '../third_party/externals/freetype/src/bdf/bdf.c',
108 '../third_party/externals/freetype/src/cid/type1cid.c',
109 '../third_party/externals/freetype/src/pcf/pcf.c',
110 '../third_party/externals/freetype/src/pfr/pfr.c',
111 '../third_party/externals/freetype/src/psaux/psaux.c',
112 '../third_party/externals/freetype/src/type1/type1.c',
113 '../third_party/externals/freetype/src/type42/type42.c',
114 '../third_party/externals/freetype/src/winfonts/winfnt.c',
115
116 '../third_party/externals/freetype/src/gzip/ftgzip.c',
117 '../third_party/externals/freetype/src/lzw/ftlzw.c',
118 ],
119 'include_dirs': [
vandebo (ex-Chrome) 2013/08/15 23:17:14 Pull the other common things into the gypi: inclu
ducky 2013/08/16 02:18:52 Done.
120 '../third_party/externals/freetype/internal',
121 '../third_party/externals/freetype/builds',
122 '../third_party/externals/freetype/include',
123 '../third_party/externals/freetype/include/freetype/config',
124 '../third_party/externals/freetype',
125 ],
126 'defines': [
127 'FT2_BUILD_LIBRARY',
128 'FT_CONFIG_CONFIG_H=<ftconfig.h>',
vandebo (ex-Chrome) 2013/08/15 23:17:14 Why does the poppler version need these and the ol
ducky 2013/08/16 02:18:52 Good question. Apparently it doesn't.
129 'FT_CONFIG_MODULES_H=<ftmodule.h>',
130 ],
131 'direct_dependent_settings': {
132 'defines': [
133 'FT_CONFIG_CONFIG_H=<ftconfig.h>',
134 'FT_CONFIG_MODULES_H=<ftmodule.h>',
135 ],
136 'include_dirs': [
137 '../third_party/externals/freetype/include',
138 '../third_party/externals/freetype/include/freetype/config',
139 ],
140 },
141 'conditions': [
142 [ 'skia_warnings_as_errors', {
143 'cflags!': [
144 '-Werror',
145 ],
146 }],
147 [ 'skia_os == "mac"', {
148 'sources': [
149 '../third_party/externals/freetype/src/base/ftmac.c', # only on the Macintosh
150 ],
151 }],
152 ],
153 },
127 ], 154 ],
128 } 155 }
129 156
130 # Local Variables: 157 # Local Variables:
131 # tab-width:2 158 # tab-width:2
132 # indent-tabs-mode:nil 159 # indent-tabs-mode:nil
133 # End: 160 # End:
134 # vim: set expandtab tabstop=2 shiftwidth=2: 161 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « gyp/fontconfig.gyp ('k') | gyp/freetype.gypi » ('j') | gyp/poppler.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698