OLD | NEW |
---|---|
1 { | 1 { |
2 'variables': { | 2 'variables': { |
3 'pdf_use_skia%': 0, | 3 'pdf_use_skia%': 0, |
4 'pdf_enable_v8%': 1, | |
4 'conditions': [ | 5 'conditions': [ |
5 ['OS=="linux"', { | 6 ['OS=="linux"', { |
6 'bundle_freetype%': 0, | 7 'bundle_freetype%': 0, |
7 }, { # On Android there's no system FreeType. On Windows and Mac, only a | 8 }, { # On Android there's no system FreeType. On Windows and Mac, only a |
8 # few methods are used from it. | 9 # few methods are used from it. |
9 'bundle_freetype%': 1, | 10 'bundle_freetype%': 1, |
10 }], | 11 }], |
11 ], | 12 ], |
12 }, | 13 }, |
13 'target_defaults': { | 14 'target_defaults': { |
14 'defines' : [ | 15 'defines' : [ |
15 'OPJ_STATIC', | 16 'OPJ_STATIC', |
16 'V8_DEPRECATION_WARNINGS', | 17 'V8_DEPRECATION_WARNINGS', |
17 '_CRT_SECURE_NO_WARNINGS', | 18 '_CRT_SECURE_NO_WARNINGS', |
18 ], | 19 ], |
19 'include_dirs': [ | 20 'include_dirs': [ |
20 'third_party/freetype/include', | 21 'third_party/freetype/include', |
21 ], | 22 ], |
22 'conditions': [ | 23 'conditions': [ |
23 ['pdf_use_skia==1', { | 24 ['pdf_use_skia==1', { |
24 'defines': ['_SKIA_SUPPORT_'], | 25 'defines': ['_SKIA_SUPPORT_'], |
25 }], | 26 }], |
27 ['pdf_enable_v8==1', { | |
28 'defines': ['PDF_ENABLE_V8'], | |
29 }], | |
26 ['OS=="linux"', { | 30 ['OS=="linux"', { |
27 'conditions': [ | 31 'conditions': [ |
28 ['target_arch=="x64"', { | 32 ['target_arch=="x64"', { |
29 'defines' : [ '_FX_CPU_=_FX_X64_', ], | 33 'defines' : [ '_FX_CPU_=_FX_X64_', ], |
30 'cflags': [ '-fPIC', ], | 34 'cflags': [ '-fPIC', ], |
31 }], | 35 }], |
32 ['target_arch=="ia32"', { | 36 ['target_arch=="ia32"', { |
33 'defines' : [ '_FX_CPU_=_FX_X86_', ], | 37 'defines' : [ '_FX_CPU_=_FX_X86_', ], |
34 }], | 38 }], |
35 ], | 39 ], |
(...skipping 12 matching lines...) Expand all Loading... | |
48 'third_party/third_party.gyp:pdfium_base', | 52 'third_party/third_party.gyp:pdfium_base', |
49 'fdrm', | 53 'fdrm', |
50 'fpdfdoc', | 54 'fpdfdoc', |
51 'fpdfapi', | 55 'fpdfapi', |
52 'fpdftext', | 56 'fpdftext', |
53 'formfiller', | 57 'formfiller', |
54 'fxcodec', | 58 'fxcodec', |
55 'fxcrt', | 59 'fxcrt', |
56 'fxedit', | 60 'fxedit', |
57 'fxge', | 61 'fxge', |
58 'javascript', | |
59 'jsapi', | |
60 'pdfwindow', | 62 'pdfwindow', |
61 ], | 63 ], |
62 'ldflags': [ '-L<(PRODUCT_DIR)',], | 64 'ldflags': [ '-L<(PRODUCT_DIR)',], |
63 'sources': [ | 65 'sources': [ |
64 'fpdfsdk/include/fsdk_actionhandler.h', | 66 'fpdfsdk/include/fsdk_actionhandler.h', |
65 'fpdfsdk/include/fsdk_annothandler.h', | 67 'fpdfsdk/include/fsdk_annothandler.h', |
66 'fpdfsdk/include/fsdk_baseannot.h', | 68 'fpdfsdk/include/fsdk_baseannot.h', |
67 'fpdfsdk/include/fsdk_baseform.h', | 69 'fpdfsdk/include/fsdk_baseform.h', |
68 'fpdfsdk/src/fpdfdoc.cpp', | 70 'fpdfsdk/src/fpdfdoc.cpp', |
69 'fpdfsdk/src/fpdfeditimg.cpp', | 71 'fpdfsdk/src/fpdfeditimg.cpp', |
(...skipping 28 matching lines...) Expand all Loading... | |
98 'public/fpdf_ppo.h', | 100 'public/fpdf_ppo.h', |
99 'public/fpdf_progressive.h', | 101 'public/fpdf_progressive.h', |
100 'public/fpdf_save.h', | 102 'public/fpdf_save.h', |
101 'public/fpdf_searchex.h', | 103 'public/fpdf_searchex.h', |
102 'public/fpdf_sysfontinfo.h', | 104 'public/fpdf_sysfontinfo.h', |
103 'public/fpdf_text.h', | 105 'public/fpdf_text.h', |
104 'public/fpdf_transformpage.h', | 106 'public/fpdf_transformpage.h', |
105 'public/fpdfview.h', | 107 'public/fpdfview.h', |
106 ], | 108 ], |
107 'conditions': [ | 109 'conditions': [ |
110 ['pdf_enable_v8==1', { | |
111 'dependencies': [ 'javascript' ], | |
112 }, { | |
113 'dependencies': [ 'javascript_stub' ], | |
114 }], | |
108 ['OS!="win"', { | 115 ['OS!="win"', { |
109 'sources!': [ | 116 'sources!': [ |
110 'fpdfsdk/src/fpdfsdkdll.rc', | 117 'fpdfsdk/src/fpdfsdkdll.rc', |
111 ], | 118 ], |
112 }], | 119 }], |
113 ['bundle_freetype==1', { | 120 ['bundle_freetype==1', { |
114 'dependencies': [ | 121 'dependencies': [ |
115 'third_party/third_party.gyp:fx_freetype', | 122 'third_party/third_party.gyp:fx_freetype', |
116 ], | 123 ], |
117 }, { | 124 }, { |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
610 ], | 617 ], |
611 }, | 618 }, |
612 { | 619 { |
613 'target_name': 'javascript', | 620 'target_name': 'javascript', |
614 'type': 'static_library', | 621 'type': 'static_library', |
615 'include_dirs': [ | 622 'include_dirs': [ |
616 '<(DEPTH)/v8', | 623 '<(DEPTH)/v8', |
617 '<(DEPTH)/v8/include', | 624 '<(DEPTH)/v8/include', |
618 ], | 625 ], |
619 'dependencies': [ | 626 'dependencies': [ |
627 'jsapi', | |
620 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | 628 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
621 ], | 629 ], |
622 'export_dependent_settings': [ | 630 'export_dependent_settings': [ |
623 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | 631 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
624 ], | 632 ], |
625 'ldflags': [ '-L<(PRODUCT_DIR)',], | 633 'ldflags': [ '-L<(PRODUCT_DIR)',], |
626 'sources': [ | 634 'sources': [ |
627 'fpdfsdk/include/javascript/IJavaScript.h', | 635 'fpdfsdk/include/javascript/IJavaScript.h', |
628 'fpdfsdk/src/javascript/app.cpp', | 636 'fpdfsdk/src/javascript/app.cpp', |
629 'fpdfsdk/src/javascript/color.cpp', | 637 'fpdfsdk/src/javascript/color.cpp', |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
663 'fpdfsdk/src/javascript/global.h', | 671 'fpdfsdk/src/javascript/global.h', |
664 'fpdfsdk/src/javascript/report.cpp', | 672 'fpdfsdk/src/javascript/report.cpp', |
665 'fpdfsdk/src/javascript/report.h', | 673 'fpdfsdk/src/javascript/report.h', |
666 'fpdfsdk/src/javascript/resource.cpp', | 674 'fpdfsdk/src/javascript/resource.cpp', |
667 'fpdfsdk/src/javascript/resource.h', | 675 'fpdfsdk/src/javascript/resource.h', |
668 'fpdfsdk/src/javascript/util.cpp', | 676 'fpdfsdk/src/javascript/util.cpp', |
669 'fpdfsdk/src/javascript/util.h', | 677 'fpdfsdk/src/javascript/util.h', |
670 ], | 678 ], |
671 }, | 679 }, |
672 { | 680 { |
681 'target_name': 'javascript_stub', | |
Tom Sepez
2015/10/08 19:26:50
actually, I think I'll just use the javascript tar
| |
682 'type': 'static_library', | |
683 'ldflags': [ '-L<(PRODUCT_DIR)',], | |
684 'sources': [ | |
685 'fpdfsdk/include/javascipt/IJavascript.h', | |
686 'fpdfsdk/src/javascript/JS_Stub.cpp', | |
687 ], | |
688 }, | |
689 { | |
673 'target_name': 'jsapi', | 690 'target_name': 'jsapi', |
674 'type': 'static_library', | 691 'type': 'static_library', |
675 'dependencies': [ | 692 'dependencies': [ |
676 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | 693 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
677 ], | 694 ], |
678 'export_dependent_settings': [ | 695 'export_dependent_settings': [ |
679 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | 696 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
680 ], | 697 ], |
681 'include_dirs': [ | 698 'include_dirs': [ |
682 '<(DEPTH)/v8', | 699 '<(DEPTH)/v8', |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
740 'testing/fx_string_testhelpers.cpp', | 757 'testing/fx_string_testhelpers.cpp', |
741 'third_party/base/nonstd_unique_ptr_unittest.cpp', | 758 'third_party/base/nonstd_unique_ptr_unittest.cpp', |
742 ], | 759 ], |
743 }, | 760 }, |
744 { | 761 { |
745 'target_name': 'pdfium_embeddertests', | 762 'target_name': 'pdfium_embeddertests', |
746 'type': 'executable', | 763 'type': 'executable', |
747 'dependencies': [ | 764 'dependencies': [ |
748 '<(DEPTH)/testing/gmock.gyp:gmock', | 765 '<(DEPTH)/testing/gmock.gyp:gmock', |
749 '<(DEPTH)/testing/gtest.gyp:gtest', | 766 '<(DEPTH)/testing/gtest.gyp:gtest', |
750 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
751 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | |
752 'pdfium', | 767 'pdfium', |
753 ], | 768 ], |
754 'include_dirs': [ | 769 'include_dirs': [ |
755 '<(DEPTH)', | 770 '<(DEPTH)', |
756 '<(DEPTH)/v8', | |
757 '<(DEPTH)/v8/include', | |
758 ], | 771 ], |
759 'sources': [ | 772 'sources': [ |
760 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', | 773 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', |
761 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', | 774 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', |
762 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', | 775 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', |
763 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', | 776 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', |
764 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', | 777 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', |
765 'fpdfsdk/src/fpdftext_embeddertest.cpp', | 778 'fpdfsdk/src/fpdftext_embeddertest.cpp', |
766 'fpdfsdk/src/fpdfview_c_api_test.c', | 779 'fpdfsdk/src/fpdfview_c_api_test.c', |
767 'fpdfsdk/src/fpdfview_c_api_test.h', | 780 'fpdfsdk/src/fpdfview_c_api_test.h', |
768 'fpdfsdk/src/fpdfview_embeddertest.cpp', | 781 'fpdfsdk/src/fpdfview_embeddertest.cpp', |
769 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp', | |
770 'testing/embedder_test.cpp', | 782 'testing/embedder_test.cpp', |
771 'testing/embedder_test.h', | 783 'testing/embedder_test.h', |
772 'testing/embedder_test_mock_delegate.h', | 784 'testing/embedder_test_mock_delegate.h', |
773 'testing/embedder_test_timer_handling_delegate.h', | 785 'testing/embedder_test_timer_handling_delegate.h', |
774 'testing/fx_string_testhelpers.cpp', | 786 'testing/fx_string_testhelpers.cpp', |
775 'testing/fx_string_testhelpers.h', | 787 'testing/fx_string_testhelpers.h', |
776 ], | 788 ], |
789 'conditions': [ | |
790 ['pdf_enable_v8==1', { | |
791 'include_dirs': [ | |
792 '<(DEPTH)/v8', | |
793 '<(DEPTH)/v8/include', | |
794 ], | |
795 'dependencies': [ | |
796 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
797 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | |
798 ], | |
799 'sources': [ | |
800 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp', | |
801 ], | |
802 }], | |
803 ], | |
777 }, | 804 }, |
778 ], | 805 ], |
779 } | 806 } |
OLD | NEW |