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

Side by Side Diff: BUILD.gn

Issue 2041053003: Differentiate GN config settings for core vs third party code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 6 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 | « no previous file | third_party/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 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//build_overrides/v8.gni") 5 import("//build_overrides/v8.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("pdfium.gni") 7 import("pdfium.gni")
8 8
9 config("pdfium_config") { 9 config("pdfium_common_config") {
10 cflags = [] 10 cflags = []
11 include_dirs = [ 11 include_dirs = [
12 ".", 12 ".",
13 "third_party/freetype/include", 13 "third_party/freetype/include",
14 "third_party/freetype/include/freetype", 14 "third_party/freetype/include/freetype",
15 ] 15 ]
16 defines = [ 16 defines = [
17 "OPJ_STATIC", 17 "OPJ_STATIC",
18 "PNG_PREFIX", 18 "PNG_PREFIX",
19 "PNG_USE_READ_MACROS", 19 "PNG_USE_READ_MACROS",
20 "V8_DEPRECATION_WARNINGS",
21 ] 20 ]
22 21
23 if (pdf_use_skia) { 22 if (pdf_use_skia) {
24 defines += [ "_SKIA_SUPPORT_" ] 23 defines += [ "_SKIA_SUPPORT_" ]
25 } 24 }
26 25
27 if (pdf_enable_v8) { 26 if (pdf_enable_v8) {
28 defines += [ "PDF_ENABLE_V8" ] 27 defines += [ "PDF_ENABLE_V8" ]
29 } 28 }
30 29
31 if (pdf_enable_xfa) { 30 if (pdf_enable_xfa) {
32 defines += [ "PDF_ENABLE_XFA" ] 31 defines += [ "PDF_ENABLE_XFA" ]
33 } 32 }
33 }
34 34
35 config("pdfium_core_config") {
36 cflags = []
37 configs = [":pdfium_common_config"]
38 defines = ["V8_DEPRECATION_WARNINGS"]
35 if (is_linux) { 39 if (is_linux) {
36 if (current_cpu == "x64") { 40 if (current_cpu == "x64") {
37 defines += [ "_FX_CPU_=_FX_X64_" ] 41 defines += [ "_FX_CPU_=_FX_X64_" ]
38 cflags += [ "-fPIC" ] 42 cflags += [ "-fPIC" ]
39 } else if (current_cpu == "x86") { 43 } else if (current_cpu == "x86") {
40 defines += [ "_FX_CPU_=_FX_X86_" ] 44 defines += [ "_FX_CPU_=_FX_X86_" ]
41 } 45 }
42 } 46 }
43
44 if (is_win) { 47 if (is_win) {
45 cflags += [ "/wd4267" ] 48 cflags += [ "/wd4267" ]
46 } 49 }
47 } 50 }
48 51
49 config("xfa_warnings") { 52 config("xfa_warnings") {
50 visibility = [ ":*" ] 53 visibility = [ ":*" ]
51 if (is_posix && !is_clang) { # When GCC. 54 if (is_posix && !is_clang) { # When GCC.
52 cflags = [ "-Wno-strict-overflow" ] 55 cflags = [ "-Wno-strict-overflow" ]
53 } 56 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 "public/fpdf_progressive.h", 96 "public/fpdf_progressive.h",
94 "public/fpdf_save.h", 97 "public/fpdf_save.h",
95 "public/fpdf_searchex.h", 98 "public/fpdf_searchex.h",
96 "public/fpdf_sysfontinfo.h", 99 "public/fpdf_sysfontinfo.h",
97 "public/fpdf_text.h", 100 "public/fpdf_text.h",
98 "public/fpdf_transformpage.h", 101 "public/fpdf_transformpage.h",
99 "public/fpdfview.h", 102 "public/fpdfview.h",
100 ] 103 ]
101 104
102 libs = [] 105 libs = []
103 configs += [ ":pdfium_config" ] 106 configs += [ ":pdfium_core_config" ]
104 107
105 deps = [ 108 deps = [
106 ":fdrm", 109 ":fdrm",
107 ":formfiller", 110 ":formfiller",
108 ":fpdfapi", 111 ":fpdfapi",
109 ":fpdfdoc", 112 ":fpdfdoc",
110 ":fpdftext", 113 ":fpdftext",
111 ":fxcodec", 114 ":fxcodec",
112 ":fxcrt", 115 ":fxcrt",
113 ":fxedit", 116 ":fxedit",
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 deps += [ 166 deps += [
164 "//v8", 167 "//v8",
165 "//v8:v8_libplatform", 168 "//v8:v8_libplatform",
166 ] 169 ]
167 include_dirs += [ 170 include_dirs += [
168 "//v8", 171 "//v8",
169 "//v8/include", 172 "//v8/include",
170 ] 173 ]
171 configs += [ "//v8:external_startup_data" ] 174 configs += [ "//v8:external_startup_data" ]
172 } 175 }
173 configs += [ ":pdfium_config" ] 176 configs += [ ":pdfium_core_config" ]
174 } 177 }
175 178
176 # Targets below this are only visible within this file (and to the 179 # Targets below this are only visible within this file (and to the
177 # top-level gn_visibility target used to help gn_all build everything). 180 # top-level gn_visibility target used to help gn_all build everything).
178 visibility = [ 181 visibility = [
179 ":*", 182 ":*",
180 "//:gn_visibility", 183 "//:gn_visibility",
181 ] 184 ]
182 185
183 static_library("fdrm") { 186 static_library("fdrm") {
184 sources = [ 187 sources = [
185 "core/fdrm/crypto/fx_crypt.cpp", 188 "core/fdrm/crypto/fx_crypt.cpp",
186 "core/fdrm/crypto/fx_crypt_aes.cpp", 189 "core/fdrm/crypto/fx_crypt_aes.cpp",
187 "core/fdrm/crypto/fx_crypt_sha.cpp", 190 "core/fdrm/crypto/fx_crypt_sha.cpp",
188 "core/fdrm/crypto/include/fx_crypt.h", 191 "core/fdrm/crypto/include/fx_crypt.h",
189 ] 192 ]
190 configs += [ ":pdfium_config" ] 193 configs += [ ":pdfium_core_config" ]
191 } 194 }
192 195
193 static_library("fpdfdoc") { 196 static_library("fpdfdoc") {
194 sources = [ 197 sources = [
195 "core/fpdfdoc/cpdf_variabletext.cpp", 198 "core/fpdfdoc/cpdf_variabletext.cpp",
196 "core/fpdfdoc/cpvt_color.cpp", 199 "core/fpdfdoc/cpvt_color.cpp",
197 "core/fpdfdoc/cpvt_color.h", 200 "core/fpdfdoc/cpvt_color.h",
198 "core/fpdfdoc/cpvt_dash.h", 201 "core/fpdfdoc/cpvt_dash.h",
199 "core/fpdfdoc/cpvt_floatrect.h", 202 "core/fpdfdoc/cpvt_floatrect.h",
200 "core/fpdfdoc/cpvt_fontmap.cpp", 203 "core/fpdfdoc/cpvt_fontmap.cpp",
(...skipping 29 matching lines...) Expand all
230 "core/fpdfdoc/include/cpvt_word.h", 233 "core/fpdfdoc/include/cpvt_word.h",
231 "core/fpdfdoc/include/cpvt_wordplace.h", 234 "core/fpdfdoc/include/cpvt_wordplace.h",
232 "core/fpdfdoc/include/cpvt_wordprops.h", 235 "core/fpdfdoc/include/cpvt_wordprops.h",
233 "core/fpdfdoc/include/cpvt_wordrange.h", 236 "core/fpdfdoc/include/cpvt_wordrange.h",
234 "core/fpdfdoc/include/fpdf_doc.h", 237 "core/fpdfdoc/include/fpdf_doc.h",
235 "core/fpdfdoc/include/fpdf_tagged.h", 238 "core/fpdfdoc/include/fpdf_tagged.h",
236 "core/fpdfdoc/ipvt_fontmap.h", 239 "core/fpdfdoc/ipvt_fontmap.h",
237 "core/fpdfdoc/pdf_vt.h", 240 "core/fpdfdoc/pdf_vt.h",
238 "core/fpdfdoc/tagged_int.h", 241 "core/fpdfdoc/tagged_int.h",
239 ] 242 ]
240 configs += [ ":pdfium_config" ] 243 configs += [ ":pdfium_core_config" ]
241 } 244 }
242 245
243 static_library("fpdfapi") { 246 static_library("fpdfapi") {
244 sources = [ 247 sources = [
245 "core/fpdfapi/cpdf_modulemgr.cpp", 248 "core/fpdfapi/cpdf_modulemgr.cpp",
246 "core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp", 249 "core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp",
247 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp", 250 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp",
248 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp", 251 "core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp",
249 "core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp", 252 "core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp",
250 "core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp", 253 "core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp",
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 "core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp", 460 "core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp",
458 "core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp", 461 "core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp",
459 "core/fpdfapi/fpdf_render/fpdf_render_text.cpp", 462 "core/fpdfapi/fpdf_render/fpdf_render_text.cpp",
460 "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h", 463 "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h",
461 "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h", 464 "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h",
462 "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h", 465 "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h",
463 "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h", 466 "core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h",
464 "core/fpdfapi/fpdf_render/render_int.h", 467 "core/fpdfapi/fpdf_render/render_int.h",
465 "core/fpdfapi/include/cpdf_modulemgr.h", 468 "core/fpdfapi/include/cpdf_modulemgr.h",
466 ] 469 ]
467 configs += [ ":pdfium_config" ] 470 configs += [ ":pdfium_core_config" ]
468 } 471 }
469 472
470 static_library("fpdftext") { 473 static_library("fpdftext") {
471 sources = [ 474 sources = [
472 "core/fpdftext/fpdf_text_int.cpp", 475 "core/fpdftext/fpdf_text_int.cpp",
473 "core/fpdftext/include/cpdf_linkextract.h", 476 "core/fpdftext/include/cpdf_linkextract.h",
474 "core/fpdftext/include/cpdf_textpage.h", 477 "core/fpdftext/include/cpdf_textpage.h",
475 "core/fpdftext/include/cpdf_textpagefind.h", 478 "core/fpdftext/include/cpdf_textpagefind.h",
476 "core/fpdftext/text_int.h", 479 "core/fpdftext/text_int.h",
477 "core/fpdftext/unicodenormalizationdata.cpp", 480 "core/fpdftext/unicodenormalizationdata.cpp",
478 "core/fpdftext/unicodenormalizationdata.h", 481 "core/fpdftext/unicodenormalizationdata.h",
479 ] 482 ]
480 configs += [ ":pdfium_config" ] 483 configs += [ ":pdfium_core_config" ]
481 } 484 }
482 485
483 static_library("fxcodec") { 486 static_library("fxcodec") {
484 deps = [ 487 deps = [
485 "third_party:fx_lcms2", 488 "third_party:fx_lcms2",
486 "third_party:fx_libopenjpeg", 489 "third_party:fx_libopenjpeg",
487 "third_party:fx_zlib", 490 "third_party:fx_zlib",
488 491
489 # This is a generic JPEG library dependency. 492 # This is a generic JPEG library dependency.
490 "//third_party:jpeg", 493 "//third_party:jpeg",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 deps += [ 573 deps += [
571 "third_party:fx_lpng", 574 "third_party:fx_lpng",
572 "third_party:fx_tiff", 575 "third_party:fx_tiff",
573 ] 576 ]
574 } 577 }
575 if (is_posix) { 578 if (is_posix) {
576 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int 579 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
577 # conversion to check that an address is 16-bit aligned (benign). 580 # conversion to check that an address is 16-bit aligned (benign).
578 cflags_c = [ "-Wno-pointer-to-int-cast" ] 581 cflags_c = [ "-Wno-pointer-to-int-cast" ]
579 } 582 }
580 configs += [ ":pdfium_config" ] 583 configs += [ ":pdfium_core_config" ]
581 } 584 }
582 585
583 config("fxge_warnings") { 586 config("fxge_warnings") {
584 if (is_clang) { 587 if (is_clang) {
585 cflags = [ 588 cflags = [
586 # http://code.google.com/p/pdfium/issues/detail?id=188 589 # http://code.google.com/p/pdfium/issues/detail?id=188
587 "-Wno-switch", 590 "-Wno-switch",
588 ] 591 ]
589 } 592 }
590 } 593 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 "core/fxcrt/xml_int.h", 635 "core/fxcrt/xml_int.h",
633 ] 636 ]
634 if (pdf_enable_xfa) { 637 if (pdf_enable_xfa) {
635 sources += [ 638 sources += [
636 "core/fxcrt/fx_arabic.cpp", 639 "core/fxcrt/fx_arabic.cpp",
637 "core/fxcrt/fx_arabic.h", 640 "core/fxcrt/fx_arabic.h",
638 "core/fxcrt/fx_basic_maps.cpp", 641 "core/fxcrt/fx_basic_maps.cpp",
639 "core/fxcrt/include/fx_arb.h", 642 "core/fxcrt/include/fx_arb.h",
640 ] 643 ]
641 } 644 }
642 configs += [ ":pdfium_config" ] 645 configs += [ ":pdfium_core_config" ]
643 } 646 }
644 647
645 static_library("fxge") { 648 static_library("fxge") {
646 sources = [ 649 sources = [
647 "core/fxge/android/fpf_skiafont.cpp", 650 "core/fxge/android/fpf_skiafont.cpp",
648 "core/fxge/android/fpf_skiafont.h", 651 "core/fxge/android/fpf_skiafont.h",
649 "core/fxge/android/fpf_skiafontmgr.cpp", 652 "core/fxge/android/fpf_skiafontmgr.cpp",
650 "core/fxge/android/fpf_skiafontmgr.h", 653 "core/fxge/android/fpf_skiafontmgr.h",
651 "core/fxge/android/fpf_skiamodule.cpp", 654 "core/fxge/android/fpf_skiamodule.cpp",
652 "core/fxge/android/fpf_skiamodule.h", 655 "core/fxge/android/fpf_skiamodule.h",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 "core/fxge/include/fx_dib.h", 696 "core/fxge/include/fx_dib.h",
694 "core/fxge/include/fx_font.h", 697 "core/fxge/include/fx_font.h",
695 "core/fxge/include/fx_freetype.h", 698 "core/fxge/include/fx_freetype.h",
696 "core/fxge/include/fx_ge.h", 699 "core/fxge/include/fx_ge.h",
697 "core/fxge/include/fx_ge_apple.h", 700 "core/fxge/include/fx_ge_apple.h",
698 "core/fxge/include/fx_ge_win32.h", 701 "core/fxge/include/fx_ge_win32.h",
699 ] 702 ]
700 703
701 configs += [ 704 configs += [
702 ":fxge_warnings", 705 ":fxge_warnings",
703 ":pdfium_config", 706 ":pdfium_core_config",
704 ] 707 ]
705 708
706 if (pdf_use_skia) { 709 if (pdf_use_skia) {
707 sources += [ "core/fxge/skia/fx_skia_device.cpp" ] 710 sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
708 deps = [ 711 deps = [
709 "//skia", 712 "//skia",
710 ] 713 ]
711 } else { 714 } else {
712 sources += [ 715 sources += [
713 "core/fxge/agg/fx_agg_driver.cpp", 716 "core/fxge/agg/fx_agg_driver.cpp",
(...skipping 22 matching lines...) Expand all
736 sources = [ 739 sources = [
737 "fpdfsdk/fxedit/fxet_ap.cpp", 740 "fpdfsdk/fxedit/fxet_ap.cpp",
738 "fpdfsdk/fxedit/fxet_edit.cpp", 741 "fpdfsdk/fxedit/fxet_edit.cpp",
739 "fpdfsdk/fxedit/fxet_list.cpp", 742 "fpdfsdk/fxedit/fxet_list.cpp",
740 "fpdfsdk/fxedit/fxet_module.cpp", 743 "fpdfsdk/fxedit/fxet_module.cpp",
741 "fpdfsdk/fxedit/fxet_pageobjs.cpp", 744 "fpdfsdk/fxedit/fxet_pageobjs.cpp",
742 "fpdfsdk/fxedit/include/fx_edit.h", 745 "fpdfsdk/fxedit/include/fx_edit.h",
743 "fpdfsdk/fxedit/include/fxet_edit.h", 746 "fpdfsdk/fxedit/include/fxet_edit.h",
744 "fpdfsdk/fxedit/include/fxet_list.h", 747 "fpdfsdk/fxedit/include/fxet_list.h",
745 ] 748 ]
746 configs += [ ":pdfium_config" ] 749 configs += [ ":pdfium_core_config" ]
747 } 750 }
748 751
749 static_library("pdfwindow") { 752 static_library("pdfwindow") {
750 sources = [ 753 sources = [
751 "fpdfsdk/pdfwindow/PWL_Button.cpp", 754 "fpdfsdk/pdfwindow/PWL_Button.cpp",
752 "fpdfsdk/pdfwindow/PWL_Button.h", 755 "fpdfsdk/pdfwindow/PWL_Button.h",
753 "fpdfsdk/pdfwindow/PWL_Caret.cpp", 756 "fpdfsdk/pdfwindow/PWL_Caret.cpp",
754 "fpdfsdk/pdfwindow/PWL_Caret.h", 757 "fpdfsdk/pdfwindow/PWL_Caret.h",
755 "fpdfsdk/pdfwindow/PWL_ComboBox.cpp", 758 "fpdfsdk/pdfwindow/PWL_ComboBox.cpp",
756 "fpdfsdk/pdfwindow/PWL_ComboBox.h", 759 "fpdfsdk/pdfwindow/PWL_ComboBox.h",
(...skipping 17 matching lines...) Expand all
774 "fpdfsdk/pdfwindow/PWL_ScrollBar.h", 777 "fpdfsdk/pdfwindow/PWL_ScrollBar.h",
775 "fpdfsdk/pdfwindow/PWL_Signature.cpp", 778 "fpdfsdk/pdfwindow/PWL_Signature.cpp",
776 "fpdfsdk/pdfwindow/PWL_Signature.h", 779 "fpdfsdk/pdfwindow/PWL_Signature.h",
777 "fpdfsdk/pdfwindow/PWL_SpecialButton.cpp", 780 "fpdfsdk/pdfwindow/PWL_SpecialButton.cpp",
778 "fpdfsdk/pdfwindow/PWL_SpecialButton.h", 781 "fpdfsdk/pdfwindow/PWL_SpecialButton.h",
779 "fpdfsdk/pdfwindow/PWL_Utils.cpp", 782 "fpdfsdk/pdfwindow/PWL_Utils.cpp",
780 "fpdfsdk/pdfwindow/PWL_Utils.h", 783 "fpdfsdk/pdfwindow/PWL_Utils.h",
781 "fpdfsdk/pdfwindow/PWL_Wnd.cpp", 784 "fpdfsdk/pdfwindow/PWL_Wnd.cpp",
782 "fpdfsdk/pdfwindow/PWL_Wnd.h", 785 "fpdfsdk/pdfwindow/PWL_Wnd.h",
783 ] 786 ]
784 configs += [ ":pdfium_config" ] 787 configs += [ ":pdfium_core_config" ]
785 } 788 }
786 789
787 static_library("javascript") { 790 static_library("javascript") {
788 sources = [ 791 sources = [
789 "fpdfsdk/javascript/ijs_context.h", 792 "fpdfsdk/javascript/ijs_context.h",
790 "fpdfsdk/javascript/ijs_runtime.h", 793 "fpdfsdk/javascript/ijs_runtime.h",
791 ] 794 ]
792 if (pdf_enable_v8) { 795 if (pdf_enable_v8) {
793 sources += [ 796 sources += [
794 "fpdfsdk/javascript/Consts.cpp", 797 "fpdfsdk/javascript/Consts.cpp",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 "//v8", 840 "//v8",
838 "//v8/include", 841 "//v8/include",
839 ] 842 ]
840 public_deps = [ 843 public_deps = [
841 "//v8", 844 "//v8",
842 ] 845 ]
843 configs += [ "//v8:external_startup_data" ] 846 configs += [ "//v8:external_startup_data" ]
844 } else { 847 } else {
845 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ] 848 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ]
846 } 849 }
847 configs += [ ":pdfium_config" ] 850 configs += [ ":pdfium_core_config" ]
848 } 851 }
849 852
850 static_library("formfiller") { 853 static_library("formfiller") {
851 sources = [ 854 sources = [
852 "fpdfsdk/formfiller/cba_fontmap.cpp", 855 "fpdfsdk/formfiller/cba_fontmap.cpp",
853 "fpdfsdk/formfiller/cba_fontmap.h", 856 "fpdfsdk/formfiller/cba_fontmap.h",
854 "fpdfsdk/formfiller/cffl_checkbox.cpp", 857 "fpdfsdk/formfiller/cffl_checkbox.cpp",
855 "fpdfsdk/formfiller/cffl_checkbox.h", 858 "fpdfsdk/formfiller/cffl_checkbox.h",
856 "fpdfsdk/formfiller/cffl_combobox.cpp", 859 "fpdfsdk/formfiller/cffl_combobox.cpp",
857 "fpdfsdk/formfiller/cffl_combobox.h", 860 "fpdfsdk/formfiller/cffl_combobox.h",
858 "fpdfsdk/formfiller/cffl_formfiller.cpp", 861 "fpdfsdk/formfiller/cffl_formfiller.cpp",
859 "fpdfsdk/formfiller/cffl_formfiller.h", 862 "fpdfsdk/formfiller/cffl_formfiller.h",
860 "fpdfsdk/formfiller/cffl_iformfiller.cpp", 863 "fpdfsdk/formfiller/cffl_iformfiller.cpp",
861 "fpdfsdk/formfiller/cffl_iformfiller.h", 864 "fpdfsdk/formfiller/cffl_iformfiller.h",
862 "fpdfsdk/formfiller/cffl_listbox.cpp", 865 "fpdfsdk/formfiller/cffl_listbox.cpp",
863 "fpdfsdk/formfiller/cffl_listbox.h", 866 "fpdfsdk/formfiller/cffl_listbox.h",
864 "fpdfsdk/formfiller/cffl_pushbutton.cpp", 867 "fpdfsdk/formfiller/cffl_pushbutton.cpp",
865 "fpdfsdk/formfiller/cffl_pushbutton.h", 868 "fpdfsdk/formfiller/cffl_pushbutton.h",
866 "fpdfsdk/formfiller/cffl_radiobutton.cpp", 869 "fpdfsdk/formfiller/cffl_radiobutton.cpp",
867 "fpdfsdk/formfiller/cffl_radiobutton.h", 870 "fpdfsdk/formfiller/cffl_radiobutton.h",
868 "fpdfsdk/formfiller/cffl_textfield.cpp", 871 "fpdfsdk/formfiller/cffl_textfield.cpp",
869 "fpdfsdk/formfiller/cffl_textfield.h", 872 "fpdfsdk/formfiller/cffl_textfield.h",
870 ] 873 ]
871 configs += [ ":pdfium_config" ] 874 configs += [ ":pdfium_core_config" ]
872 } 875 }
873 876
874 if (pdf_enable_xfa) { 877 if (pdf_enable_xfa) {
875 static_library("fpdfxfa") { 878 static_library("fpdfxfa") {
876 sources = [ 879 sources = [
877 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp", 880 "fpdfsdk/fpdfxfa/fpdfxfa_app.cpp",
878 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp", 881 "fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp",
879 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp", 882 "fpdfsdk/fpdfxfa/fpdfxfa_page.cpp",
880 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp", 883 "fpdfsdk/fpdfxfa/fpdfxfa_util.cpp",
881 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h", 884 "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h",
882 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h", 885 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h",
883 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h", 886 "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h",
884 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h", 887 "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h",
885 ] 888 ]
886 deps = [ 889 deps = [
887 ":xfa", 890 ":xfa",
888 ] 891 ]
889 configs += [ ":pdfium_config" ] 892 configs += [ ":pdfium_core_config" ]
890 } 893 }
891 894
892 static_library("xfa") { 895 static_library("xfa") {
893 sources = [ 896 sources = [
894 "xfa/fde/cfde_path.cpp", 897 "xfa/fde/cfde_path.cpp",
895 "xfa/fde/cfde_path.h", 898 "xfa/fde/cfde_path.h",
896 "xfa/fde/cfde_txtedtbuf.cpp", 899 "xfa/fde/cfde_txtedtbuf.cpp",
897 "xfa/fde/cfde_txtedtbuf.h", 900 "xfa/fde/cfde_txtedtbuf.h",
898 "xfa/fde/cfde_txtedtbufiter.cpp", 901 "xfa/fde/cfde_txtedtbufiter.cpp",
899 "xfa/fde/cfde_txtedtbufiter.h", 902 "xfa/fde/cfde_txtedtbufiter.h",
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 "//v8/include", 1583 "//v8/include",
1581 ] 1584 ]
1582 public_deps = [ 1585 public_deps = [
1583 "//v8", 1586 "//v8",
1584 ] 1587 ]
1585 deps = [ 1588 deps = [
1586 "//v8:v8_libplatform", 1589 "//v8:v8_libplatform",
1587 ] 1590 ]
1588 } 1591 }
1589 configs += [ 1592 configs += [
1590 ":pdfium_config", 1593 ":pdfium_core_config",
1591 ":xfa_warnings", 1594 ":xfa_warnings",
1592 ] 1595 ]
1593 } 1596 }
1594 } 1597 }
1595 1598
1596 test("pdfium_unittests") { 1599 test("pdfium_unittests") {
1597 sources = [ 1600 sources = [
1598 "core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp", 1601 "core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp",
1599 "core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp", 1602 "core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp",
1600 "core/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp", 1603 "core/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 "xfa/fxfa/parser/xfa_utils_imp_unittest.cpp", 1638 "xfa/fxfa/parser/xfa_utils_imp_unittest.cpp",
1636 ] 1639 ]
1637 } 1640 }
1638 if (pdf_enable_v8) { 1641 if (pdf_enable_v8) {
1639 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] 1642 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ]
1640 include_dirs += [ 1643 include_dirs += [
1641 "//v8", 1644 "//v8",
1642 "//v8/include", 1645 "//v8/include",
1643 ] 1646 ]
1644 } 1647 }
1645 configs += [ ":pdfium_config" ] 1648 configs += [ ":pdfium_core_config" ]
1646 } 1649 }
1647 1650
1648 test("pdfium_embeddertests") { 1651 test("pdfium_embeddertests") {
1649 sources = [ 1652 sources = [
1650 "core/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp", 1653 "core/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp",
1651 "core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp", 1654 "core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp",
1652 "core/fpdfapi/fpdf_parser/cpdf_security_handler_embeddertest.cpp", 1655 "core/fpdfapi/fpdf_parser/cpdf_security_handler_embeddertest.cpp",
1653 "core/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", 1656 "core/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp",
1654 "core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp", 1657 "core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp",
1655 "core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp", 1658 "core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 deps += [ 1691 deps += [
1689 "//v8", 1692 "//v8",
1690 "//v8:v8_libplatform", 1693 "//v8:v8_libplatform",
1691 ] 1694 ]
1692 include_dirs += [ 1695 include_dirs += [
1693 "//v8", 1696 "//v8",
1694 "//v8/include", 1697 "//v8/include",
1695 ] 1698 ]
1696 configs += [ "//v8:external_startup_data" ] 1699 configs += [ "//v8:external_startup_data" ]
1697 } 1700 }
1698 configs += [ ":pdfium_config" ] 1701 configs += [ ":pdfium_core_config" ]
1699 } 1702 }
1700 1703
1701 if (pdf_is_standalone) { 1704 if (pdf_is_standalone) {
1702 source_set("samples") { 1705 source_set("samples") {
1703 testonly = true 1706 testonly = true
1704 deps = [ 1707 deps = [
1705 "//samples", 1708 "//samples",
1706 ] 1709 ]
1707 } 1710 }
1708 } 1711 }
OLDNEW
« no previous file with comments | « no previous file | third_party/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698