Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: BUILD.gn

Issue 2289263005: Fix gn gn --check complaints about fxcrt. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 "core/fpdfapi/fpdf_render/fpdf_render_text.cpp", 541 "core/fpdfapi/fpdf_render/fpdf_render_text.cpp",
533 "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h", 542 "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h",
534 "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h", 543 "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h",
535 "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h", 544 "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h",
536 "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h", 545 "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h",
537 "core/fpdfapi/fpdf_render/render_int.h", 546 "core/fpdfapi/fpdf_render/render_int.h",
538 "core/fpdfapi/include/cpdf_modulemgr.h", 547 "core/fpdfapi/include/cpdf_modulemgr.h",
539 "core/fpdfapi/include/cpdf_pagerendercontext.h", 548 "core/fpdfapi/include/cpdf_pagerendercontext.h",
540 ] 549 ]
541 configs += [ ":pdfium_core_config" ] 550 configs += [ ":pdfium_core_config" ]
551 deps = [
552 ":fxcrt",
553 ]
542 } 554 }
543 555
544 static_library("fpdftext") { 556 static_library("fpdftext") {
545 sources = [ 557 sources = [
546 "core/fpdftext/cpdf_linkextract.cpp", 558 "core/fpdftext/cpdf_linkextract.cpp",
547 "core/fpdftext/cpdf_textpage.cpp", 559 "core/fpdftext/cpdf_textpage.cpp",
548 "core/fpdftext/cpdf_textpagefind.cpp", 560 "core/fpdftext/cpdf_textpagefind.cpp",
549 "core/fpdftext/include/cpdf_linkextract.h", 561 "core/fpdftext/include/cpdf_linkextract.h",
550 "core/fpdftext/include/cpdf_textpage.h", 562 "core/fpdftext/include/cpdf_textpage.h",
551 "core/fpdftext/include/cpdf_textpagefind.h", 563 "core/fpdftext/include/cpdf_textpagefind.h",
552 "core/fpdftext/unicodenormalizationdata.cpp", 564 "core/fpdftext/unicodenormalizationdata.cpp",
553 "core/fpdftext/unicodenormalizationdata.h", 565 "core/fpdftext/unicodenormalizationdata.h",
554 ] 566 ]
555 configs += [ ":pdfium_core_config" ] 567 configs += [ ":pdfium_core_config" ]
568 deps = [
569 ":fxcrt",
570 ]
556 } 571 }
557 572
558 static_library("fxcodec") { 573 static_library("fxcodec") {
559 deps = [
560 "third_party:fx_lcms2",
561 "third_party:fx_libopenjpeg",
562 "third_party:fx_zlib",
563
564 # This is a generic JPEG library dependency.
565 "//third_party:jpeg",
566 ]
567 sources = [ 574 sources = [
568 "core/fxcodec/codec/ccodec_basicmodule.h", 575 "core/fxcodec/codec/ccodec_basicmodule.h",
569 "core/fxcodec/codec/ccodec_faxmodule.h", 576 "core/fxcodec/codec/ccodec_faxmodule.h",
570 "core/fxcodec/codec/ccodec_flatemodule.h", 577 "core/fxcodec/codec/ccodec_flatemodule.h",
571 "core/fxcodec/codec/ccodec_iccmodule.h", 578 "core/fxcodec/codec/ccodec_iccmodule.h",
572 "core/fxcodec/codec/ccodec_jbig2module.h", 579 "core/fxcodec/codec/ccodec_jbig2module.h",
573 "core/fxcodec/codec/ccodec_jpegmodule.h", 580 "core/fxcodec/codec/ccodec_jpegmodule.h",
574 "core/fxcodec/codec/ccodec_jpxmodule.h", 581 "core/fxcodec/codec/ccodec_jpxmodule.h",
575 "core/fxcodec/codec/ccodec_scanlinedecoder.h", 582 "core/fxcodec/codec/ccodec_scanlinedecoder.h",
576 "core/fxcodec/codec/codec_int.h", 583 "core/fxcodec/codec/codec_int.h",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 "core/fxcodec/jbig2/JBig2_PddProc.h", 624 "core/fxcodec/jbig2/JBig2_PddProc.h",
618 "core/fxcodec/jbig2/JBig2_SddProc.cpp", 625 "core/fxcodec/jbig2/JBig2_SddProc.cpp",
619 "core/fxcodec/jbig2/JBig2_SddProc.h", 626 "core/fxcodec/jbig2/JBig2_SddProc.h",
620 "core/fxcodec/jbig2/JBig2_Segment.cpp", 627 "core/fxcodec/jbig2/JBig2_Segment.cpp",
621 "core/fxcodec/jbig2/JBig2_Segment.h", 628 "core/fxcodec/jbig2/JBig2_Segment.h",
622 "core/fxcodec/jbig2/JBig2_SymbolDict.cpp", 629 "core/fxcodec/jbig2/JBig2_SymbolDict.cpp",
623 "core/fxcodec/jbig2/JBig2_SymbolDict.h", 630 "core/fxcodec/jbig2/JBig2_SymbolDict.h",
624 "core/fxcodec/jbig2/JBig2_TrdProc.cpp", 631 "core/fxcodec/jbig2/JBig2_TrdProc.cpp",
625 "core/fxcodec/jbig2/JBig2_TrdProc.h", 632 "core/fxcodec/jbig2/JBig2_TrdProc.h",
626 ] 633 ]
634 configs += [ ":pdfium_core_config" ]
627 include_dirs = [] 635 include_dirs = []
636 deps = [
637 ":fxcrt",
638 "third_party:fx_lcms2",
639 "third_party:fx_libopenjpeg",
640 "third_party:fx_zlib",
641
642 # This is a generic JPEG library dependency.
643 "//third_party:jpeg",
644 ]
645
628 if (pdf_enable_xfa) { 646 if (pdf_enable_xfa) {
629 sources += [ 647 sources += [
630 "core/fxcodec/codec/ccodec_bmpmodule.h", 648 "core/fxcodec/codec/ccodec_bmpmodule.h",
631 "core/fxcodec/codec/ccodec_gifmodule.h", 649 "core/fxcodec/codec/ccodec_gifmodule.h",
632 "core/fxcodec/codec/ccodec_pngmodule.h", 650 "core/fxcodec/codec/ccodec_pngmodule.h",
633 "core/fxcodec/codec/ccodec_tiffmodule.h", 651 "core/fxcodec/codec/ccodec_tiffmodule.h",
634 "core/fxcodec/codec/fx_codec_bmp.cpp", 652 "core/fxcodec/codec/fx_codec_bmp.cpp",
635 "core/fxcodec/codec/fx_codec_gif.cpp", 653 "core/fxcodec/codec/fx_codec_gif.cpp",
636 "core/fxcodec/codec/fx_codec_png.cpp", 654 "core/fxcodec/codec/fx_codec_png.cpp",
637 "core/fxcodec/codec/fx_codec_progress.cpp", 655 "core/fxcodec/codec/fx_codec_progress.cpp",
638 "core/fxcodec/codec/fx_codec_tiff.cpp", 656 "core/fxcodec/codec/fx_codec_tiff.cpp",
639 "core/fxcodec/codec/include/ccodec_progressivedecoder.h", 657 "core/fxcodec/codec/include/ccodec_progressivedecoder.h",
640 "core/fxcodec/lbmp/fx_bmp.cpp", 658 "core/fxcodec/lbmp/fx_bmp.cpp",
641 "core/fxcodec/lbmp/fx_bmp.h", 659 "core/fxcodec/lbmp/fx_bmp.h",
642 "core/fxcodec/lgif/fx_gif.cpp", 660 "core/fxcodec/lgif/fx_gif.cpp",
643 "core/fxcodec/lgif/fx_gif.h", 661 "core/fxcodec/lgif/fx_gif.h",
644 ] 662 ]
645 deps += [ 663 deps += [
646 "third_party:fx_lpng", 664 "third_party:fx_lpng",
647 "third_party:fx_tiff", 665 "third_party:fx_tiff",
648 ] 666 ]
649 } 667 }
650 if (is_posix) { 668 if (is_posix) {
651 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int 669 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
652 # conversion to check that an address is 16-bit aligned (benign). 670 # conversion to check that an address is 16-bit aligned (benign).
653 cflags_c = [ "-Wno-pointer-to-int-cast" ] 671 cflags_c = [ "-Wno-pointer-to-int-cast" ]
654 } 672 }
655 configs += [ ":pdfium_core_config" ]
656 } 673 }
657 674
658 config("fxge_warnings") { 675 config("fxge_warnings") {
659 if (is_clang) { 676 if (is_clang) {
660 cflags = [ 677 cflags = [
661 # http://code.google.com/p/pdfium/issues/detail?id=188 678 # http://code.google.com/p/pdfium/issues/detail?id=188
662 "-Wno-switch", 679 "-Wno-switch",
663 ] 680 ]
664 } 681 }
665 } 682 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 "core/fxcrt/include/fx_safe_types.h", 718 "core/fxcrt/include/fx_safe_types.h",
702 "core/fxcrt/include/fx_stream.h", 719 "core/fxcrt/include/fx_stream.h",
703 "core/fxcrt/include/fx_string.h", 720 "core/fxcrt/include/fx_string.h",
704 "core/fxcrt/include/fx_system.h", 721 "core/fxcrt/include/fx_system.h",
705 "core/fxcrt/include/fx_ucd.h", 722 "core/fxcrt/include/fx_ucd.h",
706 "core/fxcrt/include/fx_xml.h", 723 "core/fxcrt/include/fx_xml.h",
707 "core/fxcrt/plex.h", 724 "core/fxcrt/plex.h",
708 "core/fxcrt/xml_int.h", 725 "core/fxcrt/xml_int.h",
709 ] 726 ]
710 configs += [ ":pdfium_core_config" ] 727 configs += [ ":pdfium_core_config" ]
728 visibility += [ "//third_party:*" ]
729 deps = [
730 "//third_party:pdfium_base",
731 ]
732 public_deps = [
733 "//third_party:pdfium_base",
734 ]
711 735
712 if (pdf_enable_xfa) { 736 if (pdf_enable_xfa) {
713 sources += [ 737 sources += [
714 "core/fxcrt/fx_arabic.cpp", 738 "core/fxcrt/fx_arabic.cpp",
715 "core/fxcrt/fx_basic_maps.cpp", 739 "core/fxcrt/fx_basic_maps.cpp",
716 "core/fxcrt/include/fx_arabic.h", 740 "core/fxcrt/include/fx_arabic.h",
717 "core/fxcrt/include/fx_arb.h", 741 "core/fxcrt/include/fx_arb.h",
718 ] 742 ]
719 } 743 }
720 } 744 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 "core/fxge/include/ifx_renderdevicedriver.h", 824 "core/fxge/include/ifx_renderdevicedriver.h",
801 "core/fxge/include/ifx_systemfontinfo.h", 825 "core/fxge/include/ifx_systemfontinfo.h",
802 "core/fxge/win32/cfx_windowsdib.h", 826 "core/fxge/win32/cfx_windowsdib.h",
803 ] 827 ]
804 828
805 configs += [ 829 configs += [
806 ":fxge_warnings", 830 ":fxge_warnings",
807 ":pdfium_core_config", 831 ":pdfium_core_config",
808 ] 832 ]
809 833
834 deps = [
835 ":fxcrt",
836 ]
837
810 if (pdf_enable_xfa) { 838 if (pdf_enable_xfa) {
811 sources += [ 839 sources += [
812 "core/fxge/ge/cfx_unicodeencodingex.cpp", 840 "core/fxge/ge/cfx_unicodeencodingex.cpp",
813 "core/fxge/include/cfx_unicodeencodingex.h", 841 "core/fxge/include/cfx_unicodeencodingex.h",
814 ] 842 ]
815 } 843 }
816 844
817 if (pdf_use_skia) { 845 if (pdf_use_skia) {
818 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] 846 sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
819 deps = [ 847 deps += [ "//skia" ]
820 "//skia",
821 ]
822 } else { 848 } else {
823 sources += [ 849 sources += [
824 "core/fxge/agg/fx_agg_driver.cpp", 850 "core/fxge/agg/fx_agg_driver.cpp",
825 "core/fxge/agg/fx_agg_driver.h", 851 "core/fxge/agg/fx_agg_driver.h",
826 "core/fxge/apple/fx_apple_platform.cpp", 852 "core/fxge/apple/fx_apple_platform.cpp",
827 ] 853 ]
828 deps = [ 854 deps += [ "third_party:fx_agg" ]
829 "third_party:fx_agg",
830 ]
831 } 855 }
832 856
833 if (is_win) { 857 if (is_win) {
834 sources += [ 858 sources += [
835 "core/fxge/win32/dwrite_int.h", 859 "core/fxge/win32/dwrite_int.h",
836 "core/fxge/win32/fx_win32_device.cpp", 860 "core/fxge/win32/fx_win32_device.cpp",
837 "core/fxge/win32/fx_win32_dib.cpp", 861 "core/fxge/win32/fx_win32_dib.cpp",
838 "core/fxge/win32/fx_win32_dwrite.cpp", 862 "core/fxge/win32/fx_win32_dwrite.cpp",
839 "core/fxge/win32/fx_win32_gdipext.cpp", 863 "core/fxge/win32/fx_win32_gdipext.cpp",
840 "core/fxge/win32/fx_win32_print.cpp", 864 "core/fxge/win32/fx_win32_print.cpp",
841 "core/fxge/win32/win32_int.h", 865 "core/fxge/win32/win32_int.h",
842 ] 866 ]
843 configs -= [ "//build/config/win:lean_and_mean" ] 867 configs -= [ "//build/config/win:lean_and_mean" ]
844 } 868 }
845 } 869 }
846 870
847 static_library("fxedit") { 871 static_library("fxedit") {
848 sources = [ 872 sources = [
849 "fpdfsdk/fxedit/fxet_ap.cpp", 873 "fpdfsdk/fxedit/fxet_ap.cpp",
850 "fpdfsdk/fxedit/fxet_edit.cpp", 874 "fpdfsdk/fxedit/fxet_edit.cpp",
851 "fpdfsdk/fxedit/fxet_list.cpp", 875 "fpdfsdk/fxedit/fxet_list.cpp",
852 "fpdfsdk/fxedit/include/fx_edit.h", 876 "fpdfsdk/fxedit/include/fx_edit.h",
853 "fpdfsdk/fxedit/include/fxet_edit.h", 877 "fpdfsdk/fxedit/include/fxet_edit.h",
854 "fpdfsdk/fxedit/include/fxet_list.h", 878 "fpdfsdk/fxedit/include/fxet_list.h",
855 ] 879 ]
856 configs += [ ":pdfium_core_config" ] 880 configs += [ ":pdfium_core_config" ]
881 deps = [
882 ":fxcrt",
883 ]
857 } 884 }
858 885
859 static_library("pdfwindow") { 886 static_library("pdfwindow") {
860 sources = [ 887 sources = [
861 "fpdfsdk/pdfwindow/PWL_Button.cpp", 888 "fpdfsdk/pdfwindow/PWL_Button.cpp",
862 "fpdfsdk/pdfwindow/PWL_Button.h", 889 "fpdfsdk/pdfwindow/PWL_Button.h",
863 "fpdfsdk/pdfwindow/PWL_Caret.cpp", 890 "fpdfsdk/pdfwindow/PWL_Caret.cpp",
864 "fpdfsdk/pdfwindow/PWL_Caret.h", 891 "fpdfsdk/pdfwindow/PWL_Caret.h",
865 "fpdfsdk/pdfwindow/PWL_ComboBox.cpp", 892 "fpdfsdk/pdfwindow/PWL_ComboBox.cpp",
866 "fpdfsdk/pdfwindow/PWL_ComboBox.h", 893 "fpdfsdk/pdfwindow/PWL_ComboBox.h",
(...skipping 10 matching lines...) Expand all
877 "fpdfsdk/pdfwindow/PWL_ScrollBar.cpp", 904 "fpdfsdk/pdfwindow/PWL_ScrollBar.cpp",
878 "fpdfsdk/pdfwindow/PWL_ScrollBar.h", 905 "fpdfsdk/pdfwindow/PWL_ScrollBar.h",
879 "fpdfsdk/pdfwindow/PWL_SpecialButton.cpp", 906 "fpdfsdk/pdfwindow/PWL_SpecialButton.cpp",
880 "fpdfsdk/pdfwindow/PWL_SpecialButton.h", 907 "fpdfsdk/pdfwindow/PWL_SpecialButton.h",
881 "fpdfsdk/pdfwindow/PWL_Utils.cpp", 908 "fpdfsdk/pdfwindow/PWL_Utils.cpp",
882 "fpdfsdk/pdfwindow/PWL_Utils.h", 909 "fpdfsdk/pdfwindow/PWL_Utils.h",
883 "fpdfsdk/pdfwindow/PWL_Wnd.cpp", 910 "fpdfsdk/pdfwindow/PWL_Wnd.cpp",
884 "fpdfsdk/pdfwindow/PWL_Wnd.h", 911 "fpdfsdk/pdfwindow/PWL_Wnd.h",
885 ] 912 ]
886 configs += [ ":pdfium_core_config" ] 913 configs += [ ":pdfium_core_config" ]
914 deps = [
915 ":fxcrt",
916 ]
887 } 917 }
888 918
889 static_library("javascript") { 919 static_library("javascript") {
890 sources = [ 920 sources = [
891 "fpdfsdk/javascript/ijs_context.h", 921 "fpdfsdk/javascript/ijs_context.h",
892 "fpdfsdk/javascript/ijs_runtime.h", 922 "fpdfsdk/javascript/ijs_runtime.h",
893 ] 923 ]
924 configs += [ ":pdfium_core_config" ]
925 deps = [
926 ":fxcrt",
927 ]
928
894 if (pdf_enable_v8) { 929 if (pdf_enable_v8) {
895 sources += [ 930 sources += [
896 "fpdfsdk/javascript/Annot.cpp", 931 "fpdfsdk/javascript/Annot.cpp",
897 "fpdfsdk/javascript/Annot.h", 932 "fpdfsdk/javascript/Annot.h",
898 "fpdfsdk/javascript/Consts.cpp", 933 "fpdfsdk/javascript/Consts.cpp",
899 "fpdfsdk/javascript/Consts.h", 934 "fpdfsdk/javascript/Consts.h",
900 "fpdfsdk/javascript/Document.cpp", 935 "fpdfsdk/javascript/Document.cpp",
901 "fpdfsdk/javascript/Document.h", 936 "fpdfsdk/javascript/Document.h",
902 "fpdfsdk/javascript/Field.cpp", 937 "fpdfsdk/javascript/Field.cpp",
903 "fpdfsdk/javascript/Field.h", 938 "fpdfsdk/javascript/Field.h",
(...skipping 26 matching lines...) Expand all
930 "fpdfsdk/javascript/event.h", 965 "fpdfsdk/javascript/event.h",
931 "fpdfsdk/javascript/global.cpp", 966 "fpdfsdk/javascript/global.cpp",
932 "fpdfsdk/javascript/global.h", 967 "fpdfsdk/javascript/global.h",
933 "fpdfsdk/javascript/report.cpp", 968 "fpdfsdk/javascript/report.cpp",
934 "fpdfsdk/javascript/report.h", 969 "fpdfsdk/javascript/report.h",
935 "fpdfsdk/javascript/resource.cpp", 970 "fpdfsdk/javascript/resource.cpp",
936 "fpdfsdk/javascript/resource.h", 971 "fpdfsdk/javascript/resource.h",
937 "fpdfsdk/javascript/util.cpp", 972 "fpdfsdk/javascript/util.cpp",
938 "fpdfsdk/javascript/util.h", 973 "fpdfsdk/javascript/util.h",
939 ] 974 ]
940 deps = [ 975 deps += [ ":fxjs" ]
941 ":fxjs",
942 ]
943 configs += [ "//v8:external_startup_data" ] 976 configs += [ "//v8:external_startup_data" ]
944 } else { 977 } else {
945 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ] 978 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ]
946 } 979 }
947 configs += [ ":pdfium_core_config" ]
948 } 980 }
949 981
950 static_library("formfiller") { 982 static_library("formfiller") {
951 sources = [ 983 sources = [
952 "fpdfsdk/formfiller/cba_fontmap.cpp", 984 "fpdfsdk/formfiller/cba_fontmap.cpp",
953 "fpdfsdk/formfiller/cba_fontmap.h", 985 "fpdfsdk/formfiller/cba_fontmap.h",
954 "fpdfsdk/formfiller/cffl_checkbox.cpp", 986 "fpdfsdk/formfiller/cffl_checkbox.cpp",
955 "fpdfsdk/formfiller/cffl_checkbox.h", 987 "fpdfsdk/formfiller/cffl_checkbox.h",
956 "fpdfsdk/formfiller/cffl_combobox.cpp", 988 "fpdfsdk/formfiller/cffl_combobox.cpp",
957 "fpdfsdk/formfiller/cffl_combobox.h", 989 "fpdfsdk/formfiller/cffl_combobox.h",
958 "fpdfsdk/formfiller/cffl_formfiller.cpp", 990 "fpdfsdk/formfiller/cffl_formfiller.cpp",
959 "fpdfsdk/formfiller/cffl_formfiller.h", 991 "fpdfsdk/formfiller/cffl_formfiller.h",
960 "fpdfsdk/formfiller/cffl_iformfiller.cpp", 992 "fpdfsdk/formfiller/cffl_iformfiller.cpp",
961 "fpdfsdk/formfiller/cffl_iformfiller.h", 993 "fpdfsdk/formfiller/cffl_iformfiller.h",
962 "fpdfsdk/formfiller/cffl_listbox.cpp", 994 "fpdfsdk/formfiller/cffl_listbox.cpp",
963 "fpdfsdk/formfiller/cffl_listbox.h", 995 "fpdfsdk/formfiller/cffl_listbox.h",
964 "fpdfsdk/formfiller/cffl_pushbutton.cpp", 996 "fpdfsdk/formfiller/cffl_pushbutton.cpp",
965 "fpdfsdk/formfiller/cffl_pushbutton.h", 997 "fpdfsdk/formfiller/cffl_pushbutton.h",
966 "fpdfsdk/formfiller/cffl_radiobutton.cpp", 998 "fpdfsdk/formfiller/cffl_radiobutton.cpp",
967 "fpdfsdk/formfiller/cffl_radiobutton.h", 999 "fpdfsdk/formfiller/cffl_radiobutton.h",
968 "fpdfsdk/formfiller/cffl_textfield.cpp", 1000 "fpdfsdk/formfiller/cffl_textfield.cpp",
969 "fpdfsdk/formfiller/cffl_textfield.h", 1001 "fpdfsdk/formfiller/cffl_textfield.h",
970 ] 1002 ]
971 configs += [ ":pdfium_core_config" ] 1003 configs += [ ":pdfium_core_config" ]
1004 deps = [
1005 ":fxcrt",
1006 ]
972 } 1007 }
973 1008
974 if (pdf_enable_v8) { 1009 if (pdf_enable_v8) {
975 static_library("fxjs") { 1010 static_library("fxjs") {
976 sources = [ 1011 sources = [
977 "fxjs/fxjs_v8.cpp", 1012 "fxjs/fxjs_v8.cpp",
978 "fxjs/include/fxjs_v8.h", 1013 "fxjs/include/fxjs_v8.h",
979 ] 1014 ]
1015 configs += [ ":pdfium_core_config" ]
1016 deps = [
1017 ":fxcrt",
1018 "//v8",
1019 "//v8:v8_libplatform",
1020 ]
1021 include_dirs = [
1022 "//v8",
1023 "//v8/include",
1024 ]
1025 public_deps = [
1026 "//v8",
1027 ]
1028
980 if (pdf_enable_xfa) { 1029 if (pdf_enable_xfa) {
981 sources += [ 1030 sources += [
982 "fxjs/cfxjse_arguments.cpp", 1031 "fxjs/cfxjse_arguments.cpp",
983 "fxjs/cfxjse_class.cpp", 1032 "fxjs/cfxjse_class.cpp",
984 "fxjs/cfxjse_context.cpp", 1033 "fxjs/cfxjse_context.cpp",
985 "fxjs/cfxjse_isolatetracker.cpp", 1034 "fxjs/cfxjse_isolatetracker.cpp",
986 "fxjs/cfxjse_isolatetracker.h", 1035 "fxjs/cfxjse_isolatetracker.h",
987 "fxjs/cfxjse_runtimedata.cpp", 1036 "fxjs/cfxjse_runtimedata.cpp",
988 "fxjs/cfxjse_runtimedata.h", 1037 "fxjs/cfxjse_runtimedata.h",
989 "fxjs/cfxjse_value.cpp", 1038 "fxjs/cfxjse_value.cpp",
990 "fxjs/include/cfxjse_arguments.h", 1039 "fxjs/include/cfxjse_arguments.h",
991 "fxjs/include/cfxjse_class.h", 1040 "fxjs/include/cfxjse_class.h",
992 "fxjs/include/cfxjse_context.h", 1041 "fxjs/include/cfxjse_context.h",
993 "fxjs/include/cfxjse_value.h", 1042 "fxjs/include/cfxjse_value.h",
994 "fxjs/include/fxjse.h", 1043 "fxjs/include/fxjse.h",
995 ] 1044 ]
996 } 1045 }
997 deps = [
998 "//v8",
999 "//v8:v8_libplatform",
1000 ]
1001 configs += [ ":pdfium_core_config" ]
1002 include_dirs = [
1003 "//v8",
1004 "//v8/include",
1005 ]
1006 public_deps = [
1007 "//v8",
1008 ]
1009 } 1046 }
1010 } 1047 }
1011 1048
1012 if (pdf_enable_xfa) { 1049 if (pdf_enable_xfa) {
1013 static_library("fpdfxfa") { 1050 static_library("fpdfxfa") {
1014 sources = [ 1051 sources = [
1015 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp", 1052 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp",
1016 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp", 1053 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp",
1017 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp", 1054 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp",
1018 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp", 1055 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp",
1019 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h", 1056 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h",
1020 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h", 1057 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h",
1021 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h", 1058 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h",
1022 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", 1059 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h",
1023 ] 1060 ]
1024 deps = [ 1061 deps = [
1062 ":fxcrt",
1025 ":xfa", 1063 ":xfa",
1026 ] 1064 ]
1027 configs += [ ":pdfium_core_config" ] 1065 configs += [ ":pdfium_core_config" ]
1028 } 1066 }
1029 1067
1030 static_library("xfa") { 1068 static_library("xfa") {
1031 sources = [ 1069 sources = [
1032 "xfa/fde/cfde_path.cpp", 1070 "xfa/fde/cfde_path.cpp",
1033 "xfa/fde/cfde_path.h", 1071 "xfa/fde/cfde_path.h",
1034 "xfa/fde/cfde_txtedtbuf.cpp", 1072 "xfa/fde/cfde_txtedtbuf.cpp",
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 "xfa/fxgraphics/cfx_path_generator.cpp", 1615 "xfa/fxgraphics/cfx_path_generator.cpp",
1578 "xfa/fxgraphics/cfx_path_generator.h", 1616 "xfa/fxgraphics/cfx_path_generator.h",
1579 "xfa/fxgraphics/cfx_pattern.cpp", 1617 "xfa/fxgraphics/cfx_pattern.cpp",
1580 "xfa/fxgraphics/cfx_pattern.h", 1618 "xfa/fxgraphics/cfx_pattern.h",
1581 "xfa/fxgraphics/cfx_shading.cpp", 1619 "xfa/fxgraphics/cfx_shading.cpp",
1582 "xfa/fxgraphics/cfx_shading.h", 1620 "xfa/fxgraphics/cfx_shading.h",
1583 "xfa/fxgraphics/include/cfx_graphics.h", 1621 "xfa/fxgraphics/include/cfx_graphics.h",
1584 ] 1622 ]
1585 include_dirs = [ "." ] 1623 include_dirs = [ "." ]
1586 deps = [ 1624 deps = [
1625 ":fxcrt",
1587 ":fxjs", 1626 ":fxjs",
1588 ] 1627 ]
1589 configs += [ 1628 configs += [
1590 ":pdfium_core_config", 1629 ":pdfium_core_config",
1591 ":xfa_warnings", 1630 ":xfa_warnings",
1592 ] 1631 ]
1593 } 1632 }
1594 } 1633 }
1595 1634
1596 test("pdfium_unittests") { 1635 test("pdfium_unittests") {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 } 1751 }
1713 1752
1714 if (pdf_is_standalone) { 1753 if (pdf_is_standalone) {
1715 source_set("samples") { 1754 source_set("samples") {
1716 testonly = true 1755 testonly = true
1717 deps = [ 1756 deps = [
1718 "//samples", 1757 "//samples",
1719 ] 1758 ]
1720 } 1759 }
1721 } 1760 }
OLDNEW
« no previous file with comments | « no previous file | third_party/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698