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

Side by Side Diff: BUILD.gn

Issue 1425153006: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase 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
« no previous file with comments | « no previous file | DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//testing/test.gni") 5 import("//testing/test.gni")
6 import("pdfium.gni") 6 import("pdfium.gni")
7 7
8 config("pdfium_config") { 8 config("pdfium_config") {
9 cflags = [] 9 cflags = []
10 include_dirs = [ 10 include_dirs = [
11 ".",
11 "third_party/freetype/include", 12 "third_party/freetype/include",
12 "third_party/freetype/include/freetype", 13 "third_party/freetype/include/freetype",
13 ] 14 ]
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 20
20 if (pdf_use_skia) { 21 if (pdf_use_skia) {
(...skipping 14 matching lines...) Expand all
35 } 36 }
36 37
37 if (is_win) { 38 if (is_win) {
38 cflags += [ 39 cflags += [
39 "/wd4005", 40 "/wd4005",
40 "/wd4018", 41 "/wd4018",
41 "/wd4146", 42 "/wd4146",
42 "/wd4333", 43 "/wd4333",
43 "/wd4345", 44 "/wd4345",
44 "/wd4267", 45 "/wd4267",
46
45 # TODO(thestig): Fix all instances, remove this, pdfium:29 47 # TODO(thestig): Fix all instances, remove this, pdfium:29
46 "/wd4245", 48 "/wd4245",
47 "/wd4310", 49 "/wd4310",
48 "/wd4389", 50 "/wd4389",
49 "/wd4701", 51 "/wd4701",
50 "/wd4702", 52 "/wd4702",
51 "/wd4706", 53 "/wd4706",
52 "/wd4800", 54 "/wd4800",
53 ] 55 ]
54 } 56 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 "testing/fx_string_testhelpers.cpp", 152 "testing/fx_string_testhelpers.cpp",
151 "testing/fx_string_testhelpers.h", 153 "testing/fx_string_testhelpers.h",
152 "testing/test_support.cpp", 154 "testing/test_support.cpp",
153 "testing/test_support.h", 155 "testing/test_support.h",
154 ] 156 ]
155 deps = [ 157 deps = [
156 "//testing/gmock", 158 "//testing/gmock",
157 "//testing/gtest", 159 "//testing/gtest",
158 ":pdfium", 160 ":pdfium",
159 ] 161 ]
160 include_dirs = [ 162 include_dirs = []
161 "."
162 ]
163 if (pdf_enable_v8) { 163 if (pdf_enable_v8) {
164 deps += [ 164 deps += [
165 "//v8", 165 "//v8",
166 "//v8:v8_libplatform", 166 "//v8:v8_libplatform",
167 ] 167 ]
168 include_dirs += [ 168 include_dirs += [
169 "//v8", 169 "//v8",
170 "//v8/include", 170 "//v8/include",
171 ] 171 ]
172 } 172 }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 "core/src/fpdftext/unicodenormalization.cpp", 347 "core/src/fpdftext/unicodenormalization.cpp",
348 "core/src/fpdftext/unicodenormalizationdata.cpp", 348 "core/src/fpdftext/unicodenormalizationdata.cpp",
349 "core/src/fpdftext/unicodenormalizationdata.h", 349 "core/src/fpdftext/unicodenormalizationdata.h",
350 ] 350 ]
351 configs += [ ":pdfium_config" ] 351 configs += [ ":pdfium_config" ]
352 } 352 }
353 353
354 static_library("fxcodec") { 354 static_library("fxcodec") {
355 deps = [ 355 deps = [
356 "third_party:fx_lcms2", 356 "third_party:fx_lcms2",
357 "third_party:fx_libjpeg",
358 "third_party:fx_libopenjpeg", 357 "third_party:fx_libopenjpeg",
359 "third_party:fx_zlib", 358 "third_party:fx_zlib",
359
360 # This is a generic JPEG library dependency.
361 "//third_party:jpeg",
360 ] 362 ]
361 sources = [ 363 sources = [
362 "core/include/fxcodec/fx_codec.h", 364 "core/include/fxcodec/fx_codec.h",
363 "core/include/fxcodec/fx_codec_def.h", 365 "core/include/fxcodec/fx_codec_def.h",
364 "core/include/fxcodec/fx_codec_flate.h", 366 "core/include/fxcodec/fx_codec_flate.h",
365 "core/src/fxcodec/codec/codec_int.h", 367 "core/src/fxcodec/codec/codec_int.h",
366 "core/src/fxcodec/codec/fx_codec.cpp", 368 "core/src/fxcodec/codec/fx_codec.cpp",
367 "core/src/fxcodec/codec/fx_codec_fax.cpp", 369 "core/src/fxcodec/codec/fx_codec_fax.cpp",
368 "core/src/fxcodec/codec/fx_codec_flate.cpp", 370 "core/src/fxcodec/codec/fx_codec_flate.cpp",
369 "core/src/fxcodec/codec/fx_codec_icc.cpp", 371 "core/src/fxcodec/codec/fx_codec_icc.cpp",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 "core/src/fxcodec/jbig2/JBig2_PddProc.h", 405 "core/src/fxcodec/jbig2/JBig2_PddProc.h",
404 "core/src/fxcodec/jbig2/JBig2_SddProc.cpp", 406 "core/src/fxcodec/jbig2/JBig2_SddProc.cpp",
405 "core/src/fxcodec/jbig2/JBig2_SddProc.h", 407 "core/src/fxcodec/jbig2/JBig2_SddProc.h",
406 "core/src/fxcodec/jbig2/JBig2_Segment.cpp", 408 "core/src/fxcodec/jbig2/JBig2_Segment.cpp",
407 "core/src/fxcodec/jbig2/JBig2_Segment.h", 409 "core/src/fxcodec/jbig2/JBig2_Segment.h",
408 "core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp", 410 "core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp",
409 "core/src/fxcodec/jbig2/JBig2_SymbolDict.h", 411 "core/src/fxcodec/jbig2/JBig2_SymbolDict.h",
410 "core/src/fxcodec/jbig2/JBig2_TrdProc.cpp", 412 "core/src/fxcodec/jbig2/JBig2_TrdProc.cpp",
411 "core/src/fxcodec/jbig2/JBig2_TrdProc.h", 413 "core/src/fxcodec/jbig2/JBig2_TrdProc.h",
412 ] 414 ]
415 include_dirs = []
413 416
414 if (is_posix) { 417 if (is_posix) {
415 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int 418 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
416 # conversion to check that an address is 16-bit aligned (benign). 419 # conversion to check that an address is 16-bit aligned (benign).
417 cflags_c = [ "-Wno-pointer-to-int-cast" ] 420 cflags_c = [ "-Wno-pointer-to-int-cast" ]
418 } 421 }
419 configs += [ ":pdfium_config" ] 422 configs += [ ":pdfium_config" ]
420 } 423 }
421 424
422 config("fxge_warnings") { 425 config("fxge_warnings") {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 "core/src/fxge/apple/apple_int.h", 502 "core/src/fxge/apple/apple_int.h",
500 "core/src/fxge/apple/fx_apple_platform.cpp", 503 "core/src/fxge/apple/fx_apple_platform.cpp",
501 "core/src/fxge/apple/fx_mac_imp.cpp", 504 "core/src/fxge/apple/fx_mac_imp.cpp",
502 "core/src/fxge/apple/fx_quartz_device.cpp", 505 "core/src/fxge/apple/fx_quartz_device.cpp",
503 "core/src/fxge/dib/dib_int.h", 506 "core/src/fxge/dib/dib_int.h",
504 "core/src/fxge/dib/fx_dib_composite.cpp", 507 "core/src/fxge/dib/fx_dib_composite.cpp",
505 "core/src/fxge/dib/fx_dib_convert.cpp", 508 "core/src/fxge/dib/fx_dib_convert.cpp",
506 "core/src/fxge/dib/fx_dib_engine.cpp", 509 "core/src/fxge/dib/fx_dib_engine.cpp",
507 "core/src/fxge/dib/fx_dib_main.cpp", 510 "core/src/fxge/dib/fx_dib_main.cpp",
508 "core/src/fxge/dib/fx_dib_transform.cpp", 511 "core/src/fxge/dib/fx_dib_transform.cpp",
509 "core/src/fxge/fontdata/chromefontdata/chromefontdata.h",
510 "core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c", 512 "core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c",
511 "core/src/fxge/fontdata/chromefontdata/FoxitFixed.c", 513 "core/src/fxge/fontdata/chromefontdata/FoxitFixed.c",
512 "core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c", 514 "core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c",
513 "core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c", 515 "core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c",
514 "core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c", 516 "core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c",
515 "core/src/fxge/fontdata/chromefontdata/FoxitSans.c", 517 "core/src/fxge/fontdata/chromefontdata/FoxitSans.c",
516 "core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c", 518 "core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c",
517 "core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c", 519 "core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c",
518 "core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c", 520 "core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c",
519 "core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c", 521 "core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c",
520 "core/src/fxge/fontdata/chromefontdata/FoxitSerif.c", 522 "core/src/fxge/fontdata/chromefontdata/FoxitSerif.c",
521 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c", 523 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c",
522 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c", 524 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c",
523 "core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c", 525 "core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c",
524 "core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c", 526 "core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c",
525 "core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c", 527 "core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c",
528 "core/src/fxge/fontdata/chromefontdata/chromefontdata.h",
526 "core/src/fxge/freetype/fx_freetype.c", 529 "core/src/fxge/freetype/fx_freetype.c",
527 "core/src/fxge/ge/fx_ge.cpp", 530 "core/src/fxge/ge/fx_ge.cpp",
528 "core/src/fxge/ge/fx_ge_device.cpp", 531 "core/src/fxge/ge/fx_ge_device.cpp",
529 "core/src/fxge/ge/fx_ge_font.cpp", 532 "core/src/fxge/ge/fx_ge_font.cpp",
530 "core/src/fxge/ge/fx_ge_fontmap.cpp", 533 "core/src/fxge/ge/fx_ge_fontmap.cpp",
531 "core/src/fxge/ge/fx_ge_linux.cpp", 534 "core/src/fxge/ge/fx_ge_linux.cpp",
532 "core/src/fxge/ge/fx_ge_path.cpp", 535 "core/src/fxge/ge/fx_ge_path.cpp",
533 "core/src/fxge/ge/fx_ge_ps.cpp", 536 "core/src/fxge/ge/fx_ge_ps.cpp",
534 "core/src/fxge/ge/fx_ge_text.cpp", 537 "core/src/fxge/ge/fx_ge_text.cpp",
535 "core/src/fxge/ge/text_int.h", 538 "core/src/fxge/ge/text_int.h",
(...skipping 12 matching lines...) Expand all
548 include_dirs = [ 551 include_dirs = [
549 "//third_party/skia/include/config", 552 "//third_party/skia/include/config",
550 "//third_party/skia/include/core", 553 "//third_party/skia/include/core",
551 "//third_party/skia/include/effects", 554 "//third_party/skia/include/effects",
552 "//third_party/skia/include/images", 555 "//third_party/skia/include/images",
553 "//third_party/skia/include/lazy", 556 "//third_party/skia/include/lazy",
554 "//third_party/skia/include/pathops", 557 "//third_party/skia/include/pathops",
555 "//third_party/skia/include/utils", 558 "//third_party/skia/include/utils",
556 "//third_party/skia/src/core", 559 "//third_party/skia/src/core",
557 ] 560 ]
558 deps = [ "//skia" ] 561 deps = [
562 "//skia",
563 ]
559 } 564 }
560 565
561 if (is_win) { 566 if (is_win) {
562 sources += [ 567 sources += [
563 "core/src/fxge/win32/dwrite_int.h", 568 "core/src/fxge/win32/dwrite_int.h",
564 "core/src/fxge/win32/fx_win32_device.cpp", 569 "core/src/fxge/win32/fx_win32_device.cpp",
565 "core/src/fxge/win32/fx_win32_dib.cpp", 570 "core/src/fxge/win32/fx_win32_dib.cpp",
566 "core/src/fxge/win32/fx_win32_dwrite.cpp", 571 "core/src/fxge/win32/fx_win32_dwrite.cpp",
567 "core/src/fxge/win32/fx_win32_gdipext.cpp", 572 "core/src/fxge/win32/fx_win32_gdipext.cpp",
568 "core/src/fxge/win32/fx_win32_print.cpp", 573 "core/src/fxge/win32/fx_win32_print.cpp",
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 ] 633 ]
629 configs += [ ":pdfium_config" ] 634 configs += [ ":pdfium_config" ]
630 } 635 }
631 636
632 static_library("javascript") { 637 static_library("javascript") {
633 sources = [ 638 sources = [
634 "fpdfsdk/include/javascript/IJavaScript.h", 639 "fpdfsdk/include/javascript/IJavaScript.h",
635 ] 640 ]
636 if (pdf_enable_v8) { 641 if (pdf_enable_v8) {
637 sources += [ 642 sources += [
643 "fpdfsdk/include/jsapi/fxjs_v8.h",
638 "fpdfsdk/src/javascript/Consts.cpp", 644 "fpdfsdk/src/javascript/Consts.cpp",
639 "fpdfsdk/src/javascript/Consts.h", 645 "fpdfsdk/src/javascript/Consts.h",
640 "fpdfsdk/src/javascript/Document.cpp", 646 "fpdfsdk/src/javascript/Document.cpp",
641 "fpdfsdk/src/javascript/Document.h", 647 "fpdfsdk/src/javascript/Document.h",
642 "fpdfsdk/src/javascript/Field.cpp", 648 "fpdfsdk/src/javascript/Field.cpp",
643 "fpdfsdk/src/javascript/Field.h", 649 "fpdfsdk/src/javascript/Field.h",
644 "fpdfsdk/src/javascript/Icon.cpp", 650 "fpdfsdk/src/javascript/Icon.cpp",
645 "fpdfsdk/src/javascript/Icon.h", 651 "fpdfsdk/src/javascript/Icon.h",
646 "fpdfsdk/src/javascript/JS_Context.cpp", 652 "fpdfsdk/src/javascript/JS_Context.cpp",
647 "fpdfsdk/src/javascript/JS_Context.h", 653 "fpdfsdk/src/javascript/JS_Context.h",
(...skipping 19 matching lines...) Expand all
667 "fpdfsdk/src/javascript/event.cpp", 673 "fpdfsdk/src/javascript/event.cpp",
668 "fpdfsdk/src/javascript/event.h", 674 "fpdfsdk/src/javascript/event.h",
669 "fpdfsdk/src/javascript/global.cpp", 675 "fpdfsdk/src/javascript/global.cpp",
670 "fpdfsdk/src/javascript/global.h", 676 "fpdfsdk/src/javascript/global.h",
671 "fpdfsdk/src/javascript/report.cpp", 677 "fpdfsdk/src/javascript/report.cpp",
672 "fpdfsdk/src/javascript/report.h", 678 "fpdfsdk/src/javascript/report.h",
673 "fpdfsdk/src/javascript/resource.cpp", 679 "fpdfsdk/src/javascript/resource.cpp",
674 "fpdfsdk/src/javascript/resource.h", 680 "fpdfsdk/src/javascript/resource.h",
675 "fpdfsdk/src/javascript/util.cpp", 681 "fpdfsdk/src/javascript/util.cpp",
676 "fpdfsdk/src/javascript/util.h", 682 "fpdfsdk/src/javascript/util.h",
677 "fpdfsdk/include/jsapi/fxjs_v8.h",
678 "fpdfsdk/src/jsapi/fxjs_v8.cpp", 683 "fpdfsdk/src/jsapi/fxjs_v8.cpp",
679 ] 684 ]
680 include_dirs = [ 685 include_dirs = [
681 "//v8", 686 "//v8",
682 "//v8/include", 687 "//v8/include",
683 ] 688 ]
684 public_deps = [ 689 public_deps = [
685 "//v8", 690 "//v8",
686 ] 691 ]
687 } else { 692 } else {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 "core/src/fxcrt/fx_bidi_unittest.cpp", 734 "core/src/fxcrt/fx_bidi_unittest.cpp",
730 "core/src/fxcrt/fx_system_unittest.cpp", 735 "core/src/fxcrt/fx_system_unittest.cpp",
731 "third_party/base/nonstd_unique_ptr_unittest.cpp", 736 "third_party/base/nonstd_unique_ptr_unittest.cpp",
732 ] 737 ]
733 deps = [ 738 deps = [
734 "//testing/gtest", 739 "//testing/gtest",
735 "//testing/gtest:gtest_main", 740 "//testing/gtest:gtest_main",
736 ":pdfium", 741 ":pdfium",
737 ":test_support", 742 ":test_support",
738 ] 743 ]
739 include_dirs = [ "." ]
740 configs += [ ":pdfium_config" ] 744 configs += [ ":pdfium_config" ]
741 } 745 }
742 746
743 test("pdfium_embeddertests") { 747 test("pdfium_embeddertests") {
744 sources = [ 748 sources = [
745 "core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp", 749 "core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp",
746 "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", 750 "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp",
747 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp", 751 "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp",
748 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", 752 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp",
749 "fpdfsdk/src/fpdf_dataavail_embeddertest.cpp", 753 "fpdfsdk/src/fpdf_dataavail_embeddertest.cpp",
750 "fpdfsdk/src/fpdfdoc_embeddertest.cpp", 754 "fpdfsdk/src/fpdfdoc_embeddertest.cpp",
751 "fpdfsdk/src/fpdfformfill_embeddertest.cpp", 755 "fpdfsdk/src/fpdfformfill_embeddertest.cpp",
752 "fpdfsdk/src/fpdftext_embeddertest.cpp", 756 "fpdfsdk/src/fpdftext_embeddertest.cpp",
753 "fpdfsdk/src/fpdfview_c_api_test.c", 757 "fpdfsdk/src/fpdfview_c_api_test.c",
754 "fpdfsdk/src/fpdfview_c_api_test.h", 758 "fpdfsdk/src/fpdfview_c_api_test.h",
755 "fpdfsdk/src/fpdfview_embeddertest.cpp", 759 "fpdfsdk/src/fpdfview_embeddertest.cpp",
756 "testing/embedder_test.cpp", 760 "testing/embedder_test.cpp",
757 "testing/embedder_test.h", 761 "testing/embedder_test.h",
758 "testing/embedder_test_mock_delegate.h", 762 "testing/embedder_test_mock_delegate.h",
759 "testing/embedder_test_timer_handling_delegate.h", 763 "testing/embedder_test_timer_handling_delegate.h",
760 ] 764 ]
761 deps = [ 765 deps = [
762 "//testing/gmock", 766 "//testing/gmock",
763 "//testing/gtest", 767 "//testing/gtest",
764 ":pdfium", 768 ":pdfium",
765 ":test_support", 769 ":test_support",
766 ] 770 ]
767 include_dirs = [ 771 include_dirs = []
768 "."
769 ]
770 if (pdf_enable_v8) { 772 if (pdf_enable_v8) {
771 sources += [ 773 sources += [ "fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp" ]
772 "fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp"
773 ]
774 deps += [ 774 deps += [
775 "//v8", 775 "//v8",
776 "//v8:v8_libplatform", 776 "//v8:v8_libplatform",
777 ] 777 ]
778 include_dirs += [ 778 include_dirs += [
779 "//v8", 779 "//v8",
780 "//v8/include", 780 "//v8/include",
781 ] 781 ]
782 } 782 }
783 configs += [ ":pdfium_config" ] 783 configs += [ ":pdfium_config" ]
784 } 784 }
OLDNEW
« no previous file with comments | « no previous file | DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698