| OLD | NEW |
| 1 # Copyright 2015 PDFium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 1 { | 5 { |
| 2 'variables': { | 6 'variables': { |
| 3 # TODO(thakis): Enable this, pdfium:29 | 7 # TODO(thakis): Enable this, pdfium:29 |
| 4 #'chromium_code': 1, | 8 #'chromium_code': 1, |
| 5 'pdf_use_skia%': 0, | 9 'pdf_use_skia%': 0, |
| 6 'pdf_enable_v8%': 1, | 10 'pdf_enable_v8%': 1, |
| 7 'conditions': [ | 11 'conditions': [ |
| 8 ['OS=="linux"', { | 12 ['OS=="linux"', { |
| 9 'bundle_freetype%': 0, | 13 'bundle_freetype%': 0, |
| 10 }, { # On Android there's no system FreeType. On Windows and Mac, only a | 14 }, { # On Android there's no system FreeType. On Windows and Mac, only a |
| 11 # few methods are used from it. | 15 # few methods are used from it. |
| 12 'bundle_freetype%': 1, | 16 'bundle_freetype%': 1, |
| 13 }], | 17 }], |
| 14 ], | 18 ], |
| 15 }, | 19 }, |
| 16 'target_defaults': { | 20 'target_defaults': { |
| 17 'defines' : [ | 21 'defines' : [ |
| 18 'OPJ_STATIC', | 22 'OPJ_STATIC', |
| 19 'V8_DEPRECATION_WARNINGS', | 23 'V8_DEPRECATION_WARNINGS', |
| 20 '_CRT_SECURE_NO_WARNINGS', | 24 '_CRT_SECURE_NO_WARNINGS', |
| 21 ], | 25 ], |
| 22 'include_dirs': [ | 26 'include_dirs': [ |
| 27 # This is implicit in GN. |
| 28 '<(DEPTH)', |
| 29 '.', |
| 23 'third_party/freetype/include', | 30 'third_party/freetype/include', |
| 24 'third_party/freetype/include/freetype', | 31 'third_party/freetype/include/freetype', |
| 25 ], | 32 ], |
| 26 'conditions': [ | 33 'conditions': [ |
| 27 ['pdf_use_skia==1', { | 34 ['pdf_use_skia==1', { |
| 28 'defines': ['_SKIA_SUPPORT_'], | 35 'defines': ['_SKIA_SUPPORT_'], |
| 29 }], | 36 }], |
| 30 ['pdf_enable_v8==1', { | 37 ['pdf_enable_v8==1', { |
| 31 'defines': ['PDF_ENABLE_V8'], | 38 'defines': ['PDF_ENABLE_V8'], |
| 32 }], | 39 }], |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 'core/src/fpdftext/txtproc.h', | 327 'core/src/fpdftext/txtproc.h', |
| 321 'core/src/fpdftext/unicodenormalization.cpp', | 328 'core/src/fpdftext/unicodenormalization.cpp', |
| 322 'core/src/fpdftext/unicodenormalizationdata.cpp', | 329 'core/src/fpdftext/unicodenormalizationdata.cpp', |
| 323 'core/src/fpdftext/unicodenormalizationdata.h', | 330 'core/src/fpdftext/unicodenormalizationdata.h', |
| 324 ], | 331 ], |
| 325 }, | 332 }, |
| 326 { | 333 { |
| 327 'target_name': 'fxcodec', | 334 'target_name': 'fxcodec', |
| 328 'type': 'static_library', | 335 'type': 'static_library', |
| 329 'dependencies': [ | 336 'dependencies': [ |
| 337 '<(libjpeg_gyp_path):libjpeg', |
| 330 'third_party/third_party.gyp:fx_lcms2', | 338 'third_party/third_party.gyp:fx_lcms2', |
| 331 'third_party/third_party.gyp:fx_libjpeg', | |
| 332 'third_party/third_party.gyp:fx_libopenjpeg', | 339 'third_party/third_party.gyp:fx_libopenjpeg', |
| 333 'third_party/third_party.gyp:fx_zlib', | 340 'third_party/third_party.gyp:fx_zlib', |
| 334 ], | 341 ], |
| 335 'sources': [ | 342 'sources': [ |
| 336 'core/include/fxcodec/fx_codec.h', | 343 'core/include/fxcodec/fx_codec.h', |
| 337 'core/include/fxcodec/fx_codec_def.h', | 344 'core/include/fxcodec/fx_codec_def.h', |
| 338 'core/include/fxcodec/fx_codec_flate.h', | 345 'core/include/fxcodec/fx_codec_flate.h', |
| 339 'core/src/fxcodec/codec/codec_int.h', | 346 'core/src/fxcodec/codec/codec_int.h', |
| 340 'core/src/fxcodec/codec/fx_codec.cpp', | 347 'core/src/fxcodec/codec/fx_codec.cpp', |
| 341 'core/src/fxcodec/codec/fx_codec_fax.cpp', | 348 'core/src/fxcodec/codec/fx_codec_fax.cpp', |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 }, | 711 }, |
| 705 { | 712 { |
| 706 'target_name': 'pdfium_unittests', | 713 'target_name': 'pdfium_unittests', |
| 707 'type': 'executable', | 714 'type': 'executable', |
| 708 'dependencies': [ | 715 'dependencies': [ |
| 709 '<(DEPTH)/testing/gtest.gyp:gtest_main', | 716 '<(DEPTH)/testing/gtest.gyp:gtest_main', |
| 710 '<(DEPTH)/testing/gtest.gyp:gtest', | 717 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 711 'pdfium', | 718 'pdfium', |
| 712 'test_support', | 719 'test_support', |
| 713 ], | 720 ], |
| 714 'include_dirs': [ | |
| 715 '<(DEPTH)' | |
| 716 ], | |
| 717 'sources': [ | 721 'sources': [ |
| 718 'core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp', | 722 'core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp', |
| 719 'core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp', | 723 'core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp', |
| 720 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp', | 724 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp', |
| 721 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp', | 725 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp', |
| 722 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp', | 726 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp', |
| 723 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp', | 727 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp', |
| 724 'core/src/fxcrt/fx_basic_bstring_unittest.cpp', | 728 'core/src/fxcrt/fx_basic_bstring_unittest.cpp', |
| 725 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp', | 729 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp', |
| 726 'core/src/fxcrt/fx_basic_wstring_unittest.cpp', | 730 'core/src/fxcrt/fx_basic_wstring_unittest.cpp', |
| 727 'core/src/fxcrt/fx_bidi_unittest.cpp', | 731 'core/src/fxcrt/fx_bidi_unittest.cpp', |
| 728 'core/src/fxcrt/fx_system_unittest.cpp', | 732 'core/src/fxcrt/fx_system_unittest.cpp', |
| 729 'testing/fx_string_testhelpers.h', | 733 'testing/fx_string_testhelpers.h', |
| 730 'testing/fx_string_testhelpers.cpp', | 734 'testing/fx_string_testhelpers.cpp', |
| 731 'third_party/base/nonstd_unique_ptr_unittest.cpp', | 735 'third_party/base/nonstd_unique_ptr_unittest.cpp', |
| 732 ], | 736 ], |
| 733 }, | 737 }, |
| 734 { | 738 { |
| 735 'target_name': 'pdfium_embeddertests', | 739 'target_name': 'pdfium_embeddertests', |
| 736 'type': 'executable', | 740 'type': 'executable', |
| 737 'dependencies': [ | 741 'dependencies': [ |
| 738 '<(DEPTH)/testing/gmock.gyp:gmock', | 742 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 739 '<(DEPTH)/testing/gtest.gyp:gtest', | 743 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 740 'pdfium', | 744 'pdfium', |
| 741 'test_support', | 745 'test_support', |
| 742 ], | 746 ], |
| 743 'include_dirs': [ | |
| 744 '<(DEPTH)', | |
| 745 ], | |
| 746 'sources': [ | 747 'sources': [ |
| 747 'core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp', | 748 'core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp', |
| 748 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', | 749 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', |
| 749 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', | 750 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', |
| 750 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp', | 751 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp', |
| 751 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', | 752 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', |
| 752 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', | 753 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', |
| 753 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', | 754 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', |
| 754 'fpdfsdk/src/fpdftext_embeddertest.cpp', | 755 'fpdfsdk/src/fpdftext_embeddertest.cpp', |
| 755 'fpdfsdk/src/fpdfview_c_api_test.c', | 756 'fpdfsdk/src/fpdfview_c_api_test.c', |
| (...skipping 20 matching lines...) Expand all Loading... |
| 776 }], | 777 }], |
| 777 ], | 778 ], |
| 778 }, | 779 }, |
| 779 { | 780 { |
| 780 'target_name': 'test_support', | 781 'target_name': 'test_support', |
| 781 'type': 'static_library', | 782 'type': 'static_library', |
| 782 'dependencies': [ | 783 'dependencies': [ |
| 783 '<(DEPTH)/testing/gmock.gyp:gmock', | 784 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 784 '<(DEPTH)/testing/gtest.gyp:gtest', | 785 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 785 ], | 786 ], |
| 786 'include_dirs': [ | |
| 787 '<(DEPTH)', | |
| 788 ], | |
| 789 'sources': [ | 787 'sources': [ |
| 790 'testing/fx_string_testhelpers.cpp', | 788 'testing/fx_string_testhelpers.cpp', |
| 791 'testing/fx_string_testhelpers.h', | 789 'testing/fx_string_testhelpers.h', |
| 792 'testing/test_support.cpp', | 790 'testing/test_support.cpp', |
| 793 'testing/test_support.h', | 791 'testing/test_support.h', |
| 794 ], | 792 ], |
| 795 'conditions': [ | 793 'conditions': [ |
| 796 ['pdf_enable_v8==1', { | 794 ['pdf_enable_v8==1', { |
| 797 'include_dirs': [ | 795 'include_dirs': [ |
| 798 '<(DEPTH)/v8', | 796 '<(DEPTH)/v8', |
| 799 '<(DEPTH)/v8/include', | 797 '<(DEPTH)/v8/include', |
| 800 ], | 798 ], |
| 801 'dependencies': [ | 799 'dependencies': [ |
| 802 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | 800 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
| 803 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | 801 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
| 804 ], | 802 ], |
| 805 }], | 803 }], |
| 806 ], | 804 ], |
| 807 }, | 805 }, |
| 808 ], | 806 ], |
| 809 } | 807 } |
| OLD | NEW |