OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//build_overrides/v8.gni") | 5 import("//build_overrides/v8.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("pdfium.gni") | 7 import("pdfium.gni") |
8 | 8 |
9 config("pdfium_common_config") { | 9 config("pdfium_common_config") { |
10 cflags = [] | 10 cflags = [] |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ":fxcodec", | 135 ":fxcodec", |
136 ":fxcrt", | 136 ":fxcrt", |
137 ":fxedit", | 137 ":fxedit", |
138 ":fxge", | 138 ":fxge", |
139 ":javascript", | 139 ":javascript", |
140 ":pdfwindow", | 140 ":pdfwindow", |
141 "third_party:bigint", | 141 "third_party:bigint", |
142 "third_party:pdfium_base", | 142 "third_party:pdfium_base", |
143 ] | 143 ] |
144 | 144 |
| 145 public_deps = [ |
| 146 ":fxcrt", |
| 147 ] |
145 if (pdf_enable_xfa) { | 148 if (pdf_enable_xfa) { |
146 sources += [ | 149 sources += [ |
147 "fpdfsdk/cpdfsdk_xfawidget.cpp", | 150 "fpdfsdk/cpdfsdk_xfawidget.cpp", |
148 "fpdfsdk/cpdfsdk_xfawidgethandler.cpp", | 151 "fpdfsdk/cpdfsdk_xfawidgethandler.cpp", |
149 "fpdfsdk/include/cpdfsdk_xfawidget.h", | 152 "fpdfsdk/include/cpdfsdk_xfawidget.h", |
150 "fpdfsdk/include/cpdfsdk_xfawidgethandler.h", | 153 "fpdfsdk/include/cpdfsdk_xfawidgethandler.h", |
151 ] | 154 ] |
152 | 155 |
153 deps += [ ":fpdfxfa" ] | 156 deps += [ ":fpdfxfa" ] |
154 } | 157 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 ] | 215 ] |
213 | 216 |
214 static_library("fdrm") { | 217 static_library("fdrm") { |
215 sources = [ | 218 sources = [ |
216 "core/fdrm/crypto/fx_crypt.cpp", | 219 "core/fdrm/crypto/fx_crypt.cpp", |
217 "core/fdrm/crypto/fx_crypt_aes.cpp", | 220 "core/fdrm/crypto/fx_crypt_aes.cpp", |
218 "core/fdrm/crypto/fx_crypt_sha.cpp", | 221 "core/fdrm/crypto/fx_crypt_sha.cpp", |
219 "core/fdrm/crypto/include/fx_crypt.h", | 222 "core/fdrm/crypto/include/fx_crypt.h", |
220 ] | 223 ] |
221 configs += [ ":pdfium_core_config" ] | 224 configs += [ ":pdfium_core_config" ] |
| 225 deps = [ |
| 226 ":fxcrt", |
| 227 ] |
222 } | 228 } |
223 | 229 |
224 static_library("fpdfdoc") { | 230 static_library("fpdfdoc") { |
225 sources = [ | 231 sources = [ |
226 "core/fpdfdoc/cline.cpp", | 232 "core/fpdfdoc/cline.cpp", |
227 "core/fpdfdoc/cline.h", | 233 "core/fpdfdoc/cline.h", |
228 "core/fpdfdoc/clines.cpp", | 234 "core/fpdfdoc/clines.cpp", |
229 "core/fpdfdoc/clines.h", | 235 "core/fpdfdoc/clines.h", |
230 "core/fpdfdoc/cpdf_aaction.cpp", | 236 "core/fpdfdoc/cpdf_aaction.cpp", |
231 "core/fpdfdoc/cpdf_action.cpp", | 237 "core/fpdfdoc/cpdf_action.cpp", |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 "core/fpdfdoc/include/cpvt_wordplace.h", | 309 "core/fpdfdoc/include/cpvt_wordplace.h", |
304 "core/fpdfdoc/include/cpvt_wordprops.h", | 310 "core/fpdfdoc/include/cpvt_wordprops.h", |
305 "core/fpdfdoc/include/cpvt_wordrange.h", | 311 "core/fpdfdoc/include/cpvt_wordrange.h", |
306 "core/fpdfdoc/include/fpdf_tagged.h", | 312 "core/fpdfdoc/include/fpdf_tagged.h", |
307 "core/fpdfdoc/include/ipdf_formnotify.h", | 313 "core/fpdfdoc/include/ipdf_formnotify.h", |
308 "core/fpdfdoc/include/ipvt_fontmap.h", | 314 "core/fpdfdoc/include/ipvt_fontmap.h", |
309 "core/fpdfdoc/ipdf_formnotify.cpp", | 315 "core/fpdfdoc/ipdf_formnotify.cpp", |
310 "core/fpdfdoc/tagged_int.h", | 316 "core/fpdfdoc/tagged_int.h", |
311 ] | 317 ] |
312 configs += [ ":pdfium_core_config" ] | 318 configs += [ ":pdfium_core_config" ] |
| 319 deps = [ |
| 320 ":fxcrt", |
| 321 ] |
313 } | 322 } |
314 | 323 |
315 static_library("fpdfapi") { | 324 static_library("fpdfapi") { |
316 sources = [ | 325 sources = [ |
317 "core/fpdfapi/cpdf_modulemgr.cpp", | 326 "core/fpdfapi/cpdf_modulemgr.cpp", |
318 "core/fpdfapi/cpdf_pagerendercontext.cpp", | 327 "core/fpdfapi/cpdf_pagerendercontext.cpp", |
319 "core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp", | 328 "core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp", |
320 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp", | 329 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp", |
321 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp", | 330 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp", |
322 "core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp", | 331 "core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp", |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 "core/fpdfapi/fpdf_render/fpdf_render_text.cpp", | 545 "core/fpdfapi/fpdf_render/fpdf_render_text.cpp", |
537 "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h", | 546 "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h", |
538 "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h", | 547 "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h", |
539 "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h", | 548 "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h", |
540 "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h", | 549 "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h", |
541 "core/fpdfapi/fpdf_render/render_int.h", | 550 "core/fpdfapi/fpdf_render/render_int.h", |
542 "core/fpdfapi/include/cpdf_modulemgr.h", | 551 "core/fpdfapi/include/cpdf_modulemgr.h", |
543 "core/fpdfapi/include/cpdf_pagerendercontext.h", | 552 "core/fpdfapi/include/cpdf_pagerendercontext.h", |
544 ] | 553 ] |
545 configs += [ ":pdfium_core_config" ] | 554 configs += [ ":pdfium_core_config" ] |
| 555 deps = [ |
| 556 ":fxcrt", |
| 557 ] |
546 } | 558 } |
547 | 559 |
548 static_library("fpdftext") { | 560 static_library("fpdftext") { |
549 sources = [ | 561 sources = [ |
550 "core/fpdftext/cpdf_linkextract.cpp", | 562 "core/fpdftext/cpdf_linkextract.cpp", |
551 "core/fpdftext/cpdf_textpage.cpp", | 563 "core/fpdftext/cpdf_textpage.cpp", |
552 "core/fpdftext/cpdf_textpagefind.cpp", | 564 "core/fpdftext/cpdf_textpagefind.cpp", |
553 "core/fpdftext/include/cpdf_linkextract.h", | 565 "core/fpdftext/include/cpdf_linkextract.h", |
554 "core/fpdftext/include/cpdf_textpage.h", | 566 "core/fpdftext/include/cpdf_textpage.h", |
555 "core/fpdftext/include/cpdf_textpagefind.h", | 567 "core/fpdftext/include/cpdf_textpagefind.h", |
556 "core/fpdftext/unicodenormalizationdata.cpp", | 568 "core/fpdftext/unicodenormalizationdata.cpp", |
557 "core/fpdftext/unicodenormalizationdata.h", | 569 "core/fpdftext/unicodenormalizationdata.h", |
558 ] | 570 ] |
559 configs += [ ":pdfium_core_config" ] | 571 configs += [ ":pdfium_core_config" ] |
| 572 deps = [ |
| 573 ":fxcrt", |
| 574 ] |
560 } | 575 } |
561 | 576 |
562 static_library("fxcodec") { | 577 static_library("fxcodec") { |
563 deps = [ | |
564 "third_party:fx_lcms2", | |
565 "third_party:fx_libopenjpeg", | |
566 "third_party:fx_zlib", | |
567 | |
568 # This is a generic JPEG library dependency. | |
569 "//third_party:jpeg", | |
570 ] | |
571 sources = [ | 578 sources = [ |
572 "core/fxcodec/codec/ccodec_basicmodule.h", | 579 "core/fxcodec/codec/ccodec_basicmodule.h", |
573 "core/fxcodec/codec/ccodec_faxmodule.h", | 580 "core/fxcodec/codec/ccodec_faxmodule.h", |
574 "core/fxcodec/codec/ccodec_flatemodule.h", | 581 "core/fxcodec/codec/ccodec_flatemodule.h", |
575 "core/fxcodec/codec/ccodec_iccmodule.h", | 582 "core/fxcodec/codec/ccodec_iccmodule.h", |
576 "core/fxcodec/codec/ccodec_jbig2module.h", | 583 "core/fxcodec/codec/ccodec_jbig2module.h", |
577 "core/fxcodec/codec/ccodec_jpegmodule.h", | 584 "core/fxcodec/codec/ccodec_jpegmodule.h", |
578 "core/fxcodec/codec/ccodec_jpxmodule.h", | 585 "core/fxcodec/codec/ccodec_jpxmodule.h", |
579 "core/fxcodec/codec/ccodec_scanlinedecoder.h", | 586 "core/fxcodec/codec/ccodec_scanlinedecoder.h", |
580 "core/fxcodec/codec/codec_int.h", | 587 "core/fxcodec/codec/codec_int.h", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 "core/fxcodec/jbig2/JBig2_PddProc.h", | 628 "core/fxcodec/jbig2/JBig2_PddProc.h", |
622 "core/fxcodec/jbig2/JBig2_SddProc.cpp", | 629 "core/fxcodec/jbig2/JBig2_SddProc.cpp", |
623 "core/fxcodec/jbig2/JBig2_SddProc.h", | 630 "core/fxcodec/jbig2/JBig2_SddProc.h", |
624 "core/fxcodec/jbig2/JBig2_Segment.cpp", | 631 "core/fxcodec/jbig2/JBig2_Segment.cpp", |
625 "core/fxcodec/jbig2/JBig2_Segment.h", | 632 "core/fxcodec/jbig2/JBig2_Segment.h", |
626 "core/fxcodec/jbig2/JBig2_SymbolDict.cpp", | 633 "core/fxcodec/jbig2/JBig2_SymbolDict.cpp", |
627 "core/fxcodec/jbig2/JBig2_SymbolDict.h", | 634 "core/fxcodec/jbig2/JBig2_SymbolDict.h", |
628 "core/fxcodec/jbig2/JBig2_TrdProc.cpp", | 635 "core/fxcodec/jbig2/JBig2_TrdProc.cpp", |
629 "core/fxcodec/jbig2/JBig2_TrdProc.h", | 636 "core/fxcodec/jbig2/JBig2_TrdProc.h", |
630 ] | 637 ] |
| 638 configs += [ ":pdfium_core_config" ] |
631 include_dirs = [] | 639 include_dirs = [] |
| 640 deps = [ |
| 641 ":fxcrt", |
| 642 "third_party:fx_lcms2", |
| 643 "third_party:fx_libopenjpeg", |
| 644 "third_party:fx_zlib", |
| 645 |
| 646 # This is a generic JPEG library dependency. |
| 647 "//third_party:jpeg", |
| 648 ] |
| 649 |
632 if (pdf_enable_xfa) { | 650 if (pdf_enable_xfa) { |
633 sources += [ | 651 sources += [ |
634 "core/fxcodec/codec/ccodec_bmpmodule.h", | 652 "core/fxcodec/codec/ccodec_bmpmodule.h", |
635 "core/fxcodec/codec/ccodec_gifmodule.h", | 653 "core/fxcodec/codec/ccodec_gifmodule.h", |
636 "core/fxcodec/codec/ccodec_pngmodule.h", | 654 "core/fxcodec/codec/ccodec_pngmodule.h", |
637 "core/fxcodec/codec/ccodec_tiffmodule.h", | 655 "core/fxcodec/codec/ccodec_tiffmodule.h", |
638 "core/fxcodec/codec/fx_codec_bmp.cpp", | 656 "core/fxcodec/codec/fx_codec_bmp.cpp", |
639 "core/fxcodec/codec/fx_codec_gif.cpp", | 657 "core/fxcodec/codec/fx_codec_gif.cpp", |
640 "core/fxcodec/codec/fx_codec_png.cpp", | 658 "core/fxcodec/codec/fx_codec_png.cpp", |
641 "core/fxcodec/codec/fx_codec_progress.cpp", | 659 "core/fxcodec/codec/fx_codec_progress.cpp", |
642 "core/fxcodec/codec/fx_codec_tiff.cpp", | 660 "core/fxcodec/codec/fx_codec_tiff.cpp", |
643 "core/fxcodec/codec/include/ccodec_progressivedecoder.h", | 661 "core/fxcodec/codec/include/ccodec_progressivedecoder.h", |
644 "core/fxcodec/lbmp/fx_bmp.cpp", | 662 "core/fxcodec/lbmp/fx_bmp.cpp", |
645 "core/fxcodec/lbmp/fx_bmp.h", | 663 "core/fxcodec/lbmp/fx_bmp.h", |
646 "core/fxcodec/lgif/fx_gif.cpp", | 664 "core/fxcodec/lgif/fx_gif.cpp", |
647 "core/fxcodec/lgif/fx_gif.h", | 665 "core/fxcodec/lgif/fx_gif.h", |
648 ] | 666 ] |
649 deps += [ | 667 deps += [ |
650 "third_party:fx_lpng", | 668 "third_party:fx_lpng", |
651 "third_party:fx_tiff", | 669 "third_party:fx_tiff", |
652 ] | 670 ] |
653 } | 671 } |
654 if (is_posix) { | 672 if (is_posix) { |
655 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int | 673 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int |
656 # conversion to check that an address is 16-bit aligned (benign). | 674 # conversion to check that an address is 16-bit aligned (benign). |
657 cflags_c = [ "-Wno-pointer-to-int-cast" ] | 675 cflags_c = [ "-Wno-pointer-to-int-cast" ] |
658 } | 676 } |
659 configs += [ ":pdfium_core_config" ] | |
660 } | 677 } |
661 | 678 |
662 config("fxge_warnings") { | 679 config("fxge_warnings") { |
663 if (is_clang) { | 680 if (is_clang) { |
664 cflags = [ | 681 cflags = [ |
665 # http://code.google.com/p/pdfium/issues/detail?id=188 | 682 # http://code.google.com/p/pdfium/issues/detail?id=188 |
666 "-Wno-switch", | 683 "-Wno-switch", |
667 ] | 684 ] |
668 } | 685 } |
669 } | 686 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 "core/fxcrt/include/fx_safe_types.h", | 722 "core/fxcrt/include/fx_safe_types.h", |
706 "core/fxcrt/include/fx_stream.h", | 723 "core/fxcrt/include/fx_stream.h", |
707 "core/fxcrt/include/fx_string.h", | 724 "core/fxcrt/include/fx_string.h", |
708 "core/fxcrt/include/fx_system.h", | 725 "core/fxcrt/include/fx_system.h", |
709 "core/fxcrt/include/fx_ucd.h", | 726 "core/fxcrt/include/fx_ucd.h", |
710 "core/fxcrt/include/fx_xml.h", | 727 "core/fxcrt/include/fx_xml.h", |
711 "core/fxcrt/plex.h", | 728 "core/fxcrt/plex.h", |
712 "core/fxcrt/xml_int.h", | 729 "core/fxcrt/xml_int.h", |
713 ] | 730 ] |
714 configs += [ ":pdfium_core_config" ] | 731 configs += [ ":pdfium_core_config" ] |
| 732 visibility += [ "third_party:*" ] |
| 733 deps = [ |
| 734 "third_party:pdfium_base", |
| 735 ] |
| 736 public_deps = [ |
| 737 "third_party:pdfium_base", |
| 738 ] |
715 | 739 |
716 if (pdf_enable_xfa) { | 740 if (pdf_enable_xfa) { |
717 sources += [ | 741 sources += [ |
718 "core/fxcrt/fx_arabic.cpp", | 742 "core/fxcrt/fx_arabic.cpp", |
719 "core/fxcrt/fx_basic_maps.cpp", | 743 "core/fxcrt/fx_basic_maps.cpp", |
720 "core/fxcrt/include/fx_arabic.h", | 744 "core/fxcrt/include/fx_arabic.h", |
721 "core/fxcrt/include/fx_arb.h", | 745 "core/fxcrt/include/fx_arb.h", |
722 ] | 746 ] |
723 } | 747 } |
724 } | 748 } |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 "core/fxge/include/ifx_renderdevicedriver.h", | 828 "core/fxge/include/ifx_renderdevicedriver.h", |
805 "core/fxge/include/ifx_systemfontinfo.h", | 829 "core/fxge/include/ifx_systemfontinfo.h", |
806 "core/fxge/win32/cfx_windowsdib.h", | 830 "core/fxge/win32/cfx_windowsdib.h", |
807 ] | 831 ] |
808 | 832 |
809 configs += [ | 833 configs += [ |
810 ":fxge_warnings", | 834 ":fxge_warnings", |
811 ":pdfium_core_config", | 835 ":pdfium_core_config", |
812 ] | 836 ] |
813 | 837 |
| 838 deps = [ |
| 839 ":fxcrt", |
| 840 ] |
| 841 |
814 if (pdf_enable_xfa) { | 842 if (pdf_enable_xfa) { |
815 sources += [ | 843 sources += [ |
816 "core/fxge/ge/cfx_unicodeencodingex.cpp", | 844 "core/fxge/ge/cfx_unicodeencodingex.cpp", |
817 "core/fxge/include/cfx_unicodeencodingex.h", | 845 "core/fxge/include/cfx_unicodeencodingex.h", |
818 ] | 846 ] |
819 } | 847 } |
820 | 848 |
821 if (pdf_use_skia) { | 849 if (pdf_use_skia) { |
822 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] | 850 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] |
823 deps = [ | 851 deps += [ "//skia" ] |
824 "//skia", | |
825 ] | |
826 } else { | 852 } else { |
827 sources += [ | 853 sources += [ |
828 "core/fxge/agg/fx_agg_driver.cpp", | 854 "core/fxge/agg/fx_agg_driver.cpp", |
829 "core/fxge/agg/fx_agg_driver.h", | 855 "core/fxge/agg/fx_agg_driver.h", |
830 "core/fxge/apple/fx_apple_platform.cpp", | 856 "core/fxge/apple/fx_apple_platform.cpp", |
831 ] | 857 ] |
832 deps = [ | 858 deps += [ "third_party:fx_agg" ] |
833 "third_party:fx_agg", | |
834 ] | |
835 } | 859 } |
836 | 860 |
837 if (is_win) { | 861 if (is_win) { |
838 sources += [ | 862 sources += [ |
839 "core/fxge/win32/dwrite_int.h", | 863 "core/fxge/win32/dwrite_int.h", |
840 "core/fxge/win32/fx_win32_device.cpp", | 864 "core/fxge/win32/fx_win32_device.cpp", |
841 "core/fxge/win32/fx_win32_dib.cpp", | 865 "core/fxge/win32/fx_win32_dib.cpp", |
842 "core/fxge/win32/fx_win32_dwrite.cpp", | 866 "core/fxge/win32/fx_win32_dwrite.cpp", |
843 "core/fxge/win32/fx_win32_gdipext.cpp", | 867 "core/fxge/win32/fx_win32_gdipext.cpp", |
844 "core/fxge/win32/fx_win32_print.cpp", | 868 "core/fxge/win32/fx_win32_print.cpp", |
845 "core/fxge/win32/win32_int.h", | 869 "core/fxge/win32/win32_int.h", |
846 ] | 870 ] |
847 configs -= [ "//build/config/win:lean_and_mean" ] | 871 configs -= [ "//build/config/win:lean_and_mean" ] |
848 } | 872 } |
849 } | 873 } |
850 | 874 |
851 static_library("fxedit") { | 875 static_library("fxedit") { |
852 sources = [ | 876 sources = [ |
853 "fpdfsdk/fxedit/fxet_ap.cpp", | 877 "fpdfsdk/fxedit/fxet_ap.cpp", |
854 "fpdfsdk/fxedit/fxet_edit.cpp", | 878 "fpdfsdk/fxedit/fxet_edit.cpp", |
855 "fpdfsdk/fxedit/fxet_list.cpp", | 879 "fpdfsdk/fxedit/fxet_list.cpp", |
856 "fpdfsdk/fxedit/include/fx_edit.h", | 880 "fpdfsdk/fxedit/include/fx_edit.h", |
857 "fpdfsdk/fxedit/include/fxet_edit.h", | 881 "fpdfsdk/fxedit/include/fxet_edit.h", |
858 "fpdfsdk/fxedit/include/fxet_list.h", | 882 "fpdfsdk/fxedit/include/fxet_list.h", |
859 ] | 883 ] |
860 configs += [ ":pdfium_core_config" ] | 884 configs += [ ":pdfium_core_config" ] |
| 885 deps = [ |
| 886 ":fxcrt", |
| 887 ] |
861 } | 888 } |
862 | 889 |
863 static_library("pdfwindow") { | 890 static_library("pdfwindow") { |
864 sources = [ | 891 sources = [ |
865 "fpdfsdk/pdfwindow/PWL_Button.cpp", | 892 "fpdfsdk/pdfwindow/PWL_Button.cpp", |
866 "fpdfsdk/pdfwindow/PWL_Button.h", | 893 "fpdfsdk/pdfwindow/PWL_Button.h", |
867 "fpdfsdk/pdfwindow/PWL_Caret.cpp", | 894 "fpdfsdk/pdfwindow/PWL_Caret.cpp", |
868 "fpdfsdk/pdfwindow/PWL_Caret.h", | 895 "fpdfsdk/pdfwindow/PWL_Caret.h", |
869 "fpdfsdk/pdfwindow/PWL_ComboBox.cpp", | 896 "fpdfsdk/pdfwindow/PWL_ComboBox.cpp", |
870 "fpdfsdk/pdfwindow/PWL_ComboBox.h", | 897 "fpdfsdk/pdfwindow/PWL_ComboBox.h", |
(...skipping 10 matching lines...) Expand all Loading... |
881 "fpdfsdk/pdfwindow/PWL_ScrollBar.cpp", | 908 "fpdfsdk/pdfwindow/PWL_ScrollBar.cpp", |
882 "fpdfsdk/pdfwindow/PWL_ScrollBar.h", | 909 "fpdfsdk/pdfwindow/PWL_ScrollBar.h", |
883 "fpdfsdk/pdfwindow/PWL_SpecialButton.cpp", | 910 "fpdfsdk/pdfwindow/PWL_SpecialButton.cpp", |
884 "fpdfsdk/pdfwindow/PWL_SpecialButton.h", | 911 "fpdfsdk/pdfwindow/PWL_SpecialButton.h", |
885 "fpdfsdk/pdfwindow/PWL_Utils.cpp", | 912 "fpdfsdk/pdfwindow/PWL_Utils.cpp", |
886 "fpdfsdk/pdfwindow/PWL_Utils.h", | 913 "fpdfsdk/pdfwindow/PWL_Utils.h", |
887 "fpdfsdk/pdfwindow/PWL_Wnd.cpp", | 914 "fpdfsdk/pdfwindow/PWL_Wnd.cpp", |
888 "fpdfsdk/pdfwindow/PWL_Wnd.h", | 915 "fpdfsdk/pdfwindow/PWL_Wnd.h", |
889 ] | 916 ] |
890 configs += [ ":pdfium_core_config" ] | 917 configs += [ ":pdfium_core_config" ] |
| 918 deps = [ |
| 919 ":fxcrt", |
| 920 ] |
891 } | 921 } |
892 | 922 |
893 static_library("javascript") { | 923 static_library("javascript") { |
894 sources = [ | 924 sources = [ |
895 "fpdfsdk/javascript/ijs_context.h", | 925 "fpdfsdk/javascript/ijs_context.h", |
896 "fpdfsdk/javascript/ijs_runtime.h", | 926 "fpdfsdk/javascript/ijs_runtime.h", |
897 ] | 927 ] |
| 928 configs += [ ":pdfium_core_config" ] |
| 929 deps = [ |
| 930 ":fxcrt", |
| 931 ] |
| 932 |
898 if (pdf_enable_v8) { | 933 if (pdf_enable_v8) { |
899 sources += [ | 934 sources += [ |
900 "fpdfsdk/javascript/Annot.cpp", | 935 "fpdfsdk/javascript/Annot.cpp", |
901 "fpdfsdk/javascript/Annot.h", | 936 "fpdfsdk/javascript/Annot.h", |
902 "fpdfsdk/javascript/Consts.cpp", | 937 "fpdfsdk/javascript/Consts.cpp", |
903 "fpdfsdk/javascript/Consts.h", | 938 "fpdfsdk/javascript/Consts.h", |
904 "fpdfsdk/javascript/Document.cpp", | 939 "fpdfsdk/javascript/Document.cpp", |
905 "fpdfsdk/javascript/Document.h", | 940 "fpdfsdk/javascript/Document.h", |
906 "fpdfsdk/javascript/Field.cpp", | 941 "fpdfsdk/javascript/Field.cpp", |
907 "fpdfsdk/javascript/Field.h", | 942 "fpdfsdk/javascript/Field.h", |
(...skipping 26 matching lines...) Expand all Loading... |
934 "fpdfsdk/javascript/event.h", | 969 "fpdfsdk/javascript/event.h", |
935 "fpdfsdk/javascript/global.cpp", | 970 "fpdfsdk/javascript/global.cpp", |
936 "fpdfsdk/javascript/global.h", | 971 "fpdfsdk/javascript/global.h", |
937 "fpdfsdk/javascript/report.cpp", | 972 "fpdfsdk/javascript/report.cpp", |
938 "fpdfsdk/javascript/report.h", | 973 "fpdfsdk/javascript/report.h", |
939 "fpdfsdk/javascript/resource.cpp", | 974 "fpdfsdk/javascript/resource.cpp", |
940 "fpdfsdk/javascript/resource.h", | 975 "fpdfsdk/javascript/resource.h", |
941 "fpdfsdk/javascript/util.cpp", | 976 "fpdfsdk/javascript/util.cpp", |
942 "fpdfsdk/javascript/util.h", | 977 "fpdfsdk/javascript/util.h", |
943 ] | 978 ] |
944 deps = [ | 979 deps += [ ":fxjs" ] |
945 ":fxjs", | |
946 ] | |
947 configs += [ "//v8:external_startup_data" ] | 980 configs += [ "//v8:external_startup_data" ] |
948 } else { | 981 } else { |
949 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ] | 982 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ] |
950 } | 983 } |
951 configs += [ ":pdfium_core_config" ] | |
952 } | 984 } |
953 | 985 |
954 static_library("formfiller") { | 986 static_library("formfiller") { |
955 sources = [ | 987 sources = [ |
956 "fpdfsdk/formfiller/cba_fontmap.cpp", | 988 "fpdfsdk/formfiller/cba_fontmap.cpp", |
957 "fpdfsdk/formfiller/cba_fontmap.h", | 989 "fpdfsdk/formfiller/cba_fontmap.h", |
958 "fpdfsdk/formfiller/cffl_checkbox.cpp", | 990 "fpdfsdk/formfiller/cffl_checkbox.cpp", |
959 "fpdfsdk/formfiller/cffl_checkbox.h", | 991 "fpdfsdk/formfiller/cffl_checkbox.h", |
960 "fpdfsdk/formfiller/cffl_combobox.cpp", | 992 "fpdfsdk/formfiller/cffl_combobox.cpp", |
961 "fpdfsdk/formfiller/cffl_combobox.h", | 993 "fpdfsdk/formfiller/cffl_combobox.h", |
962 "fpdfsdk/formfiller/cffl_formfiller.cpp", | 994 "fpdfsdk/formfiller/cffl_formfiller.cpp", |
963 "fpdfsdk/formfiller/cffl_formfiller.h", | 995 "fpdfsdk/formfiller/cffl_formfiller.h", |
964 "fpdfsdk/formfiller/cffl_iformfiller.cpp", | 996 "fpdfsdk/formfiller/cffl_iformfiller.cpp", |
965 "fpdfsdk/formfiller/cffl_iformfiller.h", | 997 "fpdfsdk/formfiller/cffl_iformfiller.h", |
966 "fpdfsdk/formfiller/cffl_listbox.cpp", | 998 "fpdfsdk/formfiller/cffl_listbox.cpp", |
967 "fpdfsdk/formfiller/cffl_listbox.h", | 999 "fpdfsdk/formfiller/cffl_listbox.h", |
968 "fpdfsdk/formfiller/cffl_pushbutton.cpp", | 1000 "fpdfsdk/formfiller/cffl_pushbutton.cpp", |
969 "fpdfsdk/formfiller/cffl_pushbutton.h", | 1001 "fpdfsdk/formfiller/cffl_pushbutton.h", |
970 "fpdfsdk/formfiller/cffl_radiobutton.cpp", | 1002 "fpdfsdk/formfiller/cffl_radiobutton.cpp", |
971 "fpdfsdk/formfiller/cffl_radiobutton.h", | 1003 "fpdfsdk/formfiller/cffl_radiobutton.h", |
972 "fpdfsdk/formfiller/cffl_textfield.cpp", | 1004 "fpdfsdk/formfiller/cffl_textfield.cpp", |
973 "fpdfsdk/formfiller/cffl_textfield.h", | 1005 "fpdfsdk/formfiller/cffl_textfield.h", |
974 ] | 1006 ] |
975 configs += [ ":pdfium_core_config" ] | 1007 configs += [ ":pdfium_core_config" ] |
| 1008 deps = [ |
| 1009 ":fxcrt", |
| 1010 ] |
976 } | 1011 } |
977 | 1012 |
978 if (pdf_enable_v8) { | 1013 if (pdf_enable_v8) { |
979 static_library("fxjs") { | 1014 static_library("fxjs") { |
980 sources = [ | 1015 sources = [ |
981 "fxjs/fxjs_v8.cpp", | 1016 "fxjs/fxjs_v8.cpp", |
982 "fxjs/include/fxjs_v8.h", | 1017 "fxjs/include/fxjs_v8.h", |
983 ] | 1018 ] |
| 1019 configs += [ ":pdfium_core_config" ] |
| 1020 deps = [ |
| 1021 ":fxcrt", |
| 1022 "//v8", |
| 1023 "//v8:v8_libplatform", |
| 1024 ] |
| 1025 include_dirs = [ |
| 1026 "//v8", |
| 1027 "//v8/include", |
| 1028 ] |
| 1029 public_deps = [ |
| 1030 "//v8", |
| 1031 ] |
| 1032 |
984 if (pdf_enable_xfa) { | 1033 if (pdf_enable_xfa) { |
985 sources += [ | 1034 sources += [ |
986 "fxjs/cfxjse_arguments.cpp", | 1035 "fxjs/cfxjse_arguments.cpp", |
987 "fxjs/cfxjse_class.cpp", | 1036 "fxjs/cfxjse_class.cpp", |
988 "fxjs/cfxjse_context.cpp", | 1037 "fxjs/cfxjse_context.cpp", |
989 "fxjs/cfxjse_isolatetracker.cpp", | 1038 "fxjs/cfxjse_isolatetracker.cpp", |
990 "fxjs/cfxjse_isolatetracker.h", | 1039 "fxjs/cfxjse_isolatetracker.h", |
991 "fxjs/cfxjse_runtimedata.cpp", | 1040 "fxjs/cfxjse_runtimedata.cpp", |
992 "fxjs/cfxjse_runtimedata.h", | 1041 "fxjs/cfxjse_runtimedata.h", |
993 "fxjs/cfxjse_value.cpp", | 1042 "fxjs/cfxjse_value.cpp", |
994 "fxjs/include/cfxjse_arguments.h", | 1043 "fxjs/include/cfxjse_arguments.h", |
995 "fxjs/include/cfxjse_class.h", | 1044 "fxjs/include/cfxjse_class.h", |
996 "fxjs/include/cfxjse_context.h", | 1045 "fxjs/include/cfxjse_context.h", |
997 "fxjs/include/cfxjse_value.h", | 1046 "fxjs/include/cfxjse_value.h", |
998 "fxjs/include/fxjse.h", | 1047 "fxjs/include/fxjse.h", |
999 ] | 1048 ] |
1000 } | 1049 } |
1001 deps = [ | |
1002 "//v8", | |
1003 "//v8:v8_libplatform", | |
1004 ] | |
1005 configs += [ ":pdfium_core_config" ] | |
1006 include_dirs = [ | |
1007 "//v8", | |
1008 "//v8/include", | |
1009 ] | |
1010 public_deps = [ | |
1011 "//v8", | |
1012 ] | |
1013 } | 1050 } |
1014 } | 1051 } |
1015 | 1052 |
1016 if (pdf_enable_xfa) { | 1053 if (pdf_enable_xfa) { |
1017 static_library("fpdfxfa") { | 1054 static_library("fpdfxfa") { |
1018 sources = [ | 1055 sources = [ |
1019 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp", | 1056 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp", |
1020 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp", | 1057 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp", |
1021 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp", | 1058 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp", |
1022 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp", | 1059 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp", |
1023 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h", | 1060 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h", |
1024 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h", | 1061 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h", |
1025 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h", | 1062 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h", |
1026 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", | 1063 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", |
1027 ] | 1064 ] |
1028 deps = [ | 1065 deps = [ |
| 1066 ":fxcrt", |
1029 ":xfa", | 1067 ":xfa", |
1030 ] | 1068 ] |
1031 configs += [ ":pdfium_core_config" ] | 1069 configs += [ ":pdfium_core_config" ] |
1032 } | 1070 } |
1033 | 1071 |
1034 static_library("xfa") { | 1072 static_library("xfa") { |
1035 sources = [ | 1073 sources = [ |
1036 "xfa/fde/cfde_path.cpp", | 1074 "xfa/fde/cfde_path.cpp", |
1037 "xfa/fde/cfde_path.h", | 1075 "xfa/fde/cfde_path.h", |
1038 "xfa/fde/cfde_txtedtbuf.cpp", | 1076 "xfa/fde/cfde_txtedtbuf.cpp", |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 "xfa/fxgraphics/cfx_path_generator.cpp", | 1619 "xfa/fxgraphics/cfx_path_generator.cpp", |
1582 "xfa/fxgraphics/cfx_path_generator.h", | 1620 "xfa/fxgraphics/cfx_path_generator.h", |
1583 "xfa/fxgraphics/cfx_pattern.cpp", | 1621 "xfa/fxgraphics/cfx_pattern.cpp", |
1584 "xfa/fxgraphics/cfx_pattern.h", | 1622 "xfa/fxgraphics/cfx_pattern.h", |
1585 "xfa/fxgraphics/cfx_shading.cpp", | 1623 "xfa/fxgraphics/cfx_shading.cpp", |
1586 "xfa/fxgraphics/cfx_shading.h", | 1624 "xfa/fxgraphics/cfx_shading.h", |
1587 "xfa/fxgraphics/include/cfx_graphics.h", | 1625 "xfa/fxgraphics/include/cfx_graphics.h", |
1588 ] | 1626 ] |
1589 include_dirs = [ "." ] | 1627 include_dirs = [ "." ] |
1590 deps = [ | 1628 deps = [ |
| 1629 ":fxcrt", |
1591 ":fxjs", | 1630 ":fxjs", |
1592 ] | 1631 ] |
1593 configs += [ | 1632 configs += [ |
1594 ":pdfium_core_config", | 1633 ":pdfium_core_config", |
1595 ":xfa_warnings", | 1634 ":xfa_warnings", |
1596 ] | 1635 ] |
1597 } | 1636 } |
1598 } | 1637 } |
1599 | 1638 |
1600 test("pdfium_unittests") { | 1639 test("pdfium_unittests") { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 } | 1755 } |
1717 | 1756 |
1718 if (pdf_is_standalone) { | 1757 if (pdf_is_standalone) { |
1719 source_set("samples") { | 1758 source_set("samples") { |
1720 testonly = true | 1759 testonly = true |
1721 deps = [ | 1760 deps = [ |
1722 "//samples", | 1761 "//samples", |
1723 ] | 1762 ] |
1724 } | 1763 } |
1725 } | 1764 } |
OLD | NEW |