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

Side by Side Diff: third_party/BUILD.gn

Issue 1514633002: XFA: Fix win8 gn build under chromium checkout (non-xfa) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years 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
« no previous file with comments | « BUILD.gn ('k') | third_party/base/logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("../pdfium.gni")
6
5 group("third_party") { 7 group("third_party") {
6 deps = [ 8 deps = [
7 ":bigint", 9 ":bigint",
8 ":fx_freetype", 10 ":fx_freetype",
9 ":pdfium_base", 11 ":pdfium_base",
10 ] 12 ]
11 } 13 }
12 14
13 static_library("bigint") { 15 source_set("bigint") {
14 configs -= [ "//build/config/compiler:chromium_code" ] 16 configs -= [ "//build/config/compiler:chromium_code" ]
15 configs += [ 17 configs += [
16 "//build/config/compiler:no_chromium_code", 18 "//build/config/compiler:no_chromium_code",
17 "//third_party/pdfium:pdfium_config", 19 "//third_party/pdfium:pdfium_config",
18 ] 20 ]
19 sources = [ 21 sources = [
22 "bigint/BigInteger.cc",
20 "bigint/BigInteger.hh", 23 "bigint/BigInteger.hh",
21 "bigint/BigIntegerLibrary.hh", 24 "bigint/BigIntegerLibrary.hh",
25 "bigint/BigIntegerUtils.cc",
22 "bigint/BigIntegerUtils.hh", 26 "bigint/BigIntegerUtils.hh",
27 "bigint/BigUnsigned.cc",
23 "bigint/BigUnsigned.hh", 28 "bigint/BigUnsigned.hh",
29 "bigint/BigUnsignedInABase.cc",
30 "bigint/BigUnsignedInABase.hh",
24 "bigint/NumberlikeArray.hh", 31 "bigint/NumberlikeArray.hh",
25 "bigint/BigUnsignedInABase.hh",
26 "bigint/BigInteger.cc",
27 "bigint/BigIntegerUtils.cc",
28 "bigint/BigUnsigned.cc",
29 "bigint/BigUnsignedInABase.cc",
30 ] 32 ]
31 } 33 }
32 34
33 config("fx_freetype_warnings") { 35 config("fx_freetype_warnings") {
34 visibility = [ ":*" ] 36 visibility = [ ":*" ]
35 if (is_clang) { 37 if (is_clang) {
36 # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in 38 # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
37 # ftbase.h are unused. 39 # ftbase.h are unused.
38 cflags = [ "-Wno-unused-function" ] 40 cflags = [ "-Wno-unused-function" ]
39 } 41 }
40 } 42 }
41 43
42 source_set("fx_freetype") { 44 # Tests may link against this even if the production library doesn't,
45 # so it needs to be separate from it.
46 static_library("fx_freetype") {
43 configs -= [ "//build/config/compiler:chromium_code" ] 47 configs -= [ "//build/config/compiler:chromium_code" ]
44 configs += [ 48 configs += [
45 "//build/config/compiler:no_chromium_code", 49 "//build/config/compiler:no_chromium_code",
46 "//third_party/pdfium:pdfium_config", 50 "//third_party/pdfium:pdfium_config",
47 51
48 # Must be after no_chromium_code for warning flags to be ordered correctly. 52 # Must be after no_chromium_code for warning flags to be ordered correctly.
49 ":fx_freetype_warnings", 53 ":fx_freetype_warnings",
50 ] 54 ]
51 defines = [ "FT2_BUILD_LIBRARY" ] 55 defines = [ "FT2_BUILD_LIBRARY" ]
52 sources = [ 56 sources = [
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 "agg23/agg_rasterizer_scanline_aa.h", 116 "agg23/agg_rasterizer_scanline_aa.h",
113 "agg23/agg_renderer_scanline.h", 117 "agg23/agg_renderer_scanline.h",
114 "agg23/agg_rendering_buffer.h", 118 "agg23/agg_rendering_buffer.h",
115 "agg23/agg_scanline_u.h", 119 "agg23/agg_scanline_u.h",
116 "agg23/agg_vcgen_dash.cpp", 120 "agg23/agg_vcgen_dash.cpp",
117 "agg23/agg_vcgen_stroke.cpp", 121 "agg23/agg_vcgen_stroke.cpp",
118 ] 122 ]
119 } 123 }
120 124
121 config("fx_lcms2_warnings") { 125 config("fx_lcms2_warnings") {
126 visibility = [ ":*" ]
122 if (is_clang) { 127 if (is_clang) {
123 cflags = [ 128 cflags = [
124 # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this 129 # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this
125 # library doesn't appear to have this problem. 130 # library doesn't appear to have this problem.
126 "-Wno-missing-braces", 131 "-Wno-missing-braces",
127 132
128 # FindPrev() in cmsplugin.c is unused. 133 # FindPrev() in cmsplugin.c is unused.
129 "-Wno-unused-function", 134 "-Wno-unused-function",
130 ] 135 ]
131 } 136 }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 "lpng_v163/pngrutil.c", 290 "lpng_v163/pngrutil.c",
286 "lpng_v163/pngset.c", 291 "lpng_v163/pngset.c",
287 "lpng_v163/pngtrans.c", 292 "lpng_v163/pngtrans.c",
288 "lpng_v163/pngwio.c", 293 "lpng_v163/pngwio.c",
289 "lpng_v163/pngwrite.c", 294 "lpng_v163/pngwrite.c",
290 "lpng_v163/pngwtran.c", 295 "lpng_v163/pngwtran.c",
291 "lpng_v163/pngwutil.c", 296 "lpng_v163/pngwutil.c",
292 ] 297 ]
293 } 298 }
294 299
295 source_set("fx_tiff") { 300 if (pdf_enable_xfa) {
296 configs -= [ "//build/config/compiler:chromium_code" ] 301 source_set("fx_tiff") {
297 configs += [ 302 configs -= [ "//build/config/compiler:chromium_code" ]
298 "//build/config/compiler:no_chromium_code", 303 configs += [
299 "//third_party/pdfium:pdfium_config", 304 "//build/config/compiler:no_chromium_code",
300 ] 305 "//third_party/pdfium:pdfium_config",
301 sources = [ 306 ]
302 "tiff_v403/tiffiop.h", 307 sources = [
303 "tiff_v403/tif_aux.c", 308 "tiff_v403/tiffiop.h",
304 "tiff_v403/tif_close.c", 309 "tiff_v403/tif_aux.c",
305 "tiff_v403/tif_codec.c", 310 "tiff_v403/tif_close.c",
306 "tiff_v403/tif_color.c", 311 "tiff_v403/tif_codec.c",
307 "tiff_v403/tif_compress.c", 312 "tiff_v403/tif_color.c",
308 "tiff_v403/tif_dir.c", 313 "tiff_v403/tif_compress.c",
309 "tiff_v403/tif_dirinfo.c", 314 "tiff_v403/tif_dir.c",
310 "tiff_v403/tif_dirread.c", 315 "tiff_v403/tif_dirinfo.c",
311 "tiff_v403/tif_dirwrite.c", 316 "tiff_v403/tif_dirread.c",
312 "tiff_v403/tif_dumpmode.c", 317 "tiff_v403/tif_dirwrite.c",
313 "tiff_v403/tif_error.c", 318 "tiff_v403/tif_dumpmode.c",
314 "tiff_v403/tif_extension.c", 319 "tiff_v403/tif_error.c",
315 "tiff_v403/tif_fax3.c", 320 "tiff_v403/tif_extension.c",
316 "tiff_v403/tif_fax3sm.c", 321 "tiff_v403/tif_fax3.c",
317 "tiff_v403/tif_flush.c", 322 "tiff_v403/tif_fax3sm.c",
318 "tiff_v403/tif_getimage.c", 323 "tiff_v403/tif_flush.c",
319 "tiff_v403/tif_jpeg.c", 324 "tiff_v403/tif_getimage.c",
320 "tiff_v403/tif_luv.c", 325 "tiff_v403/tif_jpeg.c",
321 "tiff_v403/tif_lzw.c", 326 "tiff_v403/tif_luv.c",
322 "tiff_v403/tif_next.c", 327 "tiff_v403/tif_lzw.c",
323 "tiff_v403/tif_ojpeg.c", 328 "tiff_v403/tif_next.c",
324 "tiff_v403/tif_open.c", 329 "tiff_v403/tif_ojpeg.c",
325 "tiff_v403/tif_packbits.c", 330 "tiff_v403/tif_open.c",
326 "tiff_v403/tif_pixarlog.c", 331 "tiff_v403/tif_packbits.c",
327 "tiff_v403/tif_predict.c", 332 "tiff_v403/tif_pixarlog.c",
328 "tiff_v403/tif_print.c", 333 "tiff_v403/tif_predict.c",
329 "tiff_v403/tif_read.c", 334 "tiff_v403/tif_print.c",
330 "tiff_v403/tif_strip.c", 335 "tiff_v403/tif_read.c",
331 "tiff_v403/tif_swab.c", 336 "tiff_v403/tif_strip.c",
332 "tiff_v403/tif_thunder.c", 337 "tiff_v403/tif_swab.c",
333 "tiff_v403/tif_tile.c", 338 "tiff_v403/tif_thunder.c",
334 "tiff_v403/tif_version.c", 339 "tiff_v403/tif_tile.c",
335 "tiff_v403/tif_warning.c", 340 "tiff_v403/tif_version.c",
336 "tiff_v403/tif_write.c", 341 "tiff_v403/tif_warning.c",
337 "tiff_v403/tif_zip.c", 342 "tiff_v403/tif_write.c",
338 ] 343 "tiff_v403/tif_zip.c",
344 ]
345 }
339 } 346 }
340 347
341 source_set("fx_zlib") { 348 source_set("fx_zlib") {
342 configs -= [ "//build/config/compiler:chromium_code" ] 349 configs -= [ "//build/config/compiler:chromium_code" ]
343 configs += [ 350 configs += [
344 "//build/config/compiler:no_chromium_code", 351 "//build/config/compiler:no_chromium_code",
345 "//third_party/pdfium:pdfium_config", 352 "//third_party/pdfium:pdfium_config",
346 ] 353 ]
347 sources = [ 354 sources = [
348 "zlib_v128/adler32.c", 355 "zlib_v128/adler32.c",
(...skipping 25 matching lines...) Expand all
374 "base/macros.h", 381 "base/macros.h",
375 "base/nonstd_unique_ptr.h", 382 "base/nonstd_unique_ptr.h",
376 "base/numerics/safe_conversions.h", 383 "base/numerics/safe_conversions.h",
377 "base/numerics/safe_conversions_impl.h", 384 "base/numerics/safe_conversions_impl.h",
378 "base/numerics/safe_math.h", 385 "base/numerics/safe_math.h",
379 "base/numerics/safe_math_impl.h", 386 "base/numerics/safe_math_impl.h",
380 "base/stl_util.h", 387 "base/stl_util.h",
381 "base/template_util.h", 388 "base/template_util.h",
382 ] 389 ]
383 } 390 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | third_party/base/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698