OLD | NEW |
---|---|
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 pdf_use_skia = false | 5 pdf_use_skia = false |
6 | 6 |
7 config("pdfium_config") { | 7 config("pdfium_config") { |
8 cflags = [] | 8 cflags = [] |
9 | |
10 include_dirs = [ | |
11 "third_party/freetype/include" | |
12 ] | |
9 defines = [ | 13 defines = [ |
10 "_FXFT_VERSION_=2501", | 14 "FT2_BUILD_LIBRARY", |
11 "_FPDFSDK_LIB", | 15 "_FPDFSDK_LIB", |
12 "_NO_GDIPLUS_", # workaround text rendering issues on Windows | 16 "_NO_GDIPLUS_", # workaround text rendering issues on Windows |
13 "OPJ_STATIC", | 17 "OPJ_STATIC", |
14 ] | 18 ] |
15 | 19 |
20 | |
16 if (pdf_use_skia) { | 21 if (pdf_use_skia) { |
17 defines += [ "_SKIA_SUPPORT_" ] | 22 defines += [ "_SKIA_SUPPORT_" ] |
18 } | 23 } |
19 | 24 |
20 if (is_linux) { | 25 if (is_linux) { |
21 if (cpu_arch == "x64") { | 26 if (cpu_arch == "x64") { |
22 defines += [ "_FX_CPU_=_FX_X64_" ] | 27 defines += [ "_FX_CPU_=_FX_X64_" ] |
23 cflags += [ "-fPIC" ] | 28 cflags += [ "-fPIC" ] |
24 } else if (cpu_arch == "x86") { | 29 } else if (cpu_arch == "x86") { |
25 defines += [ "_FX_CPU_=_FX_X86_" ] | 30 defines += [ "_FX_CPU_=_FX_X86_" ] |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 "fpdfsdk/src/resource.h", | 84 "fpdfsdk/src/resource.h", |
80 "fpdfsdk/include/fpdf_transformpage.h", | 85 "fpdfsdk/include/fpdf_transformpage.h", |
81 "fpdfsdk/src/fpdf_transformpage.cpp", | 86 "fpdfsdk/src/fpdf_transformpage.cpp", |
82 ] | 87 ] |
83 | 88 |
84 libs = [] | 89 libs = [] |
85 configs -= [ "//build/config/compiler:chromium_code" ] | 90 configs -= [ "//build/config/compiler:chromium_code" ] |
86 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] | 91 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] |
87 | 92 |
88 deps = [ | 93 deps = [ |
89 ":safemath", | 94 "third_party:safemath", |
Lei Zhang
2014/12/19 20:19:12
nit: put these in alphabetical order? same with gy
Bo Xu
2014/12/19 22:16:56
Done.
| |
90 ":bigint", | 95 "third_party:bigint", |
96 "third_party:freetype", | |
91 ":fdrm", | 97 ":fdrm", |
92 ":formfiller", | 98 ":formfiller", |
93 ":fpdfapi", | 99 ":fpdfapi", |
94 ":fpdfdoc", | 100 ":fpdfdoc", |
95 ":fpdftext", | 101 ":fpdftext", |
96 ":fxcodec", | 102 ":fxcodec", |
97 ":fxcrt", | 103 ":fxcrt", |
98 ":fxedit", | 104 ":fxedit", |
99 ":fxge", | 105 ":fxge", |
100 ":javascript", | 106 ":javascript", |
101 ":jsapi", | 107 ":jsapi", |
102 ":pdfwindow", | 108 ":pdfwindow", |
103 ] | 109 ] |
104 | 110 |
105 if (is_win) { | 111 if (is_win) { |
106 libs += [ "advapi32.lib", "gdi32.lib", "user32.lib" ] | 112 libs += [ "advapi32.lib", "gdi32.lib", "user32.lib" ] |
107 } | 113 } |
108 | 114 |
109 if (is_mac) { | 115 if (is_mac) { |
110 libs += [ "AppKit.framework", "CoreFoundation.framework" ] | 116 libs += [ "AppKit.framework", "CoreFoundation.framework" ] |
111 } | 117 } |
112 } | 118 } |
113 | 119 |
114 # Targets below this are only visible within this file. | 120 # Targets below this are only visible within this file. |
115 visibility = [ ":*" ] | 121 visibility = [ ":*" ] |
116 | 122 |
117 component("safemath") { | |
118 sources = [ | |
119 "third_party/logging.h", | |
120 "third_party/macros.h", | |
121 "third_party/template_util.h", | |
122 "third_party/numerics/safe_conversions.h", | |
123 "third_party/numerics/safe_conversions_impl.h", | |
124 "third_party/numerics/safe_math.h", | |
125 "third_party/numerics/safe_math_impl.h", | |
126 ] | |
127 } | |
128 | |
129 static_library("bigint") { | |
130 sources = [ | |
131 "third_party/bigint/BigInteger.hh", | |
132 "third_party/bigint/BigIntegerLibrary.hh", | |
133 "third_party/bigint/BigIntegerUtils.hh", | |
134 "third_party/bigint/BigUnsigned.hh", | |
135 "third_party/bigint/NumberlikeArray.hh", | |
136 "third_party/bigint/BigUnsignedInABase.hh", | |
137 "third_party/bigint/BigInteger.cc", | |
138 "third_party/bigint/BigIntegerUtils.cc", | |
139 "third_party/bigint/BigUnsigned.cc", | |
140 "third_party/bigint/BigUnsignedInABase.cc", | |
141 ] | |
142 } | |
143 | |
144 static_library("fdrm") { | 123 static_library("fdrm") { |
145 sources = [ | 124 sources = [ |
146 "core/include/fdrm/fx_crypt.h", | 125 "core/include/fdrm/fx_crypt.h", |
147 "core/src/fdrm/crypto/fx_crypt.cpp", | 126 "core/src/fdrm/crypto/fx_crypt.cpp", |
148 "core/src/fdrm/crypto/fx_crypt_aes.cpp", | 127 "core/src/fdrm/crypto/fx_crypt_aes.cpp", |
149 "core/src/fdrm/crypto/fx_crypt_sha.cpp", | 128 "core/src/fdrm/crypto/fx_crypt_sha.cpp", |
150 ] | 129 ] |
151 configs -= [ "//build/config/compiler:chromium_code" ] | 130 configs -= [ "//build/config/compiler:chromium_code" ] |
152 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] | 131 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] |
153 } | 132 } |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
591 "core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c", | 570 "core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c", |
592 "core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c", | 571 "core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c", |
593 "core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c", | 572 "core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c", |
594 "core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c", | 573 "core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c", |
595 "core/src/fxge/fontdata/chromefontdata/FoxitSerif.c", | 574 "core/src/fxge/fontdata/chromefontdata/FoxitSerif.c", |
596 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c", | 575 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c", |
597 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c", | 576 "core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c", |
598 "core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c", | 577 "core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c", |
599 "core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c", | 578 "core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c", |
600 "core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c", | 579 "core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c", |
601 "core/src/fxge/fx_freetype/include/fxft_cffobjs.h", | 580 "core/src/fxge/freetype/fx_freetype.c", |
602 "core/src/fxge/fx_freetype/include/fxft_cfftypes.h", | |
603 "core/src/fxge/fx_freetype/include/fxft_freetype.h", | |
604 "core/src/fxge/fx_freetype/include/fxft_ft2build.h", | |
605 "core/src/fxge/fx_freetype/include/fxft_ftmm.h", | |
606 "core/src/fxge/fx_freetype/include/fxft_ftobjs.h", | |
607 "core/src/fxge/fx_freetype/include/fxft_ftotval.h", | |
608 "core/src/fxge/fx_freetype/include/fxft_ftoutln.h", | |
609 "core/src/fxge/fx_freetype/include/fxft_ftstream.h", | |
610 "core/src/fxge/fx_freetype/include/fxft_tttables.h", | |
611 "core/src/fxge/fx_freetype/include/fxft_tttypes.h", | |
612 "core/src/fxge/fx_freetype/src/fxft_cff.c", | |
613 "core/src/fxge/fx_freetype/src/fxft_ftbase.c", | |
614 "core/src/fxge/fx_freetype/src/fxft_ftbitmap.c", | |
615 "core/src/fxge/fx_freetype/src/fxft_ftglyph.c", | |
616 "core/src/fxge/fx_freetype/src/fxft_ftinit.c", | |
617 "core/src/fxge/fx_freetype/src/fxft_ftlcdfil.c", | |
618 "core/src/fxge/fx_freetype/src/fxft_ftmm.c", | |
619 "core/src/fxge/fx_freetype/src/fxft_ftsystem.c", | |
620 "core/src/fxge/fx_freetype/src/fxft_psaux.c", | |
621 "core/src/fxge/fx_freetype/src/fxft_pshinter.c", | |
622 "core/src/fxge/fx_freetype/src/fxft_psmodule.c", | |
623 "core/src/fxge/fx_freetype/src/fxft_raster.c", | |
624 "core/src/fxge/fx_freetype/src/fxft_sfnt.c", | |
625 "core/src/fxge/fx_freetype/src/fxft_smooth.c", | |
626 "core/src/fxge/fx_freetype/src/fxft_truetype.c", | |
627 "core/src/fxge/fx_freetype/src/fxft_type1.c", | |
628 "core/src/fxge/fx_freetype/src/fxft_type1cid.c", | |
629 "core/src/fxge/ge/fx_ge.cpp", | 581 "core/src/fxge/ge/fx_ge.cpp", |
630 "core/src/fxge/ge/fx_ge_device.cpp", | 582 "core/src/fxge/ge/fx_ge_device.cpp", |
631 "core/src/fxge/ge/fx_ge_font.cpp", | 583 "core/src/fxge/ge/fx_ge_font.cpp", |
632 "core/src/fxge/ge/fx_ge_fontmap.cpp", | 584 "core/src/fxge/ge/fx_ge_fontmap.cpp", |
633 "core/src/fxge/ge/fx_ge_linux.cpp", | 585 "core/src/fxge/ge/fx_ge_linux.cpp", |
634 "core/src/fxge/ge/fx_ge_path.cpp", | 586 "core/src/fxge/ge/fx_ge_path.cpp", |
635 "core/src/fxge/ge/fx_ge_ps.cpp", | 587 "core/src/fxge/ge/fx_ge_ps.cpp", |
636 "core/src/fxge/ge/fx_ge_text.cpp", | 588 "core/src/fxge/ge/fx_ge_text.cpp", |
637 "core/src/fxge/ge/text_int.h", | 589 "core/src/fxge/ge/text_int.h", |
638 ] | 590 ] |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
834 "fpdfsdk/src/formfiller/FFL_ListBox.cpp", | 786 "fpdfsdk/src/formfiller/FFL_ListBox.cpp", |
835 "fpdfsdk/src/formfiller/FFL_Notify.cpp", | 787 "fpdfsdk/src/formfiller/FFL_Notify.cpp", |
836 "fpdfsdk/src/formfiller/FFL_PushButton.cpp", | 788 "fpdfsdk/src/formfiller/FFL_PushButton.cpp", |
837 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", | 789 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", |
838 "fpdfsdk/src/formfiller/FFL_TextField.cpp", | 790 "fpdfsdk/src/formfiller/FFL_TextField.cpp", |
839 "fpdfsdk/src/formfiller/FFL_Utils.cpp", | 791 "fpdfsdk/src/formfiller/FFL_Utils.cpp", |
840 ] | 792 ] |
841 configs -= [ "//build/config/compiler:chromium_code" ] | 793 configs -= [ "//build/config/compiler:chromium_code" ] |
842 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] | 794 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] |
843 } | 795 } |
OLD | NEW |