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

Side by Side Diff: gyp/poppler.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/iconv.gyp ('k') | src/utils/SkPDFRasterizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # GYP for libpoppler, a PDF rendering library.
2 #
3 # !!! WARNING !!! Poppler is GPL software, and should not be used in anything
4 # except testing code. Or the lawyercats won't be happy.
5 #
6 # libpoppler should be statically linked (doesn't have DLL exports),
7 # but libpopper-cpp can be dynamically linked.
8
9 {
10 'variables': {
11 'skia_warnings_as_errors': 0,
12 },
13 'targets': [
14 {
15 'target_name': 'libpoppler-gpl',
16 'type': 'static_library',
17 'include_dirs' : [
18 '../third_party/externals/poppler',
19 '../third_party/externals/poppler/goo',
20 ],
21 'sources': [
22 '../third_party/externals/poppler/fofi/FoFiBase.cc',
23 '../third_party/externals/poppler/fofi/FoFiEncodings.cc',
24 '../third_party/externals/poppler/fofi/FoFiIdentifier.cc',
25 '../third_party/externals/poppler/fofi/FoFiTrueType.cc',
26 '../third_party/externals/poppler/fofi/FoFiType1.cc',
27 '../third_party/externals/poppler/fofi/FoFiType1C.cc',
28 '../third_party/externals/poppler/goo/FixedPoint.cc',
29 '../third_party/externals/poppler/goo/gfile.cc',
30 '../third_party/externals/poppler/goo/gmem.cc',
31 '../third_party/externals/poppler/goo/gmempp.cc',
32 '../third_party/externals/poppler/goo/GooHash.cc',
33 '../third_party/externals/poppler/goo/GooList.cc',
34 '../third_party/externals/poppler/goo/GooString.cc',
35 '../third_party/externals/poppler/goo/GooTimer.cc',
36 '../third_party/externals/poppler/goo/grandom.cc',
37 '../third_party/externals/poppler/goo/gstrtod.cc',
38 '../third_party/externals/poppler/goo/ImgWriter.cc',
39 '../third_party/externals/poppler/goo/JpegWriter.cc',
40 '../third_party/externals/poppler/goo/PNGWriter.cc',
41 '../third_party/externals/poppler/goo/TiffWriter.cc',
42 '../third_party/externals/poppler/poppler/Annot.cc',
43 '../third_party/externals/poppler/poppler/Array.cc',
44 '../third_party/externals/poppler/poppler/BuiltinFont.cc',
45 '../third_party/externals/poppler/poppler/BuiltinFontTables.cc',
46 '../third_party/externals/poppler/poppler/CachedFile.cc',
47 '../third_party/externals/poppler/poppler/Catalog.cc',
48 '../third_party/externals/poppler/poppler/CharCodeToUnicode.cc',
49 '../third_party/externals/poppler/poppler/CMap.cc',
50 '../third_party/externals/poppler/poppler/DateInfo.cc',
51 '../third_party/externals/poppler/poppler/Decrypt.cc',
52 '../third_party/externals/poppler/poppler/Dict.cc',
53 '../third_party/externals/poppler/poppler/Error.cc',
54 '../third_party/externals/poppler/poppler/FileSpec.cc',
55 '../third_party/externals/poppler/poppler/FontEncodingTables.cc',
56 '../third_party/externals/poppler/poppler/FontInfo.cc',
57 '../third_party/externals/poppler/poppler/Form.cc',
58 '../third_party/externals/poppler/poppler/Function.cc',
59 '../third_party/externals/poppler/poppler/Gfx.cc',
60 '../third_party/externals/poppler/poppler/GfxFont.cc',
61 '../third_party/externals/poppler/poppler/GfxState.cc',
62 '../third_party/externals/poppler/poppler/GlobalParams.cc',
63 '../third_party/externals/poppler/poppler/Hints.cc',
64 '../third_party/externals/poppler/poppler/JArithmeticDecoder.cc',
65 '../third_party/externals/poppler/poppler/JBIG2Stream.cc',
66 '../third_party/externals/poppler/poppler/JPXStream.cc',
67 '../third_party/externals/poppler/poppler/Lexer.cc',
68 '../third_party/externals/poppler/poppler/Linearization.cc',
69 '../third_party/externals/poppler/poppler/Link.cc',
70 '../third_party/externals/poppler/poppler/LocalPDFDocBuilder.cc',
71 '../third_party/externals/poppler/poppler/Movie.cc',
72 '../third_party/externals/poppler/poppler/NameToCharCode.cc',
73 '../third_party/externals/poppler/poppler/Object.cc',
74 '../third_party/externals/poppler/poppler/OptionalContent.cc',
75 '../third_party/externals/poppler/poppler/Outline.cc',
76 '../third_party/externals/poppler/poppler/OutputDev.cc',
77 '../third_party/externals/poppler/poppler/Page.cc',
78 '../third_party/externals/poppler/poppler/PageLabelInfo.cc',
79 '../third_party/externals/poppler/poppler/PageTransition.cc',
80 '../third_party/externals/poppler/poppler/Parser.cc',
81 '../third_party/externals/poppler/poppler/PDFDoc.cc',
82 '../third_party/externals/poppler/poppler/PDFDocEncoding.cc',
83 '../third_party/externals/poppler/poppler/PDFDocFactory.cc',
84 '../third_party/externals/poppler/poppler/PopplerCache.cc',
85 '../third_party/externals/poppler/poppler/PreScanOutputDev.cc',
86 '../third_party/externals/poppler/poppler/ProfileData.cc',
87 '../third_party/externals/poppler/poppler/PSOutputDev.cc',
88 '../third_party/externals/poppler/poppler/PSTokenizer.cc',
89 '../third_party/externals/poppler/poppler/Rendition.cc',
90 '../third_party/externals/poppler/poppler/SecurityHandler.cc',
91 '../third_party/externals/poppler/poppler/Sound.cc',
92 '../third_party/externals/poppler/poppler/SplashOutputDev.cc',
93 '../third_party/externals/poppler/poppler/StdinCachedFile.cc',
94 '../third_party/externals/poppler/poppler/StdinPDFDocBuilder.cc',
95 '../third_party/externals/poppler/poppler/Stream.cc',
96 '../third_party/externals/poppler/poppler/strtok_r.cpp',
97 '../third_party/externals/poppler/poppler/TextOutputDev.cc',
98 '../third_party/externals/poppler/poppler/UnicodeMap.cc',
99 '../third_party/externals/poppler/poppler/UnicodeTypeTable.cc',
100 '../third_party/externals/poppler/poppler/UTF.cc',
101 '../third_party/externals/poppler/poppler/ViewerPreferences.cc',
102 '../third_party/externals/poppler/poppler/XpdfPluginAPI.cc',
103 '../third_party/externals/poppler/poppler/XRef.cc',
104 '../third_party/externals/poppler/splash/Splash.cc',
105 '../third_party/externals/poppler/splash/SplashBitmap.cc',
106 '../third_party/externals/poppler/splash/SplashClip.cc',
107 '../third_party/externals/poppler/splash/SplashFont.cc',
108 '../third_party/externals/poppler/splash/SplashFontEngine.cc',
109 '../third_party/externals/poppler/splash/SplashFontFile.cc',
110 '../third_party/externals/poppler/splash/SplashFontFileID.cc',
111 '../third_party/externals/poppler/splash/SplashFTFont.cc',
112 '../third_party/externals/poppler/splash/SplashFTFontEngine.cc',
113 '../third_party/externals/poppler/splash/SplashFTFontFile.cc',
114 '../third_party/externals/poppler/splash/SplashPath.cc',
115 '../third_party/externals/poppler/splash/SplashPattern.cc',
116 '../third_party/externals/poppler/splash/SplashScreen.cc',
117 '../third_party/externals/poppler/splash/SplashState.cc',
118 '../third_party/externals/poppler/splash/SplashT1Font.cc',
119 '../third_party/externals/poppler/splash/SplashT1FontEngine.cc',
120 '../third_party/externals/poppler/splash/SplashT1FontFile.cc',
121 '../third_party/externals/poppler/splash/SplashXPath.cc',
122 '../third_party/externals/poppler/splash/SplashXPathScanner.cc',
123 ],
124 'direct_dependent_settings': {
125 'include_dirs': [
126 '../third_party/externals/poppler/poppler',
127 ],
128 },
129 'conditions': [
130 ['skia_os == "linux"', {
131 'include_dirs': [
132 '../third_party/poppler/config/linux',
133 '/usr/include/freetype2',
134 ],
135 'cflags': [
136 '-fPIC',
137 ],
138 }],
139 ['skia_os in ["mac", "win"]', {
140 'dependencies': [
141 'freetype.gyp:freetype_poppler',
142 'fontconfig.gyp:fontconfig',
143 ],
144 }],
145 ['skia_os == "mac"', {
146 'include_dirs': [
147 '../third_party/poppler/config/mac',
148 ],
149 }],
150 ['skia_os == "win"', {
151 'include_dirs': [
152 '../third_party/poppler/config/windows',
153 ],
154 }],
155 ],
156 },
157
158 {
159 'target_name': 'libpoppler-cpp-gpl',
160 'dependencies': [
161 'libpoppler-gpl',
162 ],
163 'type': 'shared_library',
164 'include_dirs' : [
165 '../third_party/externals/poppler/cpp',
166 '../third_party/externals/poppler',
167 '../third_party/externals/poppler/poppler',
168 '../third_party/externals/poppler/goo',
169
170 '../third_party/poppler/config',
171 ],
172 'sources': [
173 '../third_party/externals/poppler/cpp/PNMWriter.cc',
174 '../third_party/externals/poppler/cpp/poppler-document.cpp',
175 '../third_party/externals/poppler/cpp/poppler-embedded-file.cpp',
176 '../third_party/externals/poppler/cpp/poppler-font.cpp',
177 '../third_party/externals/poppler/cpp/poppler-global.cpp',
178 '../third_party/externals/poppler/cpp/poppler-image.cpp',
179 '../third_party/externals/poppler/cpp/poppler-page.cpp',
180 '../third_party/externals/poppler/cpp/poppler-page-renderer.cpp',
181 '../third_party/externals/poppler/cpp/poppler-page-transition.cpp',
182 '../third_party/externals/poppler/cpp/poppler-private.cpp',
183 '../third_party/externals/poppler/cpp/poppler-toc.cpp',
184 ],
185 'defines': [
186 'poppler_cpp_EXPORTS',
187 ],
188 'direct_dependent_settings': {
189 'include_dirs': [
190 '../third_party/externals/poppler/cpp',
191 ],
192 },
193 'conditions': [
194 ['skia_os == "linux"', {
195 'include_dirs': [
196 '../third_party/poppler/config/linux',
197 ],
198 'cflags': [
199 '-fPIC',
200 ],
201 }],
202 ['skia_os == "mac"', {
203 'include_dirs': [
204 '../third_party/poppler/config/mac',
205 ],
206 'libraries':[
207 '$(SDKROOT)/usr/lib/libiconv.dylib',
208 '$(SDKROOT)/usr/lib/libexpat.dylib',
209 ],
210 'xcode_settings': {
211 'DYLIB_INSTALL_NAME_BASE': '@executable_path',
212 'OTHER_CPLUSPLUSFLAGS!': [
213 # poppler doesn't do gcc-style exports
214 '-fvisibility=hidden',
215 ],
216 },
217 }],
218 ['skia_os == "win"', {
219 'dependencies': [
220 'iconv.gyp:iconv',
221 ],
222 'include_dirs': [
223 '../third_party/poppler/config/windows',
224 ],
225 }],
226 ],
227 },
228 ],
229 }
OLDNEW
« no previous file with comments | « gyp/iconv.gyp ('k') | src/utils/SkPDFRasterizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698