OLD | NEW |
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_common_config") { | 9 config("pdfium_common_config") { |
10 cflags = [] | 10 cflags = [] |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 config("xfa_warnings") { | 56 config("xfa_warnings") { |
57 visibility = [ ":*" ] | 57 visibility = [ ":*" ] |
58 if (is_posix && !is_clang) { # When GCC. | 58 if (is_posix && !is_clang) { # When GCC. |
59 cflags = [ "-Wno-strict-overflow" ] | 59 cflags = [ "-Wno-strict-overflow" ] |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 static_library("pdfium") { | 63 static_library("pdfium") { |
64 sources = [ | 64 sources = [ |
65 "fpdfsdk/cba_annotiterator.cpp", | 65 "fpdfsdk/cba_annotiterator.cpp", |
| 66 "fpdfsdk/cba_annotiterator.h", |
66 "fpdfsdk/cfx_systemhandler.cpp", | 67 "fpdfsdk/cfx_systemhandler.cpp", |
67 "fpdfsdk/cfx_systemhandler.h", | 68 "fpdfsdk/cfx_systemhandler.h", |
68 "fpdfsdk/cpdfsdk_annot.cpp", | 69 "fpdfsdk/cpdfsdk_annot.cpp", |
| 70 "fpdfsdk/cpdfsdk_annot.h", |
69 "fpdfsdk/cpdfsdk_annothandlermgr.cpp", | 71 "fpdfsdk/cpdfsdk_annothandlermgr.cpp", |
| 72 "fpdfsdk/cpdfsdk_annothandlermgr.h", |
70 "fpdfsdk/cpdfsdk_annotiterator.cpp", | 73 "fpdfsdk/cpdfsdk_annotiterator.cpp", |
| 74 "fpdfsdk/cpdfsdk_annotiterator.h", |
71 "fpdfsdk/cpdfsdk_baannot.cpp", | 75 "fpdfsdk/cpdfsdk_baannot.cpp", |
| 76 "fpdfsdk/cpdfsdk_baannot.h", |
72 "fpdfsdk/cpdfsdk_baannothandler.cpp", | 77 "fpdfsdk/cpdfsdk_baannothandler.cpp", |
| 78 "fpdfsdk/cpdfsdk_baannothandler.h", |
73 "fpdfsdk/cpdfsdk_datetime.cpp", | 79 "fpdfsdk/cpdfsdk_datetime.cpp", |
| 80 "fpdfsdk/cpdfsdk_datetime.h", |
74 "fpdfsdk/cpdfsdk_document.cpp", | 81 "fpdfsdk/cpdfsdk_document.cpp", |
| 82 "fpdfsdk/cpdfsdk_document.h", |
75 "fpdfsdk/cpdfsdk_environment.cpp", | 83 "fpdfsdk/cpdfsdk_environment.cpp", |
| 84 "fpdfsdk/cpdfsdk_environment.h", |
76 "fpdfsdk/cpdfsdk_interform.cpp", | 85 "fpdfsdk/cpdfsdk_interform.cpp", |
| 86 "fpdfsdk/cpdfsdk_interform.h", |
77 "fpdfsdk/cpdfsdk_pageview.cpp", | 87 "fpdfsdk/cpdfsdk_pageview.cpp", |
| 88 "fpdfsdk/cpdfsdk_pageview.h", |
78 "fpdfsdk/cpdfsdk_widget.cpp", | 89 "fpdfsdk/cpdfsdk_widget.cpp", |
| 90 "fpdfsdk/cpdfsdk_widget.h", |
79 "fpdfsdk/cpdfsdk_widgethandler.cpp", | 91 "fpdfsdk/cpdfsdk_widgethandler.cpp", |
| 92 "fpdfsdk/cpdfsdk_widgethandler.h", |
80 "fpdfsdk/fpdf_dataavail.cpp", | 93 "fpdfsdk/fpdf_dataavail.cpp", |
81 "fpdfsdk/fpdf_ext.cpp", | 94 "fpdfsdk/fpdf_ext.cpp", |
82 "fpdfsdk/fpdf_flatten.cpp", | 95 "fpdfsdk/fpdf_flatten.cpp", |
83 "fpdfsdk/fpdf_progressive.cpp", | 96 "fpdfsdk/fpdf_progressive.cpp", |
84 "fpdfsdk/fpdf_searchex.cpp", | 97 "fpdfsdk/fpdf_searchex.cpp", |
85 "fpdfsdk/fpdf_sysfontinfo.cpp", | 98 "fpdfsdk/fpdf_sysfontinfo.cpp", |
86 "fpdfsdk/fpdf_transformpage.cpp", | 99 "fpdfsdk/fpdf_transformpage.cpp", |
87 "fpdfsdk/fpdfdoc.cpp", | 100 "fpdfsdk/fpdfdoc.cpp", |
88 "fpdfsdk/fpdfeditimg.cpp", | 101 "fpdfsdk/fpdfeditimg.cpp", |
89 "fpdfsdk/fpdfeditpage.cpp", | 102 "fpdfsdk/fpdfeditpage.cpp", |
90 "fpdfsdk/fpdfformfill.cpp", | 103 "fpdfsdk/fpdfformfill.cpp", |
91 "fpdfsdk/fpdfppo.cpp", | 104 "fpdfsdk/fpdfppo.cpp", |
92 "fpdfsdk/fpdfsave.cpp", | 105 "fpdfsdk/fpdfsave.cpp", |
93 "fpdfsdk/fpdftext.cpp", | 106 "fpdfsdk/fpdftext.cpp", |
94 "fpdfsdk/fpdfview.cpp", | 107 "fpdfsdk/fpdfview.cpp", |
95 "fpdfsdk/fsdk_actionhandler.cpp", | 108 "fpdfsdk/fsdk_actionhandler.cpp", |
| 109 "fpdfsdk/fsdk_actionhandler.h", |
96 "fpdfsdk/fsdk_pauseadapter.cpp", | 110 "fpdfsdk/fsdk_pauseadapter.cpp", |
97 "fpdfsdk/include/cba_annotiterator.h", | 111 "fpdfsdk/fsdk_pauseadapter.h", |
98 "fpdfsdk/include/cpdfsdk_annot.h", | |
99 "fpdfsdk/include/cpdfsdk_annothandlermgr.h", | |
100 "fpdfsdk/include/cpdfsdk_annotiterator.h", | |
101 "fpdfsdk/include/cpdfsdk_baannot.h", | |
102 "fpdfsdk/include/cpdfsdk_baannothandler.h", | |
103 "fpdfsdk/include/cpdfsdk_datetime.h", | |
104 "fpdfsdk/include/cpdfsdk_document.h", | |
105 "fpdfsdk/include/cpdfsdk_environment.h", | |
106 "fpdfsdk/include/cpdfsdk_interform.h", | |
107 "fpdfsdk/include/cpdfsdk_pageview.h", | |
108 "fpdfsdk/include/cpdfsdk_widget.h", | |
109 "fpdfsdk/include/cpdfsdk_widgethandler.h", | |
110 "fpdfsdk/include/fsdk_actionhandler.h", | |
111 "fpdfsdk/include/fsdk_pauseadapter.h", | |
112 "fpdfsdk/include/pdfsdk_fieldaction.h", | |
113 "fpdfsdk/pdfsdk_fieldaction.cpp", | 112 "fpdfsdk/pdfsdk_fieldaction.cpp", |
| 113 "fpdfsdk/pdfsdk_fieldaction.h", |
114 "public/fpdf_dataavail.h", | 114 "public/fpdf_dataavail.h", |
115 "public/fpdf_doc.h", | 115 "public/fpdf_doc.h", |
116 "public/fpdf_edit.h", | 116 "public/fpdf_edit.h", |
117 "public/fpdf_ext.h", | 117 "public/fpdf_ext.h", |
118 "public/fpdf_flatten.h", | 118 "public/fpdf_flatten.h", |
119 "public/fpdf_formfill.h", | 119 "public/fpdf_formfill.h", |
120 "public/fpdf_fwlevent.h", | 120 "public/fpdf_fwlevent.h", |
121 "public/fpdf_ppo.h", | 121 "public/fpdf_ppo.h", |
122 "public/fpdf_progressive.h", | 122 "public/fpdf_progressive.h", |
123 "public/fpdf_save.h", | 123 "public/fpdf_save.h", |
(...skipping 22 matching lines...) Expand all Loading... |
146 "third_party:bigint", | 146 "third_party:bigint", |
147 "third_party:pdfium_base", | 147 "third_party:pdfium_base", |
148 ] | 148 ] |
149 | 149 |
150 public_deps = [ | 150 public_deps = [ |
151 ":fxcrt", | 151 ":fxcrt", |
152 ] | 152 ] |
153 if (pdf_enable_xfa) { | 153 if (pdf_enable_xfa) { |
154 sources += [ | 154 sources += [ |
155 "fpdfsdk/cpdfsdk_xfawidget.cpp", | 155 "fpdfsdk/cpdfsdk_xfawidget.cpp", |
| 156 "fpdfsdk/cpdfsdk_xfawidget.h", |
156 "fpdfsdk/cpdfsdk_xfawidgethandler.cpp", | 157 "fpdfsdk/cpdfsdk_xfawidgethandler.cpp", |
157 "fpdfsdk/include/cpdfsdk_xfawidget.h", | 158 "fpdfsdk/cpdfsdk_xfawidgethandler.h", |
158 "fpdfsdk/include/cpdfsdk_xfawidgethandler.h", | |
159 ] | 159 ] |
160 | 160 |
161 deps += [ ":fpdfxfa" ] | 161 deps += [ ":fpdfxfa" ] |
162 } | 162 } |
163 | 163 |
164 if (is_win) { | 164 if (is_win) { |
165 libs += [ | 165 libs += [ |
166 "advapi32.lib", | 166 "advapi32.lib", |
167 "gdi32.lib", | 167 "gdi32.lib", |
168 "user32.lib", | 168 "user32.lib", |
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 } | 1756 } |
1757 | 1757 |
1758 if (pdf_is_standalone) { | 1758 if (pdf_is_standalone) { |
1759 source_set("samples") { | 1759 source_set("samples") { |
1760 testonly = true | 1760 testonly = true |
1761 deps = [ | 1761 deps = [ |
1762 "//samples", | 1762 "//samples", |
1763 ] | 1763 ] |
1764 } | 1764 } |
1765 } | 1765 } |
OLD | NEW |