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

Side by Side Diff: pdfium.gyp

Issue 1399833002: Allow building of XFA branch without XFA (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Keep GN in sync. 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_xfa%': 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 'PNG_PREFIX', 17 'PNG_PREFIX',
17 'PNGPREFIX_H', 18 'PNGPREFIX_H',
18 'PNG_USE_READ_MACROS', 19 'PNG_USE_READ_MACROS',
19 'V8_DEPRECATION_WARNINGS', 20 'V8_DEPRECATION_WARNINGS',
20 '_CRT_SECURE_NO_WARNINGS', 21 '_CRT_SECURE_NO_WARNINGS',
21 ], 22 ],
22 'include_dirs': [ 23 'include_dirs': [
23 'third_party/freetype/include', 24 'third_party/freetype/include',
24 ], 25 ],
25 'conditions': [ 26 'conditions': [
26 ['pdf_use_skia==1', { 27 ['pdf_use_skia==1', {
27 'defines': ['_SKIA_SUPPORT_'], 28 'defines': ['_SKIA_SUPPORT_'],
28 }], 29 }],
30 ['pdf_enable_xfa==1', {
31 'defines': ['PDF_ENABLE_XFA'],
32 }],
29 ['OS=="linux"', { 33 ['OS=="linux"', {
30 'conditions': [ 34 'conditions': [
31 ['target_arch=="x64"', { 35 ['target_arch=="x64"', {
32 'defines' : [ '_FX_CPU_=_FX_X64_', ], 36 'defines' : [ '_FX_CPU_=_FX_X64_', ],
33 'cflags': [ '-fPIC', ], 37 'cflags': [ '-fPIC', ],
34 }], 38 }],
35 ['target_arch=="ia32"', { 39 ['target_arch=="ia32"', {
36 'defines' : [ '_FX_CPU_=_FX_X86_', ], 40 'defines' : [ '_FX_CPU_=_FX_X86_', ],
37 }], 41 }],
38 ], 42 ],
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp', 672 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
669 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp', 673 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
670 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp', 674 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
671 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp', 675 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
672 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp', 676 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
673 ], 677 ],
674 }, 678 },
675 { 679 {
676 'target_name': 'fpdfxfa', 680 'target_name': 'fpdfxfa',
677 'type': 'static_library', 681 'type': 'static_library',
678 'ldflags': [ '-L<(PRODUCT_DIR)',],
679 'dependencies': [ 682 'dependencies': [
680 'xfa.gyp:xfa', 683 'javascript'
681 ], 684 ],
682 'sources': [ 685 'sources': [
683 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp', 686 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
684 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp', 687 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
685 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp', 688 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
686 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp', 689 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
687 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h', 690 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
688 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h', 691 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
689 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h', 692 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
690 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h', 693 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
691 ], 694 ],
695 'ldflags': [ '-L<(PRODUCT_DIR)',],
696 'conditions': [
697 [ "pdf_enable_xfa==1", {
698 'dependencies': [
699 'xfa.gyp:xfa',
700 ],
701 }],
702 ],
692 }, 703 },
693 { 704 {
694 'target_name': 'javascript', 705 'target_name': 'javascript',
695 'type': 'static_library', 706 'type': 'static_library',
696 'include_dirs': [ 707 'include_dirs': [
697 '<(DEPTH)/v8', 708 '<(DEPTH)/v8',
698 '<(DEPTH)/v8/include', 709 '<(DEPTH)/v8/include',
699 ], 710 ],
700 'dependencies': [ 711 'dependencies': [
701 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', 712 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 '<(DEPTH)' 822 '<(DEPTH)'
812 ], 823 ],
813 'sources': [ 824 'sources': [
814 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp', 825 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
815 'core/src/fxcrt/fx_basic_bstring_unittest.cpp', 826 'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
816 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp', 827 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp',
817 'core/src/fxcrt/fx_basic_wstring_unittest.cpp', 828 'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
818 'testing/fx_string_testhelpers.h', 829 'testing/fx_string_testhelpers.h',
819 'testing/fx_string_testhelpers.cpp', 830 'testing/fx_string_testhelpers.cpp',
820 'third_party/base/nonstd_unique_ptr_unittest.cpp', 831 'third_party/base/nonstd_unique_ptr_unittest.cpp',
821 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp', 832 ],
822 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp', 833 'conditions': [
834 ['pdf_enable_xfa==1', {
835 'sources': [
836 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
837 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp',
838 ],
839 }],
823 ], 840 ],
824 }, 841 },
825 { 842 {
826 'target_name': 'pdfium_embeddertests', 843 'target_name': 'pdfium_embeddertests',
827 'type': 'executable', 844 'type': 'executable',
828 'dependencies': [ 845 'dependencies': [
829 '<(DEPTH)/testing/gmock.gyp:gmock', 846 '<(DEPTH)/testing/gmock.gyp:gmock',
830 '<(DEPTH)/testing/gtest.gyp:gtest', 847 '<(DEPTH)/testing/gtest.gyp:gtest',
831 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', 848 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
832 'pdfium', 849 'pdfium',
(...skipping 17 matching lines...) Expand all
850 'testing/embedder_test.cpp', 867 'testing/embedder_test.cpp',
851 'testing/embedder_test.h', 868 'testing/embedder_test.h',
852 'testing/embedder_test_mock_delegate.h', 869 'testing/embedder_test_mock_delegate.h',
853 'testing/embedder_test_timer_handling_delegate.h', 870 'testing/embedder_test_timer_handling_delegate.h',
854 'testing/fx_string_testhelpers.cpp', 871 'testing/fx_string_testhelpers.cpp',
855 'testing/fx_string_testhelpers.h', 872 'testing/fx_string_testhelpers.h',
856 ], 873 ],
857 }, 874 },
858 ], 875 ],
859 } 876 }
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