| 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 = [ "third_party/freetype/include" ] | 10 include_dirs = [ "third_party/freetype/include" ] |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 if (is_win) { | 34 if (is_win) { |
| 35 cflags += [ | 35 cflags += [ |
| 36 "/wd4005", | 36 "/wd4005", |
| 37 "/wd4018", | 37 "/wd4018", |
| 38 "/wd4146", | 38 "/wd4146", |
| 39 "/wd4333", | 39 "/wd4333", |
| 40 "/wd4345", | 40 "/wd4345", |
| 41 ] | 41 ] |
| 42 } | 42 } |
| 43 |
| 44 if (is_clang) { |
| 45 # TODO(thestig): Fix all instances, remove this, pdfium:29 |
| 46 cflags += [ "-Wno-sign-compare" ] |
| 47 } |
| 43 } | 48 } |
| 44 | 49 |
| 45 static_library("pdfium") { | 50 static_library("pdfium") { |
| 46 sources = [ | 51 sources = [ |
| 47 "fpdfsdk/include/fsdk_actionhandler.h", | 52 "fpdfsdk/include/fsdk_actionhandler.h", |
| 48 "fpdfsdk/include/fsdk_annothandler.h", | 53 "fpdfsdk/include/fsdk_annothandler.h", |
| 49 "fpdfsdk/include/fsdk_baseannot.h", | 54 "fpdfsdk/include/fsdk_baseannot.h", |
| 50 "fpdfsdk/include/fsdk_baseform.h", | 55 "fpdfsdk/include/fsdk_baseform.h", |
| 51 "fpdfsdk/src/fpdf_dataavail.cpp", | 56 "fpdfsdk/src/fpdf_dataavail.cpp", |
| 52 "fpdfsdk/src/fpdf_ext.cpp", | 57 "fpdfsdk/src/fpdf_ext.cpp", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 80 "public/fpdf_progressive.h", | 85 "public/fpdf_progressive.h", |
| 81 "public/fpdf_save.h", | 86 "public/fpdf_save.h", |
| 82 "public/fpdf_searchex.h", | 87 "public/fpdf_searchex.h", |
| 83 "public/fpdf_sysfontinfo.h", | 88 "public/fpdf_sysfontinfo.h", |
| 84 "public/fpdf_text.h", | 89 "public/fpdf_text.h", |
| 85 "public/fpdf_transformpage.h", | 90 "public/fpdf_transformpage.h", |
| 86 "public/fpdfview.h", | 91 "public/fpdfview.h", |
| 87 ] | 92 ] |
| 88 | 93 |
| 89 libs = [] | 94 libs = [] |
| 90 configs -= [ "//build/config/compiler:chromium_code" ] | 95 configs += [ ":pdfium_config" ] |
| 91 configs += [ | |
| 92 ":pdfium_config", | |
| 93 "//build/config/compiler:no_chromium_code", | |
| 94 ] | |
| 95 | 96 |
| 96 deps = [ | 97 deps = [ |
| 97 "third_party:bigint", | 98 "third_party:bigint", |
| 98 "third_party:pdfium_base", | 99 "third_party:pdfium_base", |
| 99 ":fdrm", | 100 ":fdrm", |
| 100 ":formfiller", | 101 ":formfiller", |
| 101 ":fpdfapi", | 102 ":fpdfapi", |
| 102 ":fpdfdoc", | 103 ":fpdfdoc", |
| 103 ":fpdftext", | 104 ":fpdftext", |
| 104 ":fxcodec", | 105 ":fxcodec", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 if (pdf_enable_v8) { | 151 if (pdf_enable_v8) { |
| 151 deps += [ | 152 deps += [ |
| 152 "//v8", | 153 "//v8", |
| 153 "//v8:v8_libplatform", | 154 "//v8:v8_libplatform", |
| 154 ] | 155 ] |
| 155 include_dirs += [ | 156 include_dirs += [ |
| 156 "//v8", | 157 "//v8", |
| 157 "//v8/include", | 158 "//v8/include", |
| 158 ] | 159 ] |
| 159 } | 160 } |
| 160 configs -= [ "//build/config/compiler:chromium_code" ] | 161 configs += [ ":pdfium_config" ] |
| 161 configs += [ | |
| 162 ":pdfium_config", | |
| 163 "//build/config/compiler:no_chromium_code", | |
| 164 ] | |
| 165 } | 162 } |
| 166 | 163 |
| 167 # Targets below this are only visible within this file (and to the | 164 # Targets below this are only visible within this file (and to the |
| 168 # top-level gn_visibility target used to help gn_all build everything). | 165 # top-level gn_visibility target used to help gn_all build everything). |
| 169 visibility = [ | 166 visibility = [ |
| 170 ":*", | 167 ":*", |
| 171 "//:gn_visibility", | 168 "//:gn_visibility", |
| 172 ] | 169 ] |
| 173 | 170 |
| 174 static_library("fdrm") { | 171 static_library("fdrm") { |
| 175 sources = [ | 172 sources = [ |
| 176 "core/include/fdrm/fx_crypt.h", | 173 "core/include/fdrm/fx_crypt.h", |
| 177 "core/src/fdrm/crypto/fx_crypt.cpp", | 174 "core/src/fdrm/crypto/fx_crypt.cpp", |
| 178 "core/src/fdrm/crypto/fx_crypt_aes.cpp", | 175 "core/src/fdrm/crypto/fx_crypt_aes.cpp", |
| 179 "core/src/fdrm/crypto/fx_crypt_sha.cpp", | 176 "core/src/fdrm/crypto/fx_crypt_sha.cpp", |
| 180 ] | 177 ] |
| 181 configs -= [ "//build/config/compiler:chromium_code" ] | 178 configs += [ ":pdfium_config" ] |
| 182 configs += [ | |
| 183 ":pdfium_config", | |
| 184 "//build/config/compiler:no_chromium_code", | |
| 185 ] | |
| 186 } | 179 } |
| 187 | 180 |
| 188 static_library("fpdfdoc") { | 181 static_library("fpdfdoc") { |
| 189 sources = [ | 182 sources = [ |
| 190 "core/include/fpdfdoc/fpdf_ap.h", | 183 "core/include/fpdfdoc/fpdf_ap.h", |
| 191 "core/include/fpdfdoc/fpdf_doc.h", | 184 "core/include/fpdfdoc/fpdf_doc.h", |
| 192 "core/include/fpdfdoc/fpdf_tagged.h", | 185 "core/include/fpdfdoc/fpdf_tagged.h", |
| 193 "core/include/fpdfdoc/fpdf_vt.h", | 186 "core/include/fpdfdoc/fpdf_vt.h", |
| 194 "core/src/fpdfdoc/doc_action.cpp", | 187 "core/src/fpdfdoc/doc_action.cpp", |
| 195 "core/src/fpdfdoc/doc_annot.cpp", | 188 "core/src/fpdfdoc/doc_annot.cpp", |
| 196 "core/src/fpdfdoc/doc_ap.cpp", | 189 "core/src/fpdfdoc/doc_ap.cpp", |
| 197 "core/src/fpdfdoc/doc_basic.cpp", | 190 "core/src/fpdfdoc/doc_basic.cpp", |
| 198 "core/src/fpdfdoc/doc_bookmark.cpp", | 191 "core/src/fpdfdoc/doc_bookmark.cpp", |
| 199 "core/src/fpdfdoc/doc_form.cpp", | 192 "core/src/fpdfdoc/doc_form.cpp", |
| 200 "core/src/fpdfdoc/doc_formcontrol.cpp", | 193 "core/src/fpdfdoc/doc_formcontrol.cpp", |
| 201 "core/src/fpdfdoc/doc_formfield.cpp", | 194 "core/src/fpdfdoc/doc_formfield.cpp", |
| 202 "core/src/fpdfdoc/doc_link.cpp", | 195 "core/src/fpdfdoc/doc_link.cpp", |
| 203 "core/src/fpdfdoc/doc_metadata.cpp", | 196 "core/src/fpdfdoc/doc_metadata.cpp", |
| 204 "core/src/fpdfdoc/doc_ocg.cpp", | 197 "core/src/fpdfdoc/doc_ocg.cpp", |
| 205 "core/src/fpdfdoc/doc_tagged.cpp", | 198 "core/src/fpdfdoc/doc_tagged.cpp", |
| 206 "core/src/fpdfdoc/doc_utils.cpp", | 199 "core/src/fpdfdoc/doc_utils.cpp", |
| 207 "core/src/fpdfdoc/doc_utils.h", | 200 "core/src/fpdfdoc/doc_utils.h", |
| 208 "core/src/fpdfdoc/doc_viewerPreferences.cpp", | 201 "core/src/fpdfdoc/doc_viewerPreferences.cpp", |
| 209 "core/src/fpdfdoc/doc_vt.cpp", | 202 "core/src/fpdfdoc/doc_vt.cpp", |
| 210 "core/src/fpdfdoc/doc_vtmodule.cpp", | 203 "core/src/fpdfdoc/doc_vtmodule.cpp", |
| 211 "core/src/fpdfdoc/pdf_vt.h", | 204 "core/src/fpdfdoc/pdf_vt.h", |
| 212 "core/src/fpdfdoc/tagged_int.h", | 205 "core/src/fpdfdoc/tagged_int.h", |
| 213 ] | 206 ] |
| 214 configs -= [ "//build/config/compiler:chromium_code" ] | 207 configs += [ ":pdfium_config" ] |
| 215 configs += [ | |
| 216 ":pdfium_config", | |
| 217 "//build/config/compiler:no_chromium_code", | |
| 218 ] | |
| 219 } | 208 } |
| 220 | 209 |
| 221 static_library("fpdfapi") { | 210 static_library("fpdfapi") { |
| 222 sources = [ | 211 sources = [ |
| 223 "core/include/fpdfapi/fpdf_module.h", | 212 "core/include/fpdfapi/fpdf_module.h", |
| 224 "core/include/fpdfapi/fpdf_objects.h", | 213 "core/include/fpdfapi/fpdf_objects.h", |
| 225 "core/include/fpdfapi/fpdf_page.h", | 214 "core/include/fpdfapi/fpdf_page.h", |
| 226 "core/include/fpdfapi/fpdf_pageobj.h", | 215 "core/include/fpdfapi/fpdf_pageobj.h", |
| 227 "core/include/fpdfapi/fpdf_parser.h", | 216 "core/include/fpdfapi/fpdf_parser.h", |
| 228 "core/include/fpdfapi/fpdf_render.h", | 217 "core/include/fpdfapi/fpdf_render.h", |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp", | 313 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp", |
| 325 "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp", | 314 "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp", |
| 326 "core/src/fpdfapi/fpdf_render/fpdf_render.cpp", | 315 "core/src/fpdfapi/fpdf_render/fpdf_render.cpp", |
| 327 "core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp", | 316 "core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp", |
| 328 "core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp", | 317 "core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp", |
| 329 "core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp", | 318 "core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp", |
| 330 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp", | 319 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp", |
| 331 "core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp", | 320 "core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp", |
| 332 "core/src/fpdfapi/fpdf_render/render_int.h", | 321 "core/src/fpdfapi/fpdf_render/render_int.h", |
| 333 ] | 322 ] |
| 334 configs -= [ "//build/config/compiler:chromium_code" ] | 323 configs += [ ":pdfium_config" ] |
| 335 configs += [ | |
| 336 ":pdfium_config", | |
| 337 "//build/config/compiler:no_chromium_code", | |
| 338 ] | |
| 339 } | 324 } |
| 340 | 325 |
| 341 static_library("fpdftext") { | 326 static_library("fpdftext") { |
| 342 sources = [ | 327 sources = [ |
| 343 "core/include/fpdftext/fpdf_text.h", | 328 "core/include/fpdftext/fpdf_text.h", |
| 344 "core/src/fpdftext/fpdf_text.cpp", | 329 "core/src/fpdftext/fpdf_text.cpp", |
| 345 "core/src/fpdftext/fpdf_text_int.cpp", | 330 "core/src/fpdftext/fpdf_text_int.cpp", |
| 346 "core/src/fpdftext/fpdf_text_search.cpp", | 331 "core/src/fpdftext/fpdf_text_search.cpp", |
| 347 "core/src/fpdftext/text_int.h", | 332 "core/src/fpdftext/text_int.h", |
| 348 "core/src/fpdftext/txtproc.h", | 333 "core/src/fpdftext/txtproc.h", |
| 349 "core/src/fpdftext/unicodenormalization.cpp", | 334 "core/src/fpdftext/unicodenormalization.cpp", |
| 350 "core/src/fpdftext/unicodenormalizationdata.cpp", | 335 "core/src/fpdftext/unicodenormalizationdata.cpp", |
| 351 "core/src/fpdftext/unicodenormalizationdata.h", | 336 "core/src/fpdftext/unicodenormalizationdata.h", |
| 352 ] | 337 ] |
| 353 configs -= [ "//build/config/compiler:chromium_code" ] | 338 configs += [ ":pdfium_config" ] |
| 354 configs += [ | |
| 355 ":pdfium_config", | |
| 356 "//build/config/compiler:no_chromium_code", | |
| 357 ] | |
| 358 } | 339 } |
| 359 | 340 |
| 360 static_library("fxcodec") { | 341 static_library("fxcodec") { |
| 361 deps = [ | 342 deps = [ |
| 362 "third_party:fx_lcms2", | 343 "third_party:fx_lcms2", |
| 363 "third_party:fx_libjpeg", | 344 "third_party:fx_libjpeg", |
| 364 "third_party:fx_libopenjpeg", | 345 "third_party:fx_libopenjpeg", |
| 365 "third_party:fx_zlib", | 346 "third_party:fx_zlib", |
| 366 ] | 347 ] |
| 367 sources = [ | 348 sources = [ |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 "core/src/fxcodec/jbig2/JBig2_PddProc.h", | 391 "core/src/fxcodec/jbig2/JBig2_PddProc.h", |
| 411 "core/src/fxcodec/jbig2/JBig2_SddProc.cpp", | 392 "core/src/fxcodec/jbig2/JBig2_SddProc.cpp", |
| 412 "core/src/fxcodec/jbig2/JBig2_SddProc.h", | 393 "core/src/fxcodec/jbig2/JBig2_SddProc.h", |
| 413 "core/src/fxcodec/jbig2/JBig2_Segment.cpp", | 394 "core/src/fxcodec/jbig2/JBig2_Segment.cpp", |
| 414 "core/src/fxcodec/jbig2/JBig2_Segment.h", | 395 "core/src/fxcodec/jbig2/JBig2_Segment.h", |
| 415 "core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp", | 396 "core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp", |
| 416 "core/src/fxcodec/jbig2/JBig2_SymbolDict.h", | 397 "core/src/fxcodec/jbig2/JBig2_SymbolDict.h", |
| 417 "core/src/fxcodec/jbig2/JBig2_TrdProc.cpp", | 398 "core/src/fxcodec/jbig2/JBig2_TrdProc.cpp", |
| 418 "core/src/fxcodec/jbig2/JBig2_TrdProc.h", | 399 "core/src/fxcodec/jbig2/JBig2_TrdProc.h", |
| 419 ] | 400 ] |
| 420 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 421 | 401 |
| 422 if (is_posix) { | 402 if (is_posix) { |
| 423 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int | 403 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int |
| 424 # conversion to check that an address is 16-bit aligned (benign). | 404 # conversion to check that an address is 16-bit aligned (benign). |
| 425 cflags_c = [ "-Wno-pointer-to-int-cast" ] | 405 cflags_c = [ "-Wno-pointer-to-int-cast" ] |
| 426 } | 406 } |
| 427 configs += [ | 407 configs += [ ":pdfium_config" ] |
| 428 ":pdfium_config", | |
| 429 "//build/config/compiler:no_chromium_code", | |
| 430 ] | |
| 431 } | 408 } |
| 432 | 409 |
| 433 config("fxge_warnings") { | 410 config("fxge_warnings") { |
| 434 if (is_clang) { | 411 if (is_clang) { |
| 435 cflags = [ | 412 cflags = [ |
| 436 # http://code.google.com/p/pdfium/issues/detail?id=188 | 413 # http://code.google.com/p/pdfium/issues/detail?id=188 |
| 437 "-Wno-switch", | 414 "-Wno-switch", |
| 438 ] | 415 ] |
| 439 } | 416 } |
| 440 } | 417 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 "core/src/fxcrt/fx_xml_parser.cpp", | 450 "core/src/fxcrt/fx_xml_parser.cpp", |
| 474 "core/src/fxcrt/fxcrt_platforms.cpp", | 451 "core/src/fxcrt/fxcrt_platforms.cpp", |
| 475 "core/src/fxcrt/fxcrt_platforms.h", | 452 "core/src/fxcrt/fxcrt_platforms.h", |
| 476 "core/src/fxcrt/fxcrt_posix.cpp", | 453 "core/src/fxcrt/fxcrt_posix.cpp", |
| 477 "core/src/fxcrt/fxcrt_posix.h", | 454 "core/src/fxcrt/fxcrt_posix.h", |
| 478 "core/src/fxcrt/fxcrt_windows.cpp", | 455 "core/src/fxcrt/fxcrt_windows.cpp", |
| 479 "core/src/fxcrt/fxcrt_windows.h", | 456 "core/src/fxcrt/fxcrt_windows.h", |
| 480 "core/src/fxcrt/plex.h", | 457 "core/src/fxcrt/plex.h", |
| 481 "core/src/fxcrt/xml_int.h", | 458 "core/src/fxcrt/xml_int.h", |
| 482 ] | 459 ] |
| 483 configs -= [ "//build/config/compiler:chromium_code" ] | 460 configs += [ ":pdfium_config" ] |
| 484 configs += [ | |
| 485 ":pdfium_config", | |
| 486 "//build/config/compiler:no_chromium_code", | |
| 487 ] | |
| 488 } | 461 } |
| 489 | 462 |
| 490 static_library("fxge") { | 463 static_library("fxge") { |
| 491 deps = [ | 464 deps = [ |
| 492 "third_party:fx_agg", | 465 "third_party:fx_agg", |
| 493 ] | 466 ] |
| 494 sources = [ | 467 sources = [ |
| 495 "core/include/fxge/fpf.h", | 468 "core/include/fxge/fpf.h", |
| 496 "core/include/fxge/fx_dib.h", | 469 "core/include/fxge/fx_dib.h", |
| 497 "core/include/fxge/fx_font.h", | 470 "core/include/fxge/fx_font.h", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 "core/src/fxge/ge/fx_ge_device.cpp", | 516 "core/src/fxge/ge/fx_ge_device.cpp", |
| 544 "core/src/fxge/ge/fx_ge_font.cpp", | 517 "core/src/fxge/ge/fx_ge_font.cpp", |
| 545 "core/src/fxge/ge/fx_ge_fontmap.cpp", | 518 "core/src/fxge/ge/fx_ge_fontmap.cpp", |
| 546 "core/src/fxge/ge/fx_ge_linux.cpp", | 519 "core/src/fxge/ge/fx_ge_linux.cpp", |
| 547 "core/src/fxge/ge/fx_ge_path.cpp", | 520 "core/src/fxge/ge/fx_ge_path.cpp", |
| 548 "core/src/fxge/ge/fx_ge_ps.cpp", | 521 "core/src/fxge/ge/fx_ge_ps.cpp", |
| 549 "core/src/fxge/ge/fx_ge_text.cpp", | 522 "core/src/fxge/ge/fx_ge_text.cpp", |
| 550 "core/src/fxge/ge/text_int.h", | 523 "core/src/fxge/ge/text_int.h", |
| 551 ] | 524 ] |
| 552 | 525 |
| 553 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 554 configs += [ | 526 configs += [ |
| 527 ":fxge_warnings", |
| 555 ":pdfium_config", | 528 ":pdfium_config", |
| 556 "//build/config/compiler:no_chromium_code", | |
| 557 # Must be after no_chromium_code for warning flags to be ordered correctly. | |
| 558 ":fxge_warnings", | |
| 559 ] | 529 ] |
| 560 | 530 |
| 561 if (pdf_use_skia) { | 531 if (pdf_use_skia) { |
| 562 sources = [ | 532 sources = [ |
| 563 "core/src/fxge/skia/fx_skia_blitter_new.cpp", | 533 "core/src/fxge/skia/fx_skia_blitter_new.cpp", |
| 564 "core/src/fxge/skia/fx_skia_device.cpp", | 534 "core/src/fxge/skia/fx_skia_device.cpp", |
| 565 ] | 535 ] |
| 566 include_dirs = [ | 536 include_dirs = [ |
| 567 "//third_party/skia/include/config", | 537 "//third_party/skia/include/config", |
| 568 "//third_party/skia/include/core", | 538 "//third_party/skia/include/core", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 595 "fpdfsdk/include/fxedit/fx_edit.h", | 565 "fpdfsdk/include/fxedit/fx_edit.h", |
| 596 "fpdfsdk/include/fxedit/fxet_edit.h", | 566 "fpdfsdk/include/fxedit/fxet_edit.h", |
| 597 "fpdfsdk/include/fxedit/fxet_list.h", | 567 "fpdfsdk/include/fxedit/fxet_list.h", |
| 598 "fpdfsdk/include/fxedit/fxet_stub.h", | 568 "fpdfsdk/include/fxedit/fxet_stub.h", |
| 599 "fpdfsdk/src/fxedit/fxet_ap.cpp", | 569 "fpdfsdk/src/fxedit/fxet_ap.cpp", |
| 600 "fpdfsdk/src/fxedit/fxet_edit.cpp", | 570 "fpdfsdk/src/fxedit/fxet_edit.cpp", |
| 601 "fpdfsdk/src/fxedit/fxet_list.cpp", | 571 "fpdfsdk/src/fxedit/fxet_list.cpp", |
| 602 "fpdfsdk/src/fxedit/fxet_module.cpp", | 572 "fpdfsdk/src/fxedit/fxet_module.cpp", |
| 603 "fpdfsdk/src/fxedit/fxet_pageobjs.cpp", | 573 "fpdfsdk/src/fxedit/fxet_pageobjs.cpp", |
| 604 ] | 574 ] |
| 605 configs -= [ "//build/config/compiler:chromium_code" ] | 575 configs += [ ":pdfium_config" ] |
| 606 configs += [ | |
| 607 ":pdfium_config", | |
| 608 "//build/config/compiler:no_chromium_code", | |
| 609 ] | |
| 610 } | 576 } |
| 611 | 577 |
| 612 static_library("pdfwindow") { | 578 static_library("pdfwindow") { |
| 613 sources = [ | 579 sources = [ |
| 614 "fpdfsdk/include/pdfwindow/IPDFWindow.h", | 580 "fpdfsdk/include/pdfwindow/IPDFWindow.h", |
| 615 "fpdfsdk/include/pdfwindow/PDFWindow.h", | 581 "fpdfsdk/include/pdfwindow/PDFWindow.h", |
| 616 "fpdfsdk/include/pdfwindow/PWL_Button.h", | 582 "fpdfsdk/include/pdfwindow/PWL_Button.h", |
| 617 "fpdfsdk/include/pdfwindow/PWL_Caret.h", | 583 "fpdfsdk/include/pdfwindow/PWL_Caret.h", |
| 618 "fpdfsdk/include/pdfwindow/PWL_ComboBox.h", | 584 "fpdfsdk/include/pdfwindow/PWL_ComboBox.h", |
| 619 "fpdfsdk/include/pdfwindow/PWL_Edit.h", | 585 "fpdfsdk/include/pdfwindow/PWL_Edit.h", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 641 "fpdfsdk/src/pdfwindow/PWL_Label.cpp", | 607 "fpdfsdk/src/pdfwindow/PWL_Label.cpp", |
| 642 "fpdfsdk/src/pdfwindow/PWL_ListBox.cpp", | 608 "fpdfsdk/src/pdfwindow/PWL_ListBox.cpp", |
| 643 "fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp", | 609 "fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp", |
| 644 "fpdfsdk/src/pdfwindow/PWL_Note.cpp", | 610 "fpdfsdk/src/pdfwindow/PWL_Note.cpp", |
| 645 "fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp", | 611 "fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp", |
| 646 "fpdfsdk/src/pdfwindow/PWL_Signature.cpp", | 612 "fpdfsdk/src/pdfwindow/PWL_Signature.cpp", |
| 647 "fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp", | 613 "fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp", |
| 648 "fpdfsdk/src/pdfwindow/PWL_Utils.cpp", | 614 "fpdfsdk/src/pdfwindow/PWL_Utils.cpp", |
| 649 "fpdfsdk/src/pdfwindow/PWL_Wnd.cpp", | 615 "fpdfsdk/src/pdfwindow/PWL_Wnd.cpp", |
| 650 ] | 616 ] |
| 651 configs -= [ "//build/config/compiler:chromium_code" ] | 617 configs += [ ":pdfium_config" ] |
| 652 configs += [ | |
| 653 ":pdfium_config", | |
| 654 "//build/config/compiler:no_chromium_code", | |
| 655 ] | |
| 656 } | 618 } |
| 657 | 619 |
| 658 static_library("javascript") { | 620 static_library("javascript") { |
| 659 sources = [ | 621 sources = [ |
| 660 "fpdfsdk/include/javascript/IJavaScript.h", | 622 "fpdfsdk/include/javascript/IJavaScript.h", |
| 661 ] | 623 ] |
| 662 if (pdf_enable_v8) { | 624 if (pdf_enable_v8) { |
| 663 sources += [ | 625 sources += [ |
| 664 "fpdfsdk/src/javascript/Consts.cpp", | 626 "fpdfsdk/src/javascript/Consts.cpp", |
| 665 "fpdfsdk/src/javascript/Consts.h", | 627 "fpdfsdk/src/javascript/Consts.h", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 include_dirs = [ | 668 include_dirs = [ |
| 707 "//v8", | 669 "//v8", |
| 708 "//v8/include", | 670 "//v8/include", |
| 709 ] | 671 ] |
| 710 public_deps = [ | 672 public_deps = [ |
| 711 "//v8", | 673 "//v8", |
| 712 ] | 674 ] |
| 713 } else { | 675 } else { |
| 714 sources += [ "fpdfsdk/src/javascript/JS_Runtime_Stub.cpp" ] | 676 sources += [ "fpdfsdk/src/javascript/JS_Runtime_Stub.cpp" ] |
| 715 } | 677 } |
| 716 configs -= [ "//build/config/compiler:chromium_code" ] | 678 configs += [ ":pdfium_config" ] |
| 717 configs += [ | |
| 718 ":pdfium_config", | |
| 719 "//build/config/compiler:no_chromium_code", | |
| 720 ] | |
| 721 } | 679 } |
| 722 | 680 |
| 723 static_library("formfiller") { | 681 static_library("formfiller") { |
| 724 sources = [ | 682 sources = [ |
| 725 "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h", | 683 "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h", |
| 726 "fpdfsdk/include/formfiller/FFL_CheckBox.h", | 684 "fpdfsdk/include/formfiller/FFL_CheckBox.h", |
| 727 "fpdfsdk/include/formfiller/FFL_ComboBox.h", | 685 "fpdfsdk/include/formfiller/FFL_ComboBox.h", |
| 728 "fpdfsdk/include/formfiller/FFL_FormFiller.h", | 686 "fpdfsdk/include/formfiller/FFL_FormFiller.h", |
| 729 "fpdfsdk/include/formfiller/FFL_IFormFiller.h", | 687 "fpdfsdk/include/formfiller/FFL_IFormFiller.h", |
| 730 "fpdfsdk/include/formfiller/FFL_ListBox.h", | 688 "fpdfsdk/include/formfiller/FFL_ListBox.h", |
| 731 "fpdfsdk/include/formfiller/FFL_PushButton.h", | 689 "fpdfsdk/include/formfiller/FFL_PushButton.h", |
| 732 "fpdfsdk/include/formfiller/FFL_RadioButton.h", | 690 "fpdfsdk/include/formfiller/FFL_RadioButton.h", |
| 733 "fpdfsdk/include/formfiller/FFL_TextField.h", | 691 "fpdfsdk/include/formfiller/FFL_TextField.h", |
| 734 "fpdfsdk/include/formfiller/FormFiller.h", | 692 "fpdfsdk/include/formfiller/FormFiller.h", |
| 735 "fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp", | 693 "fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp", |
| 736 "fpdfsdk/src/formfiller/FFL_CheckBox.cpp", | 694 "fpdfsdk/src/formfiller/FFL_CheckBox.cpp", |
| 737 "fpdfsdk/src/formfiller/FFL_ComboBox.cpp", | 695 "fpdfsdk/src/formfiller/FFL_ComboBox.cpp", |
| 738 "fpdfsdk/src/formfiller/FFL_FormFiller.cpp", | 696 "fpdfsdk/src/formfiller/FFL_FormFiller.cpp", |
| 739 "fpdfsdk/src/formfiller/FFL_IFormFiller.cpp", | 697 "fpdfsdk/src/formfiller/FFL_IFormFiller.cpp", |
| 740 "fpdfsdk/src/formfiller/FFL_ListBox.cpp", | 698 "fpdfsdk/src/formfiller/FFL_ListBox.cpp", |
| 741 "fpdfsdk/src/formfiller/FFL_PushButton.cpp", | 699 "fpdfsdk/src/formfiller/FFL_PushButton.cpp", |
| 742 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", | 700 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", |
| 743 "fpdfsdk/src/formfiller/FFL_TextField.cpp", | 701 "fpdfsdk/src/formfiller/FFL_TextField.cpp", |
| 744 ] | 702 ] |
| 745 configs -= [ "//build/config/compiler:chromium_code" ] | 703 configs += [ ":pdfium_config" ] |
| 746 configs += [ | |
| 747 ":pdfium_config", | |
| 748 "//build/config/compiler:no_chromium_code", | |
| 749 ] | |
| 750 } | 704 } |
| 751 | 705 |
| 752 test("pdfium_unittests") { | 706 test("pdfium_unittests") { |
| 753 sources = [ | 707 sources = [ |
| 754 "core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp", | 708 "core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp", |
| 755 "core/src/fxcrt/fx_basic_bstring_unittest.cpp", | 709 "core/src/fxcrt/fx_basic_bstring_unittest.cpp", |
| 756 "core/src/fxcrt/fx_basic_memmgr_unittest.cpp", | 710 "core/src/fxcrt/fx_basic_memmgr_unittest.cpp", |
| 757 "core/src/fxcrt/fx_basic_wstring_unittest.cpp", | 711 "core/src/fxcrt/fx_basic_wstring_unittest.cpp", |
| 758 "core/src/fxcrt/fx_bidi_unittest.cpp", | 712 "core/src/fxcrt/fx_bidi_unittest.cpp", |
| 759 "core/src/fxcrt/fx_system_unittest.cpp", | 713 "core/src/fxcrt/fx_system_unittest.cpp", |
| 760 "third_party/base/nonstd_unique_ptr_unittest.cpp", | 714 "third_party/base/nonstd_unique_ptr_unittest.cpp", |
| 761 ] | 715 ] |
| 762 deps = [ | 716 deps = [ |
| 763 "//testing/gtest", | 717 "//testing/gtest", |
| 764 "//testing/gtest:gtest_main", | 718 "//testing/gtest:gtest_main", |
| 765 ":pdfium", | 719 ":pdfium", |
| 766 ":test_support", | 720 ":test_support", |
| 767 ] | 721 ] |
| 768 include_dirs = [ "." ] | 722 include_dirs = [ "." ] |
| 769 configs -= [ "//build/config/compiler:chromium_code" ] | 723 configs += [ ":pdfium_config" ] |
| 770 configs += [ | |
| 771 ":pdfium_config", | |
| 772 "//build/config/compiler:no_chromium_code", | |
| 773 ] | |
| 774 } | 724 } |
| 775 | 725 |
| 776 test("pdfium_embeddertests") { | 726 test("pdfium_embeddertests") { |
| 777 sources = [ | 727 sources = [ |
| 778 "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", | 728 "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", |
| 779 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp", | 729 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp", |
| 780 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", | 730 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", |
| 781 "fpdfsdk/src/fpdf_dataavail_embeddertest.cpp", | 731 "fpdfsdk/src/fpdf_dataavail_embeddertest.cpp", |
| 782 "fpdfsdk/src/fpdfdoc_embeddertest.cpp", | 732 "fpdfsdk/src/fpdfdoc_embeddertest.cpp", |
| 783 "fpdfsdk/src/fpdfformfill_embeddertest.cpp", | 733 "fpdfsdk/src/fpdfformfill_embeddertest.cpp", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 805 ] | 755 ] |
| 806 deps += [ | 756 deps += [ |
| 807 "//v8", | 757 "//v8", |
| 808 "//v8:v8_libplatform", | 758 "//v8:v8_libplatform", |
| 809 ] | 759 ] |
| 810 include_dirs += [ | 760 include_dirs += [ |
| 811 "//v8", | 761 "//v8", |
| 812 "//v8/include", | 762 "//v8/include", |
| 813 ] | 763 ] |
| 814 } | 764 } |
| 815 configs -= [ "//build/config/compiler:chromium_code" ] | 765 configs += [ ":pdfium_config" ] |
| 816 configs += [ | |
| 817 ":pdfium_config", | |
| 818 "//build/config/compiler:no_chromium_code", | |
| 819 ] | |
| 820 } | 766 } |
| OLD | NEW |