| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("pdfium.gni") | 6 import("pdfium.gni") |
| 7 | 7 |
| 8 config("pdfium_config") { | 8 config("pdfium_config") { |
| 9 cflags = [] | 9 cflags = [] |
| 10 include_dirs = [ | 10 include_dirs = [ |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (is_win) { | 44 if (is_win) { |
| 45 cflags += [ | 45 cflags += [ |
| 46 "/wd4005", | 46 "/wd4005", |
| 47 "/wd4018", | 47 "/wd4018", |
| 48 "/wd4146", | 48 "/wd4146", |
| 49 "/wd4333", | 49 "/wd4333", |
| 50 "/wd4345", | 50 "/wd4345", |
| 51 "/wd4267", |
| 52 # TODO(thestig): Fix all instances, remove this, pdfium:29 |
| 53 "/wd4245", |
| 54 "/wd4310", |
| 55 "/wd4389", |
| 56 "/wd4701", |
| 57 "/wd4702", |
| 58 "/wd4706", |
| 59 "/wd4800", |
| 51 ] | 60 ] |
| 52 } | 61 } |
| 62 |
| 63 if (is_clang) { |
| 64 # TODO(thestig): Fix all instances, remove this, pdfium:29 |
| 65 cflags += [ "-Wno-sign-compare" ] |
| 66 } |
| 53 } | 67 } |
| 54 | 68 |
| 55 static_library("pdfium") { | 69 static_library("pdfium") { |
| 56 sources = [ | 70 sources = [ |
| 57 "fpdfsdk/include/fsdk_actionhandler.h", | 71 "fpdfsdk/include/fsdk_actionhandler.h", |
| 58 "fpdfsdk/include/fsdk_annothandler.h", | 72 "fpdfsdk/include/fsdk_annothandler.h", |
| 59 "fpdfsdk/include/fsdk_baseannot.h", | 73 "fpdfsdk/include/fsdk_baseannot.h", |
| 60 "fpdfsdk/include/fsdk_baseform.h", | 74 "fpdfsdk/include/fsdk_baseform.h", |
| 61 "fpdfsdk/src/fpdf_dataavail.cpp", | 75 "fpdfsdk/src/fpdf_dataavail.cpp", |
| 62 "fpdfsdk/src/fpdf_ext.cpp", | 76 "fpdfsdk/src/fpdf_ext.cpp", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 90 "public/fpdf_progressive.h", | 104 "public/fpdf_progressive.h", |
| 91 "public/fpdf_save.h", | 105 "public/fpdf_save.h", |
| 92 "public/fpdf_searchex.h", | 106 "public/fpdf_searchex.h", |
| 93 "public/fpdf_sysfontinfo.h", | 107 "public/fpdf_sysfontinfo.h", |
| 94 "public/fpdf_text.h", | 108 "public/fpdf_text.h", |
| 95 "public/fpdf_transformpage.h", | 109 "public/fpdf_transformpage.h", |
| 96 "public/fpdfview.h", | 110 "public/fpdfview.h", |
| 97 ] | 111 ] |
| 98 | 112 |
| 99 libs = [] | 113 libs = [] |
| 100 configs -= [ "//build/config/compiler:chromium_code" ] | 114 configs += [ ":pdfium_config" ] |
| 101 configs += [ | |
| 102 ":pdfium_config", | |
| 103 "//build/config/compiler:no_chromium_code", | |
| 104 ] | |
| 105 | 115 |
| 106 deps = [ | 116 deps = [ |
| 107 "third_party:bigint", | 117 "third_party:bigint", |
| 108 "third_party:pdfium_base", | 118 "third_party:pdfium_base", |
| 109 ":fdrm", | 119 ":fdrm", |
| 110 ":formfiller", | 120 ":formfiller", |
| 111 ":fpdfapi", | 121 ":fpdfapi", |
| 112 ":fpdfdoc", | 122 ":fpdfdoc", |
| 113 ":fpdftext", | 123 ":fpdftext", |
| 114 ":fpdfxfa", | 124 ":fpdfxfa", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 if (pdf_enable_v8) { | 175 if (pdf_enable_v8) { |
| 166 deps += [ | 176 deps += [ |
| 167 "//v8", | 177 "//v8", |
| 168 "//v8:v8_libplatform", | 178 "//v8:v8_libplatform", |
| 169 ] | 179 ] |
| 170 include_dirs += [ | 180 include_dirs += [ |
| 171 "//v8", | 181 "//v8", |
| 172 "//v8/include", | 182 "//v8/include", |
| 173 ] | 183 ] |
| 174 } | 184 } |
| 175 configs -= [ "//build/config/compiler:chromium_code" ] | 185 configs += [ ":pdfium_config" ] |
| 176 configs += [ | |
| 177 ":pdfium_config", | |
| 178 "//build/config/compiler:no_chromium_code", | |
| 179 ] | |
| 180 } | 186 } |
| 181 | 187 |
| 182 # Targets below this are only visible within this file (and to the | 188 # Targets below this are only visible within this file (and to the |
| 183 # top-level gn_visibility target used to help gn_all build everything). | 189 # top-level gn_visibility target used to help gn_all build everything). |
| 184 visibility = [ | 190 visibility = [ |
| 185 ":*", | 191 ":*", |
| 186 "//:gn_visibility", | 192 "//:gn_visibility", |
| 187 ] | 193 ] |
| 188 | 194 |
| 189 static_library("fdrm") { | 195 static_library("fdrm") { |
| 190 sources = [ | 196 sources = [ |
| 191 "core/include/fdrm/fx_crypt.h", | 197 "core/include/fdrm/fx_crypt.h", |
| 192 "core/src/fdrm/crypto/fx_crypt.cpp", | 198 "core/src/fdrm/crypto/fx_crypt.cpp", |
| 193 "core/src/fdrm/crypto/fx_crypt_aes.cpp", | 199 "core/src/fdrm/crypto/fx_crypt_aes.cpp", |
| 194 "core/src/fdrm/crypto/fx_crypt_sha.cpp", | 200 "core/src/fdrm/crypto/fx_crypt_sha.cpp", |
| 195 ] | 201 ] |
| 196 configs -= [ "//build/config/compiler:chromium_code" ] | 202 configs += [ ":pdfium_config" ] |
| 197 configs += [ | |
| 198 ":pdfium_config", | |
| 199 "//build/config/compiler:no_chromium_code", | |
| 200 ] | |
| 201 } | 203 } |
| 202 | 204 |
| 203 static_library("fpdfdoc") { | 205 static_library("fpdfdoc") { |
| 204 sources = [ | 206 sources = [ |
| 205 "core/include/fpdfdoc/fpdf_ap.h", | 207 "core/include/fpdfdoc/fpdf_ap.h", |
| 206 "core/include/fpdfdoc/fpdf_doc.h", | 208 "core/include/fpdfdoc/fpdf_doc.h", |
| 207 "core/include/fpdfdoc/fpdf_tagged.h", | 209 "core/include/fpdfdoc/fpdf_tagged.h", |
| 208 "core/include/fpdfdoc/fpdf_vt.h", | 210 "core/include/fpdfdoc/fpdf_vt.h", |
| 209 "core/src/fpdfdoc/doc_action.cpp", | 211 "core/src/fpdfdoc/doc_action.cpp", |
| 210 "core/src/fpdfdoc/doc_annot.cpp", | 212 "core/src/fpdfdoc/doc_annot.cpp", |
| 211 "core/src/fpdfdoc/doc_ap.cpp", | 213 "core/src/fpdfdoc/doc_ap.cpp", |
| 212 "core/src/fpdfdoc/doc_basic.cpp", | 214 "core/src/fpdfdoc/doc_basic.cpp", |
| 213 "core/src/fpdfdoc/doc_bookmark.cpp", | 215 "core/src/fpdfdoc/doc_bookmark.cpp", |
| 214 "core/src/fpdfdoc/doc_form.cpp", | 216 "core/src/fpdfdoc/doc_form.cpp", |
| 215 "core/src/fpdfdoc/doc_formcontrol.cpp", | 217 "core/src/fpdfdoc/doc_formcontrol.cpp", |
| 216 "core/src/fpdfdoc/doc_formfield.cpp", | 218 "core/src/fpdfdoc/doc_formfield.cpp", |
| 217 "core/src/fpdfdoc/doc_link.cpp", | 219 "core/src/fpdfdoc/doc_link.cpp", |
| 218 "core/src/fpdfdoc/doc_metadata.cpp", | 220 "core/src/fpdfdoc/doc_metadata.cpp", |
| 219 "core/src/fpdfdoc/doc_ocg.cpp", | 221 "core/src/fpdfdoc/doc_ocg.cpp", |
| 220 "core/src/fpdfdoc/doc_tagged.cpp", | 222 "core/src/fpdfdoc/doc_tagged.cpp", |
| 221 "core/src/fpdfdoc/doc_utils.cpp", | 223 "core/src/fpdfdoc/doc_utils.cpp", |
| 222 "core/src/fpdfdoc/doc_utils.h", | 224 "core/src/fpdfdoc/doc_utils.h", |
| 223 "core/src/fpdfdoc/doc_viewerPreferences.cpp", | 225 "core/src/fpdfdoc/doc_viewerPreferences.cpp", |
| 224 "core/src/fpdfdoc/doc_vt.cpp", | 226 "core/src/fpdfdoc/doc_vt.cpp", |
| 225 "core/src/fpdfdoc/doc_vtmodule.cpp", | 227 "core/src/fpdfdoc/doc_vtmodule.cpp", |
| 226 "core/src/fpdfdoc/pdf_vt.h", | 228 "core/src/fpdfdoc/pdf_vt.h", |
| 227 "core/src/fpdfdoc/tagged_int.h", | 229 "core/src/fpdfdoc/tagged_int.h", |
| 228 ] | 230 ] |
| 229 configs -= [ "//build/config/compiler:chromium_code" ] | 231 configs += [ ":pdfium_config" ] |
| 230 configs += [ | |
| 231 ":pdfium_config", | |
| 232 "//build/config/compiler:no_chromium_code", | |
| 233 ] | |
| 234 } | 232 } |
| 235 | 233 |
| 236 static_library("fpdfapi") { | 234 static_library("fpdfapi") { |
| 237 sources = [ | 235 sources = [ |
| 238 "core/include/fpdfapi/fpdf_module.h", | 236 "core/include/fpdfapi/fpdf_module.h", |
| 239 "core/include/fpdfapi/fpdf_objects.h", | 237 "core/include/fpdfapi/fpdf_objects.h", |
| 240 "core/include/fpdfapi/fpdf_page.h", | 238 "core/include/fpdfapi/fpdf_page.h", |
| 241 "core/include/fpdfapi/fpdf_pageobj.h", | 239 "core/include/fpdfapi/fpdf_pageobj.h", |
| 242 "core/include/fpdfapi/fpdf_parser.h", | 240 "core/include/fpdfapi/fpdf_parser.h", |
| 243 "core/include/fpdfapi/fpdf_render.h", | 241 "core/include/fpdfapi/fpdf_render.h", |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp", | 337 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp", |
| 340 "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp", | 338 "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp", |
| 341 "core/src/fpdfapi/fpdf_render/fpdf_render.cpp", | 339 "core/src/fpdfapi/fpdf_render/fpdf_render.cpp", |
| 342 "core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp", | 340 "core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp", |
| 343 "core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp", | 341 "core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp", |
| 344 "core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp", | 342 "core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp", |
| 345 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp", | 343 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp", |
| 346 "core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp", | 344 "core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp", |
| 347 "core/src/fpdfapi/fpdf_render/render_int.h", | 345 "core/src/fpdfapi/fpdf_render/render_int.h", |
| 348 ] | 346 ] |
| 349 configs -= [ "//build/config/compiler:chromium_code" ] | 347 configs += [ ":pdfium_config" ] |
| 350 configs += [ | |
| 351 ":pdfium_config", | |
| 352 "//build/config/compiler:no_chromium_code", | |
| 353 ] | |
| 354 } | 348 } |
| 355 | 349 |
| 356 static_library("fpdftext") { | 350 static_library("fpdftext") { |
| 357 sources = [ | 351 sources = [ |
| 358 "core/include/fpdftext/fpdf_text.h", | 352 "core/include/fpdftext/fpdf_text.h", |
| 359 "core/src/fpdftext/fpdf_text.cpp", | 353 "core/src/fpdftext/fpdf_text.cpp", |
| 360 "core/src/fpdftext/fpdf_text_int.cpp", | 354 "core/src/fpdftext/fpdf_text_int.cpp", |
| 361 "core/src/fpdftext/fpdf_text_search.cpp", | 355 "core/src/fpdftext/fpdf_text_search.cpp", |
| 362 "core/src/fpdftext/text_int.h", | 356 "core/src/fpdftext/text_int.h", |
| 363 "core/src/fpdftext/txtproc.h", | 357 "core/src/fpdftext/txtproc.h", |
| 364 "core/src/fpdftext/unicodenormalization.cpp", | 358 "core/src/fpdftext/unicodenormalization.cpp", |
| 365 "core/src/fpdftext/unicodenormalizationdata.cpp", | 359 "core/src/fpdftext/unicodenormalizationdata.cpp", |
| 366 "core/src/fpdftext/unicodenormalizationdata.h", | 360 "core/src/fpdftext/unicodenormalizationdata.h", |
| 367 ] | 361 ] |
| 368 configs -= [ "//build/config/compiler:chromium_code" ] | 362 configs += [ ":pdfium_config" ] |
| 369 configs += [ | |
| 370 ":pdfium_config", | |
| 371 "//build/config/compiler:no_chromium_code", | |
| 372 ] | |
| 373 } | 363 } |
| 374 | 364 |
| 375 static_library("fxcodec") { | 365 static_library("fxcodec") { |
| 376 deps = [ | 366 deps = [ |
| 377 "third_party:fx_lcms2", | 367 "third_party:fx_lcms2", |
| 378 "third_party:fx_libjpeg", | 368 "third_party:fx_libjpeg", |
| 379 "third_party:fx_libopenjpeg", | 369 "third_party:fx_libopenjpeg", |
| 380 "third_party:fx_lpng", | 370 "third_party:fx_lpng", |
| 381 "third_party:fx_tiff", | 371 "third_party:fx_tiff", |
| 382 "third_party:fx_zlib", | 372 "third_party:fx_zlib", |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 "core/src/fxcodec/jbig2/JBig2_Segment.h", | 426 "core/src/fxcodec/jbig2/JBig2_Segment.h", |
| 437 "core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp", | 427 "core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp", |
| 438 "core/src/fxcodec/jbig2/JBig2_SymbolDict.h", | 428 "core/src/fxcodec/jbig2/JBig2_SymbolDict.h", |
| 439 "core/src/fxcodec/jbig2/JBig2_TrdProc.cpp", | 429 "core/src/fxcodec/jbig2/JBig2_TrdProc.cpp", |
| 440 "core/src/fxcodec/jbig2/JBig2_TrdProc.h", | 430 "core/src/fxcodec/jbig2/JBig2_TrdProc.h", |
| 441 "core/src/fxcodec/lbmp/fx_bmp.cpp", | 431 "core/src/fxcodec/lbmp/fx_bmp.cpp", |
| 442 "core/src/fxcodec/lbmp/fx_bmp.h", | 432 "core/src/fxcodec/lbmp/fx_bmp.h", |
| 443 "core/src/fxcodec/lgif/fx_gif.cpp", | 433 "core/src/fxcodec/lgif/fx_gif.cpp", |
| 444 "core/src/fxcodec/lgif/fx_gif.h", | 434 "core/src/fxcodec/lgif/fx_gif.h", |
| 445 ] | 435 ] |
| 446 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 447 | 436 |
| 448 if (is_posix) { | 437 if (is_posix) { |
| 449 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int | 438 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int |
| 450 # conversion to check that an address is 16-bit aligned (benign). | 439 # conversion to check that an address is 16-bit aligned (benign). |
| 451 cflags_c = [ "-Wno-pointer-to-int-cast" ] | 440 cflags_c = [ "-Wno-pointer-to-int-cast" ] |
| 452 } | 441 } |
| 453 configs += [ | 442 configs += [ ":pdfium_config" ] |
| 454 ":pdfium_config", | |
| 455 "//build/config/compiler:no_chromium_code", | |
| 456 ] | |
| 457 } | 443 } |
| 458 | 444 |
| 459 config("fxge_warnings") { | 445 config("fxge_warnings") { |
| 460 if (is_clang) { | 446 if (is_clang) { |
| 461 cflags = [ | 447 cflags = [ |
| 462 # http://code.google.com/p/pdfium/issues/detail?id=188 | 448 # http://code.google.com/p/pdfium/issues/detail?id=188 |
| 463 "-Wno-switch", | 449 "-Wno-switch", |
| 464 ] | 450 ] |
| 465 } | 451 } |
| 466 } | 452 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 "core/src/fxcrt/fx_xml_parser.cpp", | 488 "core/src/fxcrt/fx_xml_parser.cpp", |
| 503 "core/src/fxcrt/fxcrt_platforms.cpp", | 489 "core/src/fxcrt/fxcrt_platforms.cpp", |
| 504 "core/src/fxcrt/fxcrt_platforms.h", | 490 "core/src/fxcrt/fxcrt_platforms.h", |
| 505 "core/src/fxcrt/fxcrt_posix.cpp", | 491 "core/src/fxcrt/fxcrt_posix.cpp", |
| 506 "core/src/fxcrt/fxcrt_posix.h", | 492 "core/src/fxcrt/fxcrt_posix.h", |
| 507 "core/src/fxcrt/fxcrt_windows.cpp", | 493 "core/src/fxcrt/fxcrt_windows.cpp", |
| 508 "core/src/fxcrt/fxcrt_windows.h", | 494 "core/src/fxcrt/fxcrt_windows.h", |
| 509 "core/src/fxcrt/plex.h", | 495 "core/src/fxcrt/plex.h", |
| 510 "core/src/fxcrt/xml_int.h", | 496 "core/src/fxcrt/xml_int.h", |
| 511 ] | 497 ] |
| 512 configs -= [ "//build/config/compiler:chromium_code" ] | 498 configs += [ ":pdfium_config" ] |
| 513 configs += [ | |
| 514 ":pdfium_config", | |
| 515 "//build/config/compiler:no_chromium_code", | |
| 516 ] | |
| 517 } | 499 } |
| 518 | 500 |
| 519 static_library("fxge") { | 501 static_library("fxge") { |
| 520 deps = [ | 502 deps = [ |
| 521 "third_party:fx_agg", | 503 "third_party:fx_agg", |
| 522 ] | 504 ] |
| 523 sources = [ | 505 sources = [ |
| 524 "core/include/fxge/fpf.h", | 506 "core/include/fxge/fpf.h", |
| 525 "core/include/fxge/fx_dib.h", | 507 "core/include/fxge/fx_dib.h", |
| 526 "core/include/fxge/fx_font.h", | 508 "core/include/fxge/fx_font.h", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 "core/src/fxge/ge/fx_ge_device.cpp", | 554 "core/src/fxge/ge/fx_ge_device.cpp", |
| 573 "core/src/fxge/ge/fx_ge_font.cpp", | 555 "core/src/fxge/ge/fx_ge_font.cpp", |
| 574 "core/src/fxge/ge/fx_ge_fontmap.cpp", | 556 "core/src/fxge/ge/fx_ge_fontmap.cpp", |
| 575 "core/src/fxge/ge/fx_ge_linux.cpp", | 557 "core/src/fxge/ge/fx_ge_linux.cpp", |
| 576 "core/src/fxge/ge/fx_ge_path.cpp", | 558 "core/src/fxge/ge/fx_ge_path.cpp", |
| 577 "core/src/fxge/ge/fx_ge_ps.cpp", | 559 "core/src/fxge/ge/fx_ge_ps.cpp", |
| 578 "core/src/fxge/ge/fx_ge_text.cpp", | 560 "core/src/fxge/ge/fx_ge_text.cpp", |
| 579 "core/src/fxge/ge/text_int.h", | 561 "core/src/fxge/ge/text_int.h", |
| 580 ] | 562 ] |
| 581 | 563 |
| 582 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 583 configs += [ | 564 configs += [ |
| 565 ":fxge_warnings", |
| 584 ":pdfium_config", | 566 ":pdfium_config", |
| 585 "//build/config/compiler:no_chromium_code", | |
| 586 # Must be after no_chromium_code for warning flags to be ordered correctly. | |
| 587 ":fxge_warnings", | |
| 588 ] | 567 ] |
| 589 | 568 |
| 590 if (pdf_use_skia) { | 569 if (pdf_use_skia) { |
| 591 sources = [ | 570 sources = [ |
| 592 "core/src/fxge/skia/fx_skia_blitter_new.cpp", | 571 "core/src/fxge/skia/fx_skia_blitter_new.cpp", |
| 593 "core/src/fxge/skia/fx_skia_device.cpp", | 572 "core/src/fxge/skia/fx_skia_device.cpp", |
| 594 ] | 573 ] |
| 595 include_dirs = [ | 574 include_dirs = [ |
| 596 "//third_party/skia/include/config", | 575 "//third_party/skia/include/config", |
| 597 "//third_party/skia/include/core", | 576 "//third_party/skia/include/core", |
| (...skipping 29 matching lines...) Expand all Loading... |
| 627 "fpdfsdk/include/fxedit/fx_edit.h", | 606 "fpdfsdk/include/fxedit/fx_edit.h", |
| 628 "fpdfsdk/include/fxedit/fxet_edit.h", | 607 "fpdfsdk/include/fxedit/fxet_edit.h", |
| 629 "fpdfsdk/include/fxedit/fxet_list.h", | 608 "fpdfsdk/include/fxedit/fxet_list.h", |
| 630 "fpdfsdk/include/fxedit/fxet_stub.h", | 609 "fpdfsdk/include/fxedit/fxet_stub.h", |
| 631 "fpdfsdk/src/fxedit/fxet_ap.cpp", | 610 "fpdfsdk/src/fxedit/fxet_ap.cpp", |
| 632 "fpdfsdk/src/fxedit/fxet_edit.cpp", | 611 "fpdfsdk/src/fxedit/fxet_edit.cpp", |
| 633 "fpdfsdk/src/fxedit/fxet_list.cpp", | 612 "fpdfsdk/src/fxedit/fxet_list.cpp", |
| 634 "fpdfsdk/src/fxedit/fxet_module.cpp", | 613 "fpdfsdk/src/fxedit/fxet_module.cpp", |
| 635 "fpdfsdk/src/fxedit/fxet_pageobjs.cpp", | 614 "fpdfsdk/src/fxedit/fxet_pageobjs.cpp", |
| 636 ] | 615 ] |
| 637 configs -= [ "//build/config/compiler:chromium_code" ] | 616 configs += [ ":pdfium_config" ] |
| 638 configs += [ | |
| 639 ":pdfium_config", | |
| 640 "//build/config/compiler:no_chromium_code", | |
| 641 ] | |
| 642 } | 617 } |
| 643 | 618 |
| 644 static_library("pdfwindow") { | 619 static_library("pdfwindow") { |
| 645 sources = [ | 620 sources = [ |
| 646 "fpdfsdk/include/pdfwindow/IPDFWindow.h", | 621 "fpdfsdk/include/pdfwindow/IPDFWindow.h", |
| 647 "fpdfsdk/include/pdfwindow/PDFWindow.h", | 622 "fpdfsdk/include/pdfwindow/PDFWindow.h", |
| 648 "fpdfsdk/include/pdfwindow/PWL_Button.h", | 623 "fpdfsdk/include/pdfwindow/PWL_Button.h", |
| 649 "fpdfsdk/include/pdfwindow/PWL_Caret.h", | 624 "fpdfsdk/include/pdfwindow/PWL_Caret.h", |
| 650 "fpdfsdk/include/pdfwindow/PWL_ComboBox.h", | 625 "fpdfsdk/include/pdfwindow/PWL_ComboBox.h", |
| 651 "fpdfsdk/include/pdfwindow/PWL_Edit.h", | 626 "fpdfsdk/include/pdfwindow/PWL_Edit.h", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 673 "fpdfsdk/src/pdfwindow/PWL_Label.cpp", | 648 "fpdfsdk/src/pdfwindow/PWL_Label.cpp", |
| 674 "fpdfsdk/src/pdfwindow/PWL_ListBox.cpp", | 649 "fpdfsdk/src/pdfwindow/PWL_ListBox.cpp", |
| 675 "fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp", | 650 "fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp", |
| 676 "fpdfsdk/src/pdfwindow/PWL_Note.cpp", | 651 "fpdfsdk/src/pdfwindow/PWL_Note.cpp", |
| 677 "fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp", | 652 "fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp", |
| 678 "fpdfsdk/src/pdfwindow/PWL_Signature.cpp", | 653 "fpdfsdk/src/pdfwindow/PWL_Signature.cpp", |
| 679 "fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp", | 654 "fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp", |
| 680 "fpdfsdk/src/pdfwindow/PWL_Utils.cpp", | 655 "fpdfsdk/src/pdfwindow/PWL_Utils.cpp", |
| 681 "fpdfsdk/src/pdfwindow/PWL_Wnd.cpp", | 656 "fpdfsdk/src/pdfwindow/PWL_Wnd.cpp", |
| 682 ] | 657 ] |
| 683 configs -= [ "//build/config/compiler:chromium_code" ] | 658 configs += [ ":pdfium_config" ] |
| 684 configs += [ | |
| 685 ":pdfium_config", | |
| 686 "//build/config/compiler:no_chromium_code", | |
| 687 ] | |
| 688 } | 659 } |
| 689 | 660 |
| 690 static_library("javascript") { | 661 static_library("javascript") { |
| 691 sources = [ | 662 sources = [ |
| 692 "fpdfsdk/include/javascript/IJavaScript.h", | 663 "fpdfsdk/include/javascript/IJavaScript.h", |
| 693 ] | 664 ] |
| 694 if (pdf_enable_v8) { | 665 if (pdf_enable_v8) { |
| 695 sources += [ | 666 sources += [ |
| 696 "fpdfsdk/src/javascript/Consts.cpp", | 667 "fpdfsdk/src/javascript/Consts.cpp", |
| 697 "fpdfsdk/src/javascript/Consts.h", | 668 "fpdfsdk/src/javascript/Consts.h", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 include_dirs = [ | 709 include_dirs = [ |
| 739 "//v8", | 710 "//v8", |
| 740 "//v8/include", | 711 "//v8/include", |
| 741 ] | 712 ] |
| 742 public_deps = [ | 713 public_deps = [ |
| 743 "//v8", | 714 "//v8", |
| 744 ] | 715 ] |
| 745 } else { | 716 } else { |
| 746 sources += [ "fpdfsdk/src/javascript/JS_Runtime_Stub.cpp" ] | 717 sources += [ "fpdfsdk/src/javascript/JS_Runtime_Stub.cpp" ] |
| 747 } | 718 } |
| 748 configs -= [ "//build/config/compiler:chromium_code" ] | 719 configs += [ ":pdfium_config" ] |
| 749 configs += [ | |
| 750 ":pdfium_config", | |
| 751 "//build/config/compiler:no_chromium_code", | |
| 752 ] | |
| 753 } | 720 } |
| 754 | 721 |
| 755 static_library("formfiller") { | 722 static_library("formfiller") { |
| 756 sources = [ | 723 sources = [ |
| 757 "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h", | 724 "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h", |
| 758 "fpdfsdk/include/formfiller/FFL_CheckBox.h", | 725 "fpdfsdk/include/formfiller/FFL_CheckBox.h", |
| 759 "fpdfsdk/include/formfiller/FFL_ComboBox.h", | 726 "fpdfsdk/include/formfiller/FFL_ComboBox.h", |
| 760 "fpdfsdk/include/formfiller/FFL_FormFiller.h", | 727 "fpdfsdk/include/formfiller/FFL_FormFiller.h", |
| 761 "fpdfsdk/include/formfiller/FFL_IFormFiller.h", | 728 "fpdfsdk/include/formfiller/FFL_IFormFiller.h", |
| 762 "fpdfsdk/include/formfiller/FFL_ListBox.h", | 729 "fpdfsdk/include/formfiller/FFL_ListBox.h", |
| 763 "fpdfsdk/include/formfiller/FFL_PushButton.h", | 730 "fpdfsdk/include/formfiller/FFL_PushButton.h", |
| 764 "fpdfsdk/include/formfiller/FFL_RadioButton.h", | 731 "fpdfsdk/include/formfiller/FFL_RadioButton.h", |
| 765 "fpdfsdk/include/formfiller/FFL_TextField.h", | 732 "fpdfsdk/include/formfiller/FFL_TextField.h", |
| 766 "fpdfsdk/include/formfiller/FormFiller.h", | 733 "fpdfsdk/include/formfiller/FormFiller.h", |
| 767 "fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp", | 734 "fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp", |
| 768 "fpdfsdk/src/formfiller/FFL_CheckBox.cpp", | 735 "fpdfsdk/src/formfiller/FFL_CheckBox.cpp", |
| 769 "fpdfsdk/src/formfiller/FFL_ComboBox.cpp", | 736 "fpdfsdk/src/formfiller/FFL_ComboBox.cpp", |
| 770 "fpdfsdk/src/formfiller/FFL_FormFiller.cpp", | 737 "fpdfsdk/src/formfiller/FFL_FormFiller.cpp", |
| 771 "fpdfsdk/src/formfiller/FFL_IFormFiller.cpp", | 738 "fpdfsdk/src/formfiller/FFL_IFormFiller.cpp", |
| 772 "fpdfsdk/src/formfiller/FFL_ListBox.cpp", | 739 "fpdfsdk/src/formfiller/FFL_ListBox.cpp", |
| 773 "fpdfsdk/src/formfiller/FFL_PushButton.cpp", | 740 "fpdfsdk/src/formfiller/FFL_PushButton.cpp", |
| 774 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", | 741 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", |
| 775 "fpdfsdk/src/formfiller/FFL_TextField.cpp", | 742 "fpdfsdk/src/formfiller/FFL_TextField.cpp", |
| 776 ] | 743 ] |
| 777 configs -= [ "//build/config/compiler:chromium_code" ] | 744 configs += [ ":pdfium_config" ] |
| 778 configs += [ | |
| 779 ":pdfium_config", | |
| 780 "//build/config/compiler:no_chromium_code", | |
| 781 ] | |
| 782 } | 745 } |
| 783 | 746 |
| 784 static_library("fpdfxfa") { | 747 static_library("fpdfxfa") { |
| 785 sources = [ | 748 sources = [ |
| 786 "fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp", | 749 "fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp", |
| 787 "fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp", | 750 "fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp", |
| 788 "fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp", | 751 "fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp", |
| 789 "fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp", | 752 "fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp", |
| 790 "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h", | 753 "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h", |
| 791 "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h", | 754 "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h", |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 "xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp", | 1454 "xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp", |
| 1492 "xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp", | 1455 "xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp", |
| 1493 ] | 1456 ] |
| 1494 deps = [ | 1457 deps = [ |
| 1495 "//testing/gtest", | 1458 "//testing/gtest", |
| 1496 "//testing/gtest:gtest_main", | 1459 "//testing/gtest:gtest_main", |
| 1497 ":pdfium", | 1460 ":pdfium", |
| 1498 ":test_support", | 1461 ":test_support", |
| 1499 ] | 1462 ] |
| 1500 include_dirs = [ "." ] | 1463 include_dirs = [ "." ] |
| 1501 configs -= [ "//build/config/compiler:chromium_code" ] | 1464 configs += [ ":pdfium_config" ] |
| 1502 configs += [ | |
| 1503 ":pdfium_config", | |
| 1504 "//build/config/compiler:no_chromium_code", | |
| 1505 ] | |
| 1506 } | 1465 } |
| 1507 | 1466 |
| 1508 test("pdfium_embeddertests") { | 1467 test("pdfium_embeddertests") { |
| 1509 sources = [ | 1468 sources = [ |
| 1510 "core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp", | 1469 "core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp", |
| 1511 "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", | 1470 "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", |
| 1512 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp", | 1471 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp", |
| 1513 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", | 1472 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", |
| 1514 "fpdfsdk/src/fpdf_dataavail_embeddertest.cpp", | 1473 "fpdfsdk/src/fpdf_dataavail_embeddertest.cpp", |
| 1515 "fpdfsdk/src/fpdfdoc_embeddertest.cpp", | 1474 "fpdfsdk/src/fpdfdoc_embeddertest.cpp", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1539 ] | 1498 ] |
| 1540 deps += [ | 1499 deps += [ |
| 1541 "//v8", | 1500 "//v8", |
| 1542 "//v8:v8_libplatform", | 1501 "//v8:v8_libplatform", |
| 1543 ] | 1502 ] |
| 1544 include_dirs += [ | 1503 include_dirs += [ |
| 1545 "//v8", | 1504 "//v8", |
| 1546 "//v8/include", | 1505 "//v8/include", |
| 1547 ] | 1506 ] |
| 1548 } | 1507 } |
| 1549 configs -= [ "//build/config/compiler:chromium_code" ] | 1508 configs += [ ":pdfium_config" ] |
| 1550 configs += [ | |
| 1551 ":pdfium_config", | |
| 1552 "//build/config/compiler:no_chromium_code", | |
| 1553 ] | |
| 1554 } | 1509 } |
| OLD | NEW |