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

Side by Side Diff: pdfium.gyp

Issue 1395733006: Allow compiling PDFium without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: PDFium Authors Created 5 years, 2 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 | « pdfium.gni ('k') | samples/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 { 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 13 matching lines...) Expand all
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', 62 'javascript',
59 'jsapi',
60 'pdfwindow', 63 'pdfwindow',
61 ], 64 ],
62 'ldflags': [ '-L<(PRODUCT_DIR)',], 65 'ldflags': [ '-L<(PRODUCT_DIR)',],
63 'sources': [ 66 'sources': [
64 'fpdfsdk/include/fsdk_actionhandler.h', 67 'fpdfsdk/include/fsdk_actionhandler.h',
65 'fpdfsdk/include/fsdk_annothandler.h', 68 'fpdfsdk/include/fsdk_annothandler.h',
66 'fpdfsdk/include/fsdk_baseannot.h', 69 'fpdfsdk/include/fsdk_baseannot.h',
67 'fpdfsdk/include/fsdk_baseform.h', 70 'fpdfsdk/include/fsdk_baseform.h',
68 'fpdfsdk/src/fpdfdoc.cpp', 71 'fpdfsdk/src/fpdfdoc.cpp',
69 'fpdfsdk/src/fpdfeditimg.cpp', 72 'fpdfsdk/src/fpdfeditimg.cpp',
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp', 608 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
606 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp', 609 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
607 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp', 610 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
608 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp', 611 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
609 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp', 612 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
610 ], 613 ],
611 }, 614 },
612 { 615 {
613 'target_name': 'javascript', 616 'target_name': 'javascript',
614 'type': 'static_library', 617 'type': 'static_library',
615 'include_dirs': [
616 '<(DEPTH)/v8',
617 '<(DEPTH)/v8/include',
618 ],
619 'dependencies': [
620 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
621 ],
622 'export_dependent_settings': [
623 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
624 ],
625 'ldflags': [ '-L<(PRODUCT_DIR)',], 618 'ldflags': [ '-L<(PRODUCT_DIR)',],
626 'sources': [ 619 'sources': [
627 'fpdfsdk/include/javascript/IJavaScript.h', 620 'fpdfsdk/include/javascript/IJavaScript.h',
628 'fpdfsdk/src/javascript/app.cpp', 621 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
629 'fpdfsdk/src/javascript/color.cpp', 622 ],
630 'fpdfsdk/src/javascript/console.cpp', 623 'conditions': [
631 'fpdfsdk/src/javascript/Consts.cpp', 624 ['pdf_enable_v8==1', {
632 'fpdfsdk/src/javascript/Consts.h', 625 'include_dirs': [
633 'fpdfsdk/src/javascript/Document.cpp', 626 '<(DEPTH)/v8',
634 'fpdfsdk/src/javascript/Document.h', 627 '<(DEPTH)/v8/include',
635 'fpdfsdk/src/javascript/Field.cpp', 628 ],
636 'fpdfsdk/src/javascript/Field.h', 629 'dependencies': [
637 'fpdfsdk/src/javascript/Icon.cpp', 630 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
638 'fpdfsdk/src/javascript/Icon.h', 631 ],
639 'fpdfsdk/src/javascript/JS_Context.cpp', 632 'export_dependent_settings': [
640 'fpdfsdk/src/javascript/JS_Context.h', 633 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
641 'fpdfsdk/src/javascript/JS_Define.h', 634 ],
642 'fpdfsdk/src/javascript/JS_EventHandler.cpp', 635 'sources!': [
643 'fpdfsdk/src/javascript/JS_EventHandler.h', 636 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
644 'fpdfsdk/src/javascript/JS_GlobalData.cpp', 637 ],
645 'fpdfsdk/src/javascript/JS_GlobalData.h', 638 'sources': [
646 'fpdfsdk/src/javascript/JS_Object.cpp', 639 'fpdfsdk/src/javascript/Consts.cpp',
647 'fpdfsdk/src/javascript/JS_Object.h', 640 'fpdfsdk/src/javascript/Consts.h',
648 'fpdfsdk/src/javascript/JS_Runtime.cpp', 641 'fpdfsdk/src/javascript/Document.cpp',
649 'fpdfsdk/src/javascript/JS_Runtime.h', 642 'fpdfsdk/src/javascript/Document.h',
650 'fpdfsdk/src/javascript/JS_Value.cpp', 643 'fpdfsdk/src/javascript/Field.cpp',
651 'fpdfsdk/src/javascript/JS_Value.h', 644 'fpdfsdk/src/javascript/Field.h',
652 'fpdfsdk/src/javascript/PublicMethods.cpp', 645 'fpdfsdk/src/javascript/Icon.cpp',
653 'fpdfsdk/src/javascript/PublicMethods.h', 646 'fpdfsdk/src/javascript/Icon.h',
654 'fpdfsdk/src/javascript/app.cpp', 647 'fpdfsdk/src/javascript/JS_Context.cpp',
655 'fpdfsdk/src/javascript/app.h', 648 'fpdfsdk/src/javascript/JS_Context.h',
656 'fpdfsdk/src/javascript/color.cpp', 649 'fpdfsdk/src/javascript/JS_Define.h',
657 'fpdfsdk/src/javascript/color.h', 650 'fpdfsdk/src/javascript/JS_EventHandler.cpp',
658 'fpdfsdk/src/javascript/console.cpp', 651 'fpdfsdk/src/javascript/JS_EventHandler.h',
659 'fpdfsdk/src/javascript/console.h', 652 'fpdfsdk/src/javascript/JS_GlobalData.cpp',
660 'fpdfsdk/src/javascript/event.cpp', 653 'fpdfsdk/src/javascript/JS_GlobalData.h',
661 'fpdfsdk/src/javascript/event.h', 654 'fpdfsdk/src/javascript/JS_Object.cpp',
662 'fpdfsdk/src/javascript/global.cpp', 655 'fpdfsdk/src/javascript/JS_Object.h',
663 'fpdfsdk/src/javascript/global.h', 656 'fpdfsdk/src/javascript/JS_Runtime.cpp',
664 'fpdfsdk/src/javascript/report.cpp', 657 'fpdfsdk/src/javascript/JS_Runtime.h',
665 'fpdfsdk/src/javascript/report.h', 658 'fpdfsdk/src/javascript/JS_Value.cpp',
666 'fpdfsdk/src/javascript/resource.cpp', 659 'fpdfsdk/src/javascript/JS_Value.h',
667 'fpdfsdk/src/javascript/resource.h', 660 'fpdfsdk/src/javascript/PublicMethods.cpp',
668 'fpdfsdk/src/javascript/util.cpp', 661 'fpdfsdk/src/javascript/PublicMethods.h',
669 'fpdfsdk/src/javascript/util.h', 662 'fpdfsdk/src/javascript/app.cpp',
663 'fpdfsdk/src/javascript/app.cpp',
664 'fpdfsdk/src/javascript/app.h',
665 'fpdfsdk/src/javascript/color.cpp',
666 'fpdfsdk/src/javascript/color.cpp',
667 'fpdfsdk/src/javascript/color.h',
668 'fpdfsdk/src/javascript/console.cpp',
669 'fpdfsdk/src/javascript/console.cpp',
670 'fpdfsdk/src/javascript/console.h',
671 'fpdfsdk/src/javascript/event.cpp',
672 'fpdfsdk/src/javascript/event.h',
673 'fpdfsdk/src/javascript/global.cpp',
674 'fpdfsdk/src/javascript/global.h',
675 'fpdfsdk/src/javascript/report.cpp',
676 'fpdfsdk/src/javascript/report.h',
677 'fpdfsdk/src/javascript/resource.cpp',
678 'fpdfsdk/src/javascript/resource.h',
679 'fpdfsdk/src/javascript/util.cpp',
680 'fpdfsdk/src/javascript/util.h',
681 'fpdfsdk/include/jsapi/fxjs_v8.h',
682 'fpdfsdk/src/jsapi/fxjs_v8.cpp',
683 ],
684 }],
670 ], 685 ],
671 }, 686 },
672 { 687 {
673 'target_name': 'jsapi',
674 'type': 'static_library',
675 'dependencies': [
676 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
677 ],
678 'export_dependent_settings': [
679 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
680 ],
681 'include_dirs': [
682 '<(DEPTH)/v8',
683 '<(DEPTH)/v8/include',
684 ],
685 'ldflags': [ '-L<(PRODUCT_DIR)',],
686 'sources': [
687 'fpdfsdk/include/jsapi/fxjs_v8.h',
688 'fpdfsdk/src/jsapi/fxjs_v8.cpp',
689 ],
690 },
691 {
692 'target_name': 'formfiller', 688 'target_name': 'formfiller',
693 'type': 'static_library', 689 'type': 'static_library',
694 'ldflags': [ '-L<(PRODUCT_DIR)',], 690 'ldflags': [ '-L<(PRODUCT_DIR)',],
695 'sources': [ 691 'sources': [
696 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h', 692 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
697 'fpdfsdk/include/formfiller/FFL_CheckBox.h', 693 'fpdfsdk/include/formfiller/FFL_CheckBox.h',
698 'fpdfsdk/include/formfiller/FFL_ComboBox.h', 694 'fpdfsdk/include/formfiller/FFL_ComboBox.h',
699 'fpdfsdk/include/formfiller/FFL_FormFiller.h', 695 'fpdfsdk/include/formfiller/FFL_FormFiller.h',
700 'fpdfsdk/include/formfiller/FFL_IFormFiller.h', 696 'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
701 'fpdfsdk/include/formfiller/FFL_ListBox.h', 697 'fpdfsdk/include/formfiller/FFL_ListBox.h',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 'testing/fx_string_testhelpers.cpp', 736 'testing/fx_string_testhelpers.cpp',
741 'third_party/base/nonstd_unique_ptr_unittest.cpp', 737 'third_party/base/nonstd_unique_ptr_unittest.cpp',
742 ], 738 ],
743 }, 739 },
744 { 740 {
745 'target_name': 'pdfium_embeddertests', 741 'target_name': 'pdfium_embeddertests',
746 'type': 'executable', 742 'type': 'executable',
747 'dependencies': [ 743 'dependencies': [
748 '<(DEPTH)/testing/gmock.gyp:gmock', 744 '<(DEPTH)/testing/gmock.gyp:gmock',
749 '<(DEPTH)/testing/gtest.gyp:gtest', 745 '<(DEPTH)/testing/gtest.gyp:gtest',
750 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
751 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
752 'pdfium', 746 'pdfium',
753 ], 747 ],
754 'include_dirs': [ 748 'include_dirs': [
755 '<(DEPTH)', 749 '<(DEPTH)',
756 '<(DEPTH)/v8',
757 '<(DEPTH)/v8/include',
758 ], 750 ],
759 'sources': [ 751 'sources': [
760 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', 752 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
761 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', 753 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
762 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', 754 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
763 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', 755 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
764 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', 756 'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
765 'fpdfsdk/src/fpdftext_embeddertest.cpp', 757 'fpdfsdk/src/fpdftext_embeddertest.cpp',
766 'fpdfsdk/src/fpdfview_c_api_test.c', 758 'fpdfsdk/src/fpdfview_c_api_test.c',
767 'fpdfsdk/src/fpdfview_c_api_test.h', 759 'fpdfsdk/src/fpdfview_c_api_test.h',
768 'fpdfsdk/src/fpdfview_embeddertest.cpp', 760 'fpdfsdk/src/fpdfview_embeddertest.cpp',
769 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp',
770 'testing/embedder_test.cpp', 761 'testing/embedder_test.cpp',
771 'testing/embedder_test.h', 762 'testing/embedder_test.h',
772 'testing/embedder_test_mock_delegate.h', 763 'testing/embedder_test_mock_delegate.h',
773 'testing/embedder_test_timer_handling_delegate.h', 764 'testing/embedder_test_timer_handling_delegate.h',
774 'testing/fx_string_testhelpers.cpp', 765 'testing/fx_string_testhelpers.cpp',
775 'testing/fx_string_testhelpers.h', 766 'testing/fx_string_testhelpers.h',
776 ], 767 ],
768 'conditions': [
769 ['pdf_enable_v8==1', {
770 'include_dirs': [
771 '<(DEPTH)/v8',
772 '<(DEPTH)/v8/include',
773 ],
774 'dependencies': [
775 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
776 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
777 ],
778 'sources': [
779 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp',
780 ],
781 }],
782 ],
777 }, 783 },
778 ], 784 ],
779 } 785 }
OLDNEW
« no previous file with comments | « pdfium.gni ('k') | samples/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698