| OLD | NEW |
| 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") | 5 import("../pdfium.gni") |
| 6 | 6 |
| 7 group("third_party") { | 7 group("third_party") { |
| 8 deps = [ | 8 deps = [ |
| 9 ":bigint", | 9 ":bigint", |
| 10 ":fx_freetype", | 10 ":fx_freetype", |
| 11 ":pdfium_base", | 11 ":pdfium_base", |
| 12 ] | 12 ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 source_set("bigint") { | 15 source_set("bigint") { |
| 16 configs -= [ "//build/config/compiler:chromium_code" ] | 16 configs -= [ "//build/config/compiler:chromium_code" ] |
| 17 configs += [ | 17 configs += [ |
| 18 "//build/config/compiler:no_chromium_code", | 18 "//build/config/compiler:no_chromium_code", |
| 19 "../:pdfium_config", | 19 "../:pdfium_third_party_config", |
| 20 ] | 20 ] |
| 21 sources = [ | 21 sources = [ |
| 22 "bigint/BigInteger.cc", | 22 "bigint/BigInteger.cc", |
| 23 "bigint/BigInteger.hh", | 23 "bigint/BigInteger.hh", |
| 24 "bigint/BigIntegerLibrary.hh", | 24 "bigint/BigIntegerLibrary.hh", |
| 25 "bigint/BigIntegerUtils.cc", | 25 "bigint/BigIntegerUtils.cc", |
| 26 "bigint/BigIntegerUtils.hh", | 26 "bigint/BigIntegerUtils.hh", |
| 27 "bigint/BigUnsigned.cc", | 27 "bigint/BigUnsigned.cc", |
| 28 "bigint/BigUnsigned.hh", | 28 "bigint/BigUnsigned.hh", |
| 29 "bigint/BigUnsignedInABase.cc", | 29 "bigint/BigUnsignedInABase.cc", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 40 cflags = [ "-Wno-unused-function" ] | 40 cflags = [ "-Wno-unused-function" ] |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 # Tests may link against this even if the production library doesn't, | 44 # Tests may link against this even if the production library doesn't, |
| 45 # so it needs to be separate from it. | 45 # so it needs to be separate from it. |
| 46 static_library("fx_freetype") { | 46 static_library("fx_freetype") { |
| 47 configs -= [ "//build/config/compiler:chromium_code" ] | 47 configs -= [ "//build/config/compiler:chromium_code" ] |
| 48 configs += [ | 48 configs += [ |
| 49 "//build/config/compiler:no_chromium_code", | 49 "//build/config/compiler:no_chromium_code", |
| 50 "../:pdfium_config", | 50 "../:pdfium_third_party_config", |
| 51 | 51 |
| 52 # 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. |
| 53 ":fx_freetype_warnings", | 53 ":fx_freetype_warnings", |
| 54 ] | 54 ] |
| 55 defines = [ "FT2_BUILD_LIBRARY" ] | 55 defines = [ "FT2_BUILD_LIBRARY" ] |
| 56 sources = [ | 56 sources = [ |
| 57 "freetype/include/freetype/freetype.h", | 57 "freetype/include/freetype/freetype.h", |
| 58 "freetype/include/freetype/ftmm.h", | 58 "freetype/include/freetype/ftmm.h", |
| 59 "freetype/include/freetype/ftotval.h", | 59 "freetype/include/freetype/ftotval.h", |
| 60 "freetype/include/freetype/ftoutln.h", | 60 "freetype/include/freetype/ftoutln.h", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 if (is_clang) { | 92 if (is_clang) { |
| 93 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. | 93 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. |
| 94 cflags = [ "-Wno-unused-function" ] | 94 cflags = [ "-Wno-unused-function" ] |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 source_set("fx_agg") { | 98 source_set("fx_agg") { |
| 99 configs -= [ "//build/config/compiler:chromium_code" ] | 99 configs -= [ "//build/config/compiler:chromium_code" ] |
| 100 configs += [ | 100 configs += [ |
| 101 "//build/config/compiler:no_chromium_code", | 101 "//build/config/compiler:no_chromium_code", |
| 102 "../:pdfium_config", | 102 "../:pdfium_third_party_config", |
| 103 | 103 |
| 104 # Must be after no_chromium_code for warning flags to be ordered correctly
. | 104 # Must be after no_chromium_code for warning flags to be ordered correctly
. |
| 105 ":fx_agg_warnings", | 105 ":fx_agg_warnings", |
| 106 ] | 106 ] |
| 107 sources = [ | 107 sources = [ |
| 108 "agg23/agg_basics.h", | 108 "agg23/agg_basics.h", |
| 109 "agg23/agg_clip_liang_barsky.h", | 109 "agg23/agg_clip_liang_barsky.h", |
| 110 "agg23/agg_conv_dash.h", | 110 "agg23/agg_conv_dash.h", |
| 111 "agg23/agg_conv_stroke.h", | 111 "agg23/agg_conv_stroke.h", |
| 112 "agg23/agg_curves.cpp", | 112 "agg23/agg_curves.cpp", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 135 # FindPrev() in cmsplugin.c is unused. | 135 # FindPrev() in cmsplugin.c is unused. |
| 136 "-Wno-unused-function", | 136 "-Wno-unused-function", |
| 137 ] | 137 ] |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 source_set("fx_lcms2") { | 141 source_set("fx_lcms2") { |
| 142 configs -= [ "//build/config/compiler:chromium_code" ] | 142 configs -= [ "//build/config/compiler:chromium_code" ] |
| 143 configs += [ | 143 configs += [ |
| 144 "//build/config/compiler:no_chromium_code", | 144 "//build/config/compiler:no_chromium_code", |
| 145 "../:pdfium_config", | 145 "../:pdfium_third_party_config", |
| 146 | 146 |
| 147 # Must be after no_chromium_code for warning flags to be ordered correctly. | 147 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 148 ":fx_lcms2_warnings", | 148 ":fx_lcms2_warnings", |
| 149 ] | 149 ] |
| 150 sources = [ | 150 sources = [ |
| 151 "lcms2-2.6/include/lcms2.h", | 151 "lcms2-2.6/include/lcms2.h", |
| 152 "lcms2-2.6/include/lcms2_plugin.h", | 152 "lcms2-2.6/include/lcms2_plugin.h", |
| 153 "lcms2-2.6/src/cmscam02.c", | 153 "lcms2-2.6/src/cmscam02.c", |
| 154 "lcms2-2.6/src/cmscgats.c", | 154 "lcms2-2.6/src/cmscgats.c", |
| 155 "lcms2-2.6/src/cmscnvrt.c", | 155 "lcms2-2.6/src/cmscnvrt.c", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 183 visibility = [ ":*" ] | 183 visibility = [ ":*" ] |
| 184 if (is_clang) { | 184 if (is_clang) { |
| 185 cflags = [ "-Wno-shift-negative-value" ] | 185 cflags = [ "-Wno-shift-negative-value" ] |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 | 188 |
| 189 source_set("jpeg") { | 189 source_set("jpeg") { |
| 190 configs -= [ "//build/config/compiler:chromium_code" ] | 190 configs -= [ "//build/config/compiler:chromium_code" ] |
| 191 configs += [ | 191 configs += [ |
| 192 "//build/config/compiler:no_chromium_code", | 192 "//build/config/compiler:no_chromium_code", |
| 193 "../:pdfium_config", | 193 "../:pdfium_third_party_config", |
| 194 | 194 |
| 195 # Must be after no_chromium_code for warning flags to be ordered correctly. | 195 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 196 ":jpeg_warnings", | 196 ":jpeg_warnings", |
| 197 ] | 197 ] |
| 198 sources = [ | 198 sources = [ |
| 199 "libjpeg/cderror.h", | 199 "libjpeg/cderror.h", |
| 200 "libjpeg/cdjpeg.h", | 200 "libjpeg/cdjpeg.h", |
| 201 "libjpeg/fpdfapi_jcapimin.c", | 201 "libjpeg/fpdfapi_jcapimin.c", |
| 202 "libjpeg/fpdfapi_jcapistd.c", | 202 "libjpeg/fpdfapi_jcapistd.c", |
| 203 "libjpeg/fpdfapi_jccoefct.c", | 203 "libjpeg/fpdfapi_jccoefct.c", |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 # Signed/unsigned comparisons. | 261 # Signed/unsigned comparisons. |
| 262 "/wd4018", | 262 "/wd4018", |
| 263 ] | 263 ] |
| 264 } | 264 } |
| 265 } | 265 } |
| 266 | 266 |
| 267 source_set("fx_libopenjpeg") { | 267 source_set("fx_libopenjpeg") { |
| 268 configs -= [ "//build/config/compiler:chromium_code" ] | 268 configs -= [ "//build/config/compiler:chromium_code" ] |
| 269 configs += [ | 269 configs += [ |
| 270 "//build/config/compiler:no_chromium_code", | 270 "//build/config/compiler:no_chromium_code", |
| 271 "../:pdfium_config", | 271 "../:pdfium_third_party_config", |
| 272 | 272 |
| 273 # Must be after no_chromium_code for warning flags to be ordered correctly. | 273 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 274 ":fx_libopenjpeg_warnings", | 274 ":fx_libopenjpeg_warnings", |
| 275 ] | 275 ] |
| 276 sources = [ | 276 sources = [ |
| 277 "libopenjpeg20/bio.c", | 277 "libopenjpeg20/bio.c", |
| 278 "libopenjpeg20/cio.c", | 278 "libopenjpeg20/cio.c", |
| 279 "libopenjpeg20/dwt.c", | 279 "libopenjpeg20/dwt.c", |
| 280 "libopenjpeg20/event.c", | 280 "libopenjpeg20/event.c", |
| 281 "libopenjpeg20/function_list.c", | 281 "libopenjpeg20/function_list.c", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 293 "libopenjpeg20/t2.c", | 293 "libopenjpeg20/t2.c", |
| 294 "libopenjpeg20/tcd.c", | 294 "libopenjpeg20/tcd.c", |
| 295 "libopenjpeg20/tgt.c", | 295 "libopenjpeg20/tgt.c", |
| 296 ] | 296 ] |
| 297 } | 297 } |
| 298 | 298 |
| 299 source_set("fx_lpng") { | 299 source_set("fx_lpng") { |
| 300 configs -= [ "//build/config/compiler:chromium_code" ] | 300 configs -= [ "//build/config/compiler:chromium_code" ] |
| 301 configs += [ | 301 configs += [ |
| 302 "//build/config/compiler:no_chromium_code", | 302 "//build/config/compiler:no_chromium_code", |
| 303 "../:pdfium_config", | 303 "../:pdfium_third_party_config", |
| 304 ] | 304 ] |
| 305 sources = [ | 305 sources = [ |
| 306 "libpng16/png.c", | 306 "libpng16/png.c", |
| 307 "libpng16/png.h", | 307 "libpng16/png.h", |
| 308 "libpng16/pngconf.h", | 308 "libpng16/pngconf.h", |
| 309 "libpng16/pngdebug.h", | 309 "libpng16/pngdebug.h", |
| 310 "libpng16/pngerror.c", | 310 "libpng16/pngerror.c", |
| 311 "libpng16/pngget.c", | 311 "libpng16/pngget.c", |
| 312 "libpng16/pnginfo.h", | 312 "libpng16/pnginfo.h", |
| 313 "libpng16/pnglibconf.h", | 313 "libpng16/pnglibconf.h", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 327 "libpng16/pngwtran.c", | 327 "libpng16/pngwtran.c", |
| 328 "libpng16/pngwutil.c", | 328 "libpng16/pngwutil.c", |
| 329 ] | 329 ] |
| 330 } | 330 } |
| 331 | 331 |
| 332 if (pdf_enable_xfa) { | 332 if (pdf_enable_xfa) { |
| 333 source_set("fx_tiff") { | 333 source_set("fx_tiff") { |
| 334 configs -= [ "//build/config/compiler:chromium_code" ] | 334 configs -= [ "//build/config/compiler:chromium_code" ] |
| 335 configs += [ | 335 configs += [ |
| 336 "//build/config/compiler:no_chromium_code", | 336 "//build/config/compiler:no_chromium_code", |
| 337 "../:pdfium_config", | 337 "../:pdfium_third_party_config", |
| 338 ] | 338 ] |
| 339 if (is_win) { | 339 if (is_win) { |
| 340 # Need to undefine the macro since it is redefined in | 340 # Need to undefine the macro since it is redefined in |
| 341 # tif_ojpeg.c and tif_jpeg.c. | 341 # tif_ojpeg.c and tif_jpeg.c. |
| 342 configs -= [ "//build/config/win:lean_and_mean" ] | 342 configs -= [ "//build/config/win:lean_and_mean" ] |
| 343 } | 343 } |
| 344 deps = [ | 344 deps = [ |
| 345 "//third_party:jpeg", | 345 "//third_party:jpeg", |
| 346 ] | 346 ] |
| 347 sources = [ | 347 sources = [ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 visibility = [ ":*" ] | 391 visibility = [ ":*" ] |
| 392 if (is_clang) { | 392 if (is_clang) { |
| 393 cflags = [ "-Wno-shift-negative-value" ] | 393 cflags = [ "-Wno-shift-negative-value" ] |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 | 396 |
| 397 source_set("fx_zlib") { | 397 source_set("fx_zlib") { |
| 398 configs -= [ "//build/config/compiler:chromium_code" ] | 398 configs -= [ "//build/config/compiler:chromium_code" ] |
| 399 configs += [ | 399 configs += [ |
| 400 "//build/config/compiler:no_chromium_code", | 400 "//build/config/compiler:no_chromium_code", |
| 401 "../:pdfium_config", | 401 "../:pdfium_third_party_config", |
| 402 | 402 |
| 403 # Must be after no_chromium_code for warning flags to be ordered correctly. | 403 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 404 ":fx_zlib_warnings", | 404 ":fx_zlib_warnings", |
| 405 ] | 405 ] |
| 406 sources = [ | 406 sources = [ |
| 407 "zlib_v128/adler32.c", | 407 "zlib_v128/adler32.c", |
| 408 "zlib_v128/compress.c", | 408 "zlib_v128/compress.c", |
| 409 "zlib_v128/crc32.c", | 409 "zlib_v128/crc32.c", |
| 410 "zlib_v128/deflate.c", | 410 "zlib_v128/deflate.c", |
| 411 "zlib_v128/gzclose.c", | 411 "zlib_v128/gzclose.c", |
| 412 "zlib_v128/gzlib.c", | 412 "zlib_v128/gzlib.c", |
| 413 "zlib_v128/gzread.c", | 413 "zlib_v128/gzread.c", |
| 414 "zlib_v128/gzwrite.c", | 414 "zlib_v128/gzwrite.c", |
| 415 "zlib_v128/infback.c", | 415 "zlib_v128/infback.c", |
| 416 "zlib_v128/inffast.c", | 416 "zlib_v128/inffast.c", |
| 417 "zlib_v128/inflate.c", | 417 "zlib_v128/inflate.c", |
| 418 "zlib_v128/inftrees.c", | 418 "zlib_v128/inftrees.c", |
| 419 "zlib_v128/trees.c", | 419 "zlib_v128/trees.c", |
| 420 "zlib_v128/uncompr.c", | 420 "zlib_v128/uncompr.c", |
| 421 "zlib_v128/zutil.c", | 421 "zlib_v128/zutil.c", |
| 422 ] | 422 ] |
| 423 } | 423 } |
| 424 | 424 |
| 425 source_set("pdfium_base") { | 425 source_set("pdfium_base") { |
| 426 configs -= [ "//build/config/compiler:chromium_code" ] | 426 configs -= [ "//build/config/compiler:chromium_code" ] |
| 427 configs += [ | 427 configs += [ |
| 428 "//build/config/compiler:no_chromium_code", | 428 "//build/config/compiler:no_chromium_code", |
| 429 "../:pdfium_config", | 429 "../:pdfium_third_party_config", |
| 430 ] | 430 ] |
| 431 sources = [ | 431 sources = [ |
| 432 "base/logging.h", | 432 "base/logging.h", |
| 433 "base/macros.h", | 433 "base/macros.h", |
| 434 "base/numerics/safe_conversions.h", | 434 "base/numerics/safe_conversions.h", |
| 435 "base/numerics/safe_conversions_impl.h", | 435 "base/numerics/safe_conversions_impl.h", |
| 436 "base/numerics/safe_math.h", | 436 "base/numerics/safe_math.h", |
| 437 "base/numerics/safe_math_impl.h", | 437 "base/numerics/safe_math_impl.h", |
| 438 "base/stl_util.h", | 438 "base/stl_util.h", |
| 439 ] | 439 ] |
| 440 } | 440 } |
| OLD | NEW |