OLD | NEW |
1 { | 1 { |
2 'variables': { | 2 'variables': { |
3 'pdf_use_skia%': 0, | 3 'pdf_use_skia%': 0, |
| 4 'pdf_enable_v8%': 1, |
4 'pdf_enable_xfa%': 1, | 5 'pdf_enable_xfa%': 1, |
5 'conditions': [ | 6 'conditions': [ |
6 ['OS=="linux"', { | 7 ['OS=="linux"', { |
7 'bundle_freetype%': 0, | 8 'bundle_freetype%': 0, |
8 }, { # On Android there's no system FreeType. On Windows and Mac, only a | 9 }, { # On Android there's no system FreeType. On Windows and Mac, only a |
9 # few methods are used from it. | 10 # few methods are used from it. |
10 'bundle_freetype%': 1, | 11 'bundle_freetype%': 1, |
11 }], | 12 }], |
12 ], | 13 ], |
13 }, | 14 }, |
14 'target_defaults': { | 15 'target_defaults': { |
15 'defines' : [ | 16 'defines' : [ |
16 'OPJ_STATIC', | 17 'OPJ_STATIC', |
17 'PNG_PREFIX', | 18 'PNG_PREFIX', |
18 'PNGPREFIX_H', | 19 'PNGPREFIX_H', |
19 'PNG_USE_READ_MACROS', | 20 'PNG_USE_READ_MACROS', |
20 'V8_DEPRECATION_WARNINGS', | 21 'V8_DEPRECATION_WARNINGS', |
21 '_CRT_SECURE_NO_WARNINGS', | 22 '_CRT_SECURE_NO_WARNINGS', |
22 ], | 23 ], |
23 'include_dirs': [ | 24 'include_dirs': [ |
24 'third_party/freetype/include', | 25 'third_party/freetype/include', |
25 ], | 26 ], |
26 'conditions': [ | 27 'conditions': [ |
27 ['pdf_use_skia==1', { | 28 ['pdf_use_skia==1', { |
28 'defines': ['_SKIA_SUPPORT_'], | 29 'defines': ['_SKIA_SUPPORT_'], |
29 }], | 30 }], |
| 31 ['pdf_enable_v8==1', { |
| 32 'defines': ['PDF_ENABLE_V8'], |
| 33 }], |
30 ['pdf_enable_xfa==1', { | 34 ['pdf_enable_xfa==1', { |
31 'defines': ['PDF_ENABLE_XFA'], | 35 'defines': ['PDF_ENABLE_XFA'], |
32 }], | 36 }], |
33 ['OS=="linux"', { | 37 ['OS=="linux"', { |
34 'conditions': [ | 38 'conditions': [ |
35 ['target_arch=="x64"', { | 39 ['target_arch=="x64"', { |
36 'defines' : [ '_FX_CPU_=_FX_X64_', ], | 40 'defines' : [ '_FX_CPU_=_FX_X64_', ], |
37 'cflags': [ '-fPIC', ], | 41 'cflags': [ '-fPIC', ], |
38 }], | 42 }], |
39 ['target_arch=="ia32"', { | 43 ['target_arch=="ia32"', { |
(...skipping 16 matching lines...) Expand all Loading... |
56 'fdrm', | 60 'fdrm', |
57 'fpdfdoc', | 61 'fpdfdoc', |
58 'fpdfapi', | 62 'fpdfapi', |
59 'fpdftext', | 63 'fpdftext', |
60 'formfiller', | 64 'formfiller', |
61 'fxcodec', | 65 'fxcodec', |
62 'fxcrt', | 66 'fxcrt', |
63 'fxedit', | 67 'fxedit', |
64 'fxge', | 68 'fxge', |
65 'javascript', | 69 'javascript', |
66 'jsapi', | |
67 'pdfwindow', | 70 'pdfwindow', |
68 'fpdfxfa', | 71 'fpdfxfa', |
69 ], | 72 ], |
70 'ldflags': [ '-L<(PRODUCT_DIR)',], | 73 'ldflags': [ '-L<(PRODUCT_DIR)',], |
71 'sources': [ | 74 'sources': [ |
72 'fpdfsdk/include/fsdk_actionhandler.h', | 75 'fpdfsdk/include/fsdk_actionhandler.h', |
73 'fpdfsdk/include/fsdk_annothandler.h', | 76 'fpdfsdk/include/fsdk_annothandler.h', |
74 'fpdfsdk/include/fsdk_baseannot.h', | 77 'fpdfsdk/include/fsdk_baseannot.h', |
75 'fpdfsdk/include/fsdk_baseform.h', | 78 'fpdfsdk/include/fsdk_baseform.h', |
76 'fpdfsdk/src/fpdfdoc.cpp', | 79 'fpdfsdk/src/fpdfdoc.cpp', |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 [ "pdf_enable_xfa==1", { | 650 [ "pdf_enable_xfa==1", { |
648 'dependencies': [ | 651 'dependencies': [ |
649 'xfa.gyp:xfa', | 652 'xfa.gyp:xfa', |
650 ], | 653 ], |
651 }], | 654 }], |
652 ], | 655 ], |
653 }, | 656 }, |
654 { | 657 { |
655 'target_name': 'javascript', | 658 'target_name': 'javascript', |
656 'type': 'static_library', | 659 'type': 'static_library', |
657 'include_dirs': [ | |
658 '<(DEPTH)/v8', | |
659 '<(DEPTH)/v8/include', | |
660 ], | |
661 'dependencies': [ | |
662 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
663 ], | |
664 'export_dependent_settings': [ | |
665 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
666 ], | |
667 'ldflags': [ '-L<(PRODUCT_DIR)',], | 660 'ldflags': [ '-L<(PRODUCT_DIR)',], |
668 'sources': [ | 661 'sources': [ |
669 'fpdfsdk/include/javascript/IJavaScript.h', | 662 'fpdfsdk/include/javascript/IJavaScript.h', |
670 'fpdfsdk/src/javascript/app.cpp', | 663 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp', |
671 'fpdfsdk/src/javascript/color.cpp', | 664 ], |
672 'fpdfsdk/src/javascript/console.cpp', | 665 'conditions': [ |
673 'fpdfsdk/src/javascript/Consts.cpp', | 666 ['pdf_enable_v8==1', { |
674 'fpdfsdk/src/javascript/Consts.h', | 667 'include_dirs': [ |
675 'fpdfsdk/src/javascript/Document.cpp', | 668 '<(DEPTH)/v8', |
676 'fpdfsdk/src/javascript/Document.h', | 669 '<(DEPTH)/v8/include', |
677 'fpdfsdk/src/javascript/Field.cpp', | 670 ], |
678 'fpdfsdk/src/javascript/Field.h', | 671 'dependencies': [ |
679 'fpdfsdk/src/javascript/Icon.cpp', | 672 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
680 'fpdfsdk/src/javascript/Icon.h', | 673 ], |
681 'fpdfsdk/src/javascript/JS_Context.cpp', | 674 'export_dependent_settings': [ |
682 'fpdfsdk/src/javascript/JS_Context.h', | 675 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
683 'fpdfsdk/src/javascript/JS_Define.h', | 676 ], |
684 'fpdfsdk/src/javascript/JS_EventHandler.cpp', | 677 'sources!': [ |
685 'fpdfsdk/src/javascript/JS_EventHandler.h', | 678 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp', |
686 'fpdfsdk/src/javascript/JS_GlobalData.cpp', | 679 ], |
687 'fpdfsdk/src/javascript/JS_GlobalData.h', | 680 'sources': [ |
688 'fpdfsdk/src/javascript/JS_Object.cpp', | 681 'fpdfsdk/src/javascript/Consts.cpp', |
689 'fpdfsdk/src/javascript/JS_Object.h', | 682 'fpdfsdk/src/javascript/Consts.h', |
690 'fpdfsdk/src/javascript/JS_Runtime.cpp', | 683 'fpdfsdk/src/javascript/Document.cpp', |
691 'fpdfsdk/src/javascript/JS_Runtime.h', | 684 'fpdfsdk/src/javascript/Document.h', |
692 'fpdfsdk/src/javascript/JS_Value.cpp', | 685 'fpdfsdk/src/javascript/Field.cpp', |
693 'fpdfsdk/src/javascript/JS_Value.h', | 686 'fpdfsdk/src/javascript/Field.h', |
694 'fpdfsdk/src/javascript/PublicMethods.cpp', | 687 'fpdfsdk/src/javascript/Icon.cpp', |
695 'fpdfsdk/src/javascript/PublicMethods.h', | 688 'fpdfsdk/src/javascript/Icon.h', |
696 'fpdfsdk/src/javascript/app.cpp', | 689 'fpdfsdk/src/javascript/JS_Context.cpp', |
697 'fpdfsdk/src/javascript/app.h', | 690 'fpdfsdk/src/javascript/JS_Context.h', |
698 'fpdfsdk/src/javascript/color.cpp', | 691 'fpdfsdk/src/javascript/JS_Define.h', |
699 'fpdfsdk/src/javascript/color.h', | 692 'fpdfsdk/src/javascript/JS_EventHandler.cpp', |
700 'fpdfsdk/src/javascript/console.cpp', | 693 'fpdfsdk/src/javascript/JS_EventHandler.h', |
701 'fpdfsdk/src/javascript/console.h', | 694 'fpdfsdk/src/javascript/JS_GlobalData.cpp', |
702 'fpdfsdk/src/javascript/event.cpp', | 695 'fpdfsdk/src/javascript/JS_GlobalData.h', |
703 'fpdfsdk/src/javascript/event.h', | 696 'fpdfsdk/src/javascript/JS_Object.cpp', |
704 'fpdfsdk/src/javascript/global.cpp', | 697 'fpdfsdk/src/javascript/JS_Object.h', |
705 'fpdfsdk/src/javascript/global.h', | 698 'fpdfsdk/src/javascript/JS_Runtime.cpp', |
706 'fpdfsdk/src/javascript/report.cpp', | 699 'fpdfsdk/src/javascript/JS_Runtime.h', |
707 'fpdfsdk/src/javascript/report.h', | 700 'fpdfsdk/src/javascript/JS_Value.cpp', |
708 'fpdfsdk/src/javascript/resource.cpp', | 701 'fpdfsdk/src/javascript/JS_Value.h', |
709 'fpdfsdk/src/javascript/resource.h', | 702 'fpdfsdk/src/javascript/PublicMethods.cpp', |
710 'fpdfsdk/src/javascript/util.cpp', | 703 'fpdfsdk/src/javascript/PublicMethods.h', |
711 'fpdfsdk/src/javascript/util.h', | 704 'fpdfsdk/src/javascript/app.cpp', |
| 705 'fpdfsdk/src/javascript/app.cpp', |
| 706 'fpdfsdk/src/javascript/app.h', |
| 707 'fpdfsdk/src/javascript/color.cpp', |
| 708 'fpdfsdk/src/javascript/color.cpp', |
| 709 'fpdfsdk/src/javascript/color.h', |
| 710 'fpdfsdk/src/javascript/console.cpp', |
| 711 'fpdfsdk/src/javascript/console.cpp', |
| 712 'fpdfsdk/src/javascript/console.h', |
| 713 'fpdfsdk/src/javascript/event.cpp', |
| 714 'fpdfsdk/src/javascript/event.h', |
| 715 'fpdfsdk/src/javascript/global.cpp', |
| 716 'fpdfsdk/src/javascript/global.h', |
| 717 'fpdfsdk/src/javascript/report.cpp', |
| 718 'fpdfsdk/src/javascript/report.h', |
| 719 'fpdfsdk/src/javascript/resource.cpp', |
| 720 'fpdfsdk/src/javascript/resource.h', |
| 721 'fpdfsdk/src/javascript/util.cpp', |
| 722 'fpdfsdk/src/javascript/util.h', |
| 723 'fpdfsdk/include/jsapi/fxjs_v8.h', |
| 724 'fpdfsdk/src/jsapi/fxjs_v8.cpp', |
| 725 ], |
| 726 }], |
712 ], | 727 ], |
713 }, | 728 }, |
714 { | 729 { |
715 'target_name': 'jsapi', | |
716 'type': 'static_library', | |
717 'dependencies': [ | |
718 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
719 ], | |
720 'export_dependent_settings': [ | |
721 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
722 ], | |
723 'include_dirs': [ | |
724 '<(DEPTH)/v8', | |
725 '<(DEPTH)/v8/include', | |
726 ], | |
727 'ldflags': [ '-L<(PRODUCT_DIR)',], | |
728 'sources': [ | |
729 'fpdfsdk/include/jsapi/fxjs_v8.h', | |
730 'fpdfsdk/src/jsapi/fxjs_v8.cpp', | |
731 ], | |
732 }, | |
733 { | |
734 'target_name': 'formfiller', | 730 'target_name': 'formfiller', |
735 'type': 'static_library', | 731 'type': 'static_library', |
736 'ldflags': [ '-L<(PRODUCT_DIR)',], | 732 'ldflags': [ '-L<(PRODUCT_DIR)',], |
737 'sources': [ | 733 'sources': [ |
738 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h', | 734 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h', |
739 'fpdfsdk/include/formfiller/FFL_CheckBox.h', | 735 'fpdfsdk/include/formfiller/FFL_CheckBox.h', |
740 'fpdfsdk/include/formfiller/FFL_ComboBox.h', | 736 'fpdfsdk/include/formfiller/FFL_ComboBox.h', |
741 'fpdfsdk/include/formfiller/FFL_FormFiller.h', | 737 'fpdfsdk/include/formfiller/FFL_FormFiller.h', |
742 'fpdfsdk/include/formfiller/FFL_IFormFiller.h', | 738 'fpdfsdk/include/formfiller/FFL_IFormFiller.h', |
743 'fpdfsdk/include/formfiller/FFL_ListBox.h', | 739 'fpdfsdk/include/formfiller/FFL_ListBox.h', |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 ], | 784 ], |
789 }], | 785 }], |
790 ], | 786 ], |
791 }, | 787 }, |
792 { | 788 { |
793 'target_name': 'pdfium_embeddertests', | 789 'target_name': 'pdfium_embeddertests', |
794 'type': 'executable', | 790 'type': 'executable', |
795 'dependencies': [ | 791 'dependencies': [ |
796 '<(DEPTH)/testing/gmock.gyp:gmock', | 792 '<(DEPTH)/testing/gmock.gyp:gmock', |
797 '<(DEPTH)/testing/gtest.gyp:gtest', | 793 '<(DEPTH)/testing/gtest.gyp:gtest', |
798 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | |
799 'pdfium', | 794 'pdfium', |
800 ], | 795 ], |
801 'include_dirs': [ | 796 'include_dirs': [ |
802 '<(DEPTH)', | 797 '<(DEPTH)', |
803 '<(DEPTH)/v8', | |
804 '<(DEPTH)/v8/include', | |
805 ], | 798 ], |
806 'sources': [ | 799 'sources': [ |
807 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', | 800 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', |
808 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', | 801 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', |
809 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', | 802 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', |
810 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', | 803 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', |
811 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', | 804 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', |
812 'fpdfsdk/src/fpdftext_embeddertest.cpp', | 805 'fpdfsdk/src/fpdftext_embeddertest.cpp', |
813 'fpdfsdk/src/fpdfview_c_api_test.c', | 806 'fpdfsdk/src/fpdfview_c_api_test.c', |
814 'fpdfsdk/src/fpdfview_c_api_test.h', | 807 'fpdfsdk/src/fpdfview_c_api_test.h', |
815 'fpdfsdk/src/fpdfview_embeddertest.cpp', | 808 'fpdfsdk/src/fpdfview_embeddertest.cpp', |
816 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp', | |
817 'testing/embedder_test.cpp', | 809 'testing/embedder_test.cpp', |
818 'testing/embedder_test.h', | 810 'testing/embedder_test.h', |
819 'testing/embedder_test_mock_delegate.h', | 811 'testing/embedder_test_mock_delegate.h', |
820 'testing/embedder_test_timer_handling_delegate.h', | 812 'testing/embedder_test_timer_handling_delegate.h', |
821 'testing/fx_string_testhelpers.cpp', | 813 'testing/fx_string_testhelpers.cpp', |
822 'testing/fx_string_testhelpers.h', | 814 'testing/fx_string_testhelpers.h', |
823 ], | 815 ], |
| 816 'conditions': [ |
| 817 ['pdf_enable_v8==1', { |
| 818 'include_dirs': [ |
| 819 '<(DEPTH)/v8', |
| 820 '<(DEPTH)/v8/include', |
| 821 ], |
| 822 'dependencies': [ |
| 823 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
| 824 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
| 825 ], |
| 826 'sources': [ |
| 827 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp', |
| 828 ], |
| 829 }], |
| 830 ], |
824 }, | 831 }, |
825 ], | 832 ], |
826 } | 833 } |
OLD | NEW |