| 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 pdf_use_skia = false | |
| 6 | |
| 7 config("pdfium_config") { | 5 config("pdfium_config") { |
| 8 cflags = [] | 6 cflags = [] |
| 9 defines = [ | 7 defines = [ |
| 10 "FOXIT_CHROME_BUILD", | 8 "FOXIT_CHROME_BUILD", |
| 11 "_FXFT_VERSION_=2501", | 9 "_FXFT_VERSION_=2501", |
| 12 "_FPDFSDK_LIB", | 10 "_FPDFSDK_LIB", |
| 13 "_NO_GDIPLUS_", # workaround text rendering issues on Windows | 11 "_NO_GDIPLUS_", # workaround text rendering issues on Windows |
| 14 ] | 12 ] |
| 15 | 13 |
| 16 if (pdf_use_skia) { | |
| 17 defines += [ "_SKIA_SUPPORT_" ] | |
| 18 } | |
| 19 | |
| 20 if (is_linux) { | 14 if (is_linux) { |
| 21 if (cpu_arch == "x64") { | 15 if (cpu_arch == "x64") { |
| 22 defines += [ "_FX_CPU_=_FX_X64_" ] | 16 defines += [ "_FX_CPU_=_FX_X64_" ] |
| 23 cflags += [ "-fPIC" ] | 17 cflags += [ "-fPIC" ] |
| 24 } else if (cpu_arch == "x86") { | 18 } else if (cpu_arch == "x86") { |
| 25 defines += [ "_FX_CPU_=_FX_X86_" ] | 19 defines += [ "_FX_CPU_=_FX_X86_" ] |
| 26 } | 20 } |
| 27 } | 21 } |
| 28 | 22 |
| 29 if (is_win) { | 23 if (is_win) { |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 540 |
| 547 static_library("fxge") { | 541 static_library("fxge") { |
| 548 sources = [ | 542 sources = [ |
| 549 "core/include/fxge/fpf.h", | 543 "core/include/fxge/fpf.h", |
| 550 "core/include/fxge/fx_dib.h", | 544 "core/include/fxge/fx_dib.h", |
| 551 "core/include/fxge/fx_font.h", | 545 "core/include/fxge/fx_font.h", |
| 552 "core/include/fxge/fx_freetype.h", | 546 "core/include/fxge/fx_freetype.h", |
| 553 "core/include/fxge/fx_ge.h", | 547 "core/include/fxge/fx_ge.h", |
| 554 "core/include/fxge/fx_ge_apple.h", | 548 "core/include/fxge/fx_ge_apple.h", |
| 555 "core/include/fxge/fx_ge_win32.h", | 549 "core/include/fxge/fx_ge_win32.h", |
| 556 "core/src/fxge/agg/include/fxfx_agg_basics.h", | |
| 557 "core/src/fxge/agg/include/fxfx_agg_clip_liang_barsky.h", | |
| 558 "core/src/fxge/agg/include/fxfx_agg_conv_dash.h", | |
| 559 "core/src/fxge/agg/include/fxfx_agg_conv_stroke.h", | |
| 560 "core/src/fxge/agg/include/fxfx_agg_curves.h", | |
| 561 "core/src/fxge/agg/include/fxfx_agg_path_storage.h", | |
| 562 "core/src/fxge/agg/include/fxfx_agg_rasterizer_scanline_aa.h", | |
| 563 "core/src/fxge/agg/include/fxfx_agg_renderer_scanline.h", | |
| 564 "core/src/fxge/agg/include/fxfx_agg_rendering_buffer.h", | |
| 565 "core/src/fxge/agg/include/fxfx_agg_scanline_u.h", | |
| 566 "core/src/fxge/agg/include/fx_agg_driver.h", | |
| 567 "core/src/fxge/agg/src/fxfx_agg_curves.cpp", | |
| 568 "core/src/fxge/agg/src/fxfx_agg_driver.cpp", | |
| 569 "core/src/fxge/agg/src/fxfx_agg_path_storage.cpp", | |
| 570 "core/src/fxge/agg/src/fxfx_agg_rasterizer_scanline_aa.cpp", | |
| 571 "core/src/fxge/agg/src/fxfx_agg_vcgen_dash.cpp", | |
| 572 "core/src/fxge/agg/src/fxfx_agg_vcgen_stroke.cpp", | |
| 573 "core/src/fxge/android/fpf_skiafont.cpp", | 550 "core/src/fxge/android/fpf_skiafont.cpp", |
| 574 "core/src/fxge/android/fpf_skiafont.h", | 551 "core/src/fxge/android/fpf_skiafont.h", |
| 575 "core/src/fxge/android/fpf_skiafontmgr.cpp", | 552 "core/src/fxge/android/fpf_skiafontmgr.cpp", |
| 576 "core/src/fxge/android/fpf_skiafontmgr.h", | 553 "core/src/fxge/android/fpf_skiafontmgr.h", |
| 577 "core/src/fxge/android/fpf_skiamodule.cpp", | 554 "core/src/fxge/android/fpf_skiamodule.cpp", |
| 578 "core/src/fxge/android/fpf_skiamodule.h", | 555 "core/src/fxge/android/fpf_skiamodule.h", |
| 579 "core/src/fxge/android/fx_android_font.cpp", | 556 "core/src/fxge/android/fx_android_font.cpp", |
| 580 "core/src/fxge/android/fx_android_font.h", | 557 "core/src/fxge/android/fx_android_font.h", |
| 581 "core/src/fxge/android/fx_android_imp.cpp", | 558 "core/src/fxge/android/fx_android_imp.cpp", |
| 582 "core/src/fxge/android/fx_fpf.h", | 559 "core/src/fxge/android/fx_fpf.h", |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 "core/src/fxge/fx_freetype/src/fxft_type1cid.c", | 613 "core/src/fxge/fx_freetype/src/fxft_type1cid.c", |
| 637 "core/src/fxge/ge/fx_ge.cpp", | 614 "core/src/fxge/ge/fx_ge.cpp", |
| 638 "core/src/fxge/ge/fx_ge_device.cpp", | 615 "core/src/fxge/ge/fx_ge_device.cpp", |
| 639 "core/src/fxge/ge/fx_ge_font.cpp", | 616 "core/src/fxge/ge/fx_ge_font.cpp", |
| 640 "core/src/fxge/ge/fx_ge_fontmap.cpp", | 617 "core/src/fxge/ge/fx_ge_fontmap.cpp", |
| 641 "core/src/fxge/ge/fx_ge_linux.cpp", | 618 "core/src/fxge/ge/fx_ge_linux.cpp", |
| 642 "core/src/fxge/ge/fx_ge_path.cpp", | 619 "core/src/fxge/ge/fx_ge_path.cpp", |
| 643 "core/src/fxge/ge/fx_ge_ps.cpp", | 620 "core/src/fxge/ge/fx_ge_ps.cpp", |
| 644 "core/src/fxge/ge/fx_ge_text.cpp", | 621 "core/src/fxge/ge/fx_ge_text.cpp", |
| 645 "core/src/fxge/ge/text_int.h", | 622 "core/src/fxge/ge/text_int.h", |
| 623 "core/src/fxge/skia/fx_skia_blitter.cpp", |
| 624 "core/src/fxge/skia/fx_skia_driver.cpp", |
| 646 ] | 625 ] |
| 647 | 626 |
| 648 configs -= [ "//build/config/compiler:chromium_code" ] | 627 configs -= [ "//build/config/compiler:chromium_code" ] |
| 649 if (is_posix) { | 628 if (is_posix) { |
| 650 configs -= [ "//build/config/gcc:no_exceptions" ] | 629 configs -= [ "//build/config/gcc:no_exceptions" ] |
| 651 } | 630 } |
| 652 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] | 631 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] |
| 653 | 632 |
| 654 if (pdf_use_skia) { | 633 deps = [ "//skia" ] |
| 655 sources = [ | |
| 656 "core/src/fxge/skia/fx_skia_blitter_new.cpp", | |
| 657 "core/src/fxge/skia/fx_skia_device.cpp", | |
| 658 ] | |
| 659 include_dirs = [ | |
| 660 "//third_party/skia/include/config", | |
| 661 "//third_party/skia/include/core", | |
| 662 "//third_party/skia/include/effects", | |
| 663 "//third_party/skia/include/images", | |
| 664 "//third_party/skia/include/lazy", | |
| 665 "//third_party/skia/include/pathops", | |
| 666 "//third_party/skia/include/utils", | |
| 667 "//third_party/skia/src/core", | |
| 668 ] | |
| 669 deps = [ "//skia" ] | |
| 670 } | |
| 671 | 634 |
| 672 if (is_win) { | 635 if (is_win) { |
| 673 sources += [ | 636 sources += [ |
| 674 "core/src/fxge/win32/dwrite_int.h", | 637 "core/src/fxge/win32/dwrite_int.h", |
| 675 "core/src/fxge/win32/fx_win32_device.cpp", | 638 "core/src/fxge/win32/fx_win32_device.cpp", |
| 676 "core/src/fxge/win32/fx_win32_dib.cpp", | 639 "core/src/fxge/win32/fx_win32_dib.cpp", |
| 677 "core/src/fxge/win32/fx_win32_dwrite.cpp", | 640 "core/src/fxge/win32/fx_win32_dwrite.cpp", |
| 678 "core/src/fxge/win32/fx_win32_gdipext.cpp", | 641 "core/src/fxge/win32/fx_win32_gdipext.cpp", |
| 679 "core/src/fxge/win32/fx_win32_print.cpp", | 642 "core/src/fxge/win32/fx_win32_print.cpp", |
| 680 "core/src/fxge/win32/win32_int.h", | 643 "core/src/fxge/win32/win32_int.h", |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", | 821 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", |
| 859 "fpdfsdk/src/formfiller/FFL_TextField.cpp", | 822 "fpdfsdk/src/formfiller/FFL_TextField.cpp", |
| 860 "fpdfsdk/src/formfiller/FFL_Utils.cpp", | 823 "fpdfsdk/src/formfiller/FFL_Utils.cpp", |
| 861 ] | 824 ] |
| 862 configs -= [ "//build/config/compiler:chromium_code" ] | 825 configs -= [ "//build/config/compiler:chromium_code" ] |
| 863 if (is_posix) { | 826 if (is_posix) { |
| 864 configs -= [ "//build/config/gcc:no_exceptions" ] | 827 configs -= [ "//build/config/gcc:no_exceptions" ] |
| 865 } | 828 } |
| 866 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] | 829 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] |
| 867 } | 830 } |
| OLD | NEW |