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

Side by Side Diff: pdfium.gyp

Issue 1425153006: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: comments, GN formatting, DEPS roll Created 5 years, 1 month 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
OLDNEW
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 ], 31 ],
25 'conditions': [ 32 'conditions': [
26 ['pdf_use_skia==1', { 33 ['pdf_use_skia==1', {
27 'defines': ['_SKIA_SUPPORT_'], 34 'defines': ['_SKIA_SUPPORT_'],
28 }], 35 }],
29 ['pdf_enable_v8==1', { 36 ['pdf_enable_v8==1', {
30 'defines': ['PDF_ENABLE_V8'], 37 'defines': ['PDF_ENABLE_V8'],
31 }], 38 }],
32 ['OS=="linux"', { 39 ['OS=="linux"', {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 'core/src/fpdftext/txtproc.h', 326 'core/src/fpdftext/txtproc.h',
320 'core/src/fpdftext/unicodenormalization.cpp', 327 'core/src/fpdftext/unicodenormalization.cpp',
321 'core/src/fpdftext/unicodenormalizationdata.cpp', 328 'core/src/fpdftext/unicodenormalizationdata.cpp',
322 'core/src/fpdftext/unicodenormalizationdata.h', 329 'core/src/fpdftext/unicodenormalizationdata.h',
323 ], 330 ],
324 }, 331 },
325 { 332 {
326 'target_name': 'fxcodec', 333 'target_name': 'fxcodec',
327 'type': 'static_library', 334 'type': 'static_library',
328 'dependencies': [ 335 'dependencies': [
336 '<(libjpeg_gyp_path):libjpeg',
329 'third_party/third_party.gyp:fx_lcms2', 337 'third_party/third_party.gyp:fx_lcms2',
330 'third_party/third_party.gyp:fx_libjpeg',
331 'third_party/third_party.gyp:fx_libopenjpeg', 338 'third_party/third_party.gyp:fx_libopenjpeg',
332 'third_party/third_party.gyp:fx_zlib', 339 'third_party/third_party.gyp:fx_zlib',
333 ], 340 ],
334 'sources': [ 341 'sources': [
335 'core/include/fxcodec/fx_codec.h', 342 'core/include/fxcodec/fx_codec.h',
336 'core/include/fxcodec/fx_codec_def.h', 343 'core/include/fxcodec/fx_codec_def.h',
337 'core/include/fxcodec/fx_codec_flate.h', 344 'core/include/fxcodec/fx_codec_flate.h',
338 'core/src/fxcodec/codec/codec_int.h', 345 'core/src/fxcodec/codec/codec_int.h',
339 'core/src/fxcodec/codec/fx_codec.cpp', 346 'core/src/fxcodec/codec/fx_codec.cpp',
340 'core/src/fxcodec/codec/fx_codec_fax.cpp', 347 'core/src/fxcodec/codec/fx_codec_fax.cpp',
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 }, 710 },
704 { 711 {
705 'target_name': 'pdfium_unittests', 712 'target_name': 'pdfium_unittests',
706 'type': 'executable', 713 'type': 'executable',
707 'dependencies': [ 714 'dependencies': [
708 '<(DEPTH)/testing/gtest.gyp:gtest_main', 715 '<(DEPTH)/testing/gtest.gyp:gtest_main',
709 '<(DEPTH)/testing/gtest.gyp:gtest', 716 '<(DEPTH)/testing/gtest.gyp:gtest',
710 'pdfium', 717 'pdfium',
711 'test_support', 718 'test_support',
712 ], 719 ],
713 'include_dirs': [
714 '<(DEPTH)'
715 ],
716 'sources': [ 720 'sources': [
717 'core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp', 721 'core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp',
718 'core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp', 722 'core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp',
719 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp', 723 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp',
720 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp', 724 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp',
721 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp', 725 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp',
722 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp', 726 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
723 'core/src/fxcrt/fx_basic_bstring_unittest.cpp', 727 'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
724 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp', 728 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp',
725 'core/src/fxcrt/fx_basic_wstring_unittest.cpp', 729 'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
726 'core/src/fxcrt/fx_bidi_unittest.cpp', 730 'core/src/fxcrt/fx_bidi_unittest.cpp',
727 'core/src/fxcrt/fx_system_unittest.cpp', 731 'core/src/fxcrt/fx_system_unittest.cpp',
728 'testing/fx_string_testhelpers.h', 732 'testing/fx_string_testhelpers.h',
729 'testing/fx_string_testhelpers.cpp', 733 'testing/fx_string_testhelpers.cpp',
730 'third_party/base/nonstd_unique_ptr_unittest.cpp', 734 'third_party/base/nonstd_unique_ptr_unittest.cpp',
731 ], 735 ],
732 }, 736 },
733 { 737 {
734 'target_name': 'pdfium_embeddertests', 738 'target_name': 'pdfium_embeddertests',
735 'type': 'executable', 739 'type': 'executable',
736 'dependencies': [ 740 'dependencies': [
737 '<(DEPTH)/testing/gmock.gyp:gmock', 741 '<(DEPTH)/testing/gmock.gyp:gmock',
738 '<(DEPTH)/testing/gtest.gyp:gtest', 742 '<(DEPTH)/testing/gtest.gyp:gtest',
739 'pdfium', 743 'pdfium',
740 'test_support', 744 'test_support',
741 ], 745 ],
742 'include_dirs': [
743 '<(DEPTH)',
744 ],
745 'sources': [ 746 'sources': [
746 'core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp', 747 'core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp',
747 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', 748 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
748 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp', 749 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
749 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp', 750 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp',
750 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp', 751 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
751 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', 752 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
752 'fpdfsdk/src/fpdfformfill_embeddertest.cpp', 753 'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
753 'fpdfsdk/src/fpdftext_embeddertest.cpp', 754 'fpdfsdk/src/fpdftext_embeddertest.cpp',
754 'fpdfsdk/src/fpdfview_c_api_test.c', 755 'fpdfsdk/src/fpdfview_c_api_test.c',
(...skipping 20 matching lines...) Expand all
775 }], 776 }],
776 ], 777 ],
777 }, 778 },
778 { 779 {
779 'target_name': 'test_support', 780 'target_name': 'test_support',
780 'type': 'static_library', 781 'type': 'static_library',
781 'dependencies': [ 782 'dependencies': [
782 '<(DEPTH)/testing/gmock.gyp:gmock', 783 '<(DEPTH)/testing/gmock.gyp:gmock',
783 '<(DEPTH)/testing/gtest.gyp:gtest', 784 '<(DEPTH)/testing/gtest.gyp:gtest',
784 ], 785 ],
785 'include_dirs': [
786 '<(DEPTH)',
787 ],
788 'sources': [ 786 'sources': [
789 'testing/fx_string_testhelpers.cpp', 787 'testing/fx_string_testhelpers.cpp',
790 'testing/fx_string_testhelpers.h', 788 'testing/fx_string_testhelpers.h',
791 'testing/test_support.cpp', 789 'testing/test_support.cpp',
792 'testing/test_support.h', 790 'testing/test_support.h',
793 ], 791 ],
794 'conditions': [ 792 'conditions': [
795 ['pdf_enable_v8==1', { 793 ['pdf_enable_v8==1', {
796 'include_dirs': [ 794 'include_dirs': [
797 '<(DEPTH)/v8', 795 '<(DEPTH)/v8',
798 '<(DEPTH)/v8/include', 796 '<(DEPTH)/v8/include',
799 ], 797 ],
800 'dependencies': [ 798 'dependencies': [
801 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', 799 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
802 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', 800 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
803 ], 801 ],
804 }], 802 }],
805 ], 803 ],
806 }, 804 },
807 ], 805 ],
808 } 806 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698