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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
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/cfx_systemhandler.cpp", | 66 "fpdfsdk/cfx_systemhandler.cpp", |
66 "fpdfsdk/cfx_systemhandler.h", | 67 "fpdfsdk/cfx_systemhandler.h", |
67 "fpdfsdk/cpdfsdk_annot.cpp", | 68 "fpdfsdk/cpdfsdk_annot.cpp", |
68 "fpdfsdk/cpdfsdk_annothandlermgr.cpp", | 69 "fpdfsdk/cpdfsdk_annothandlermgr.cpp", |
69 "fpdfsdk/cpdfsdk_annotiterator.cpp", | 70 "fpdfsdk/cpdfsdk_annotiterator.cpp", |
70 "fpdfsdk/cpdfsdk_baannot.cpp", | 71 "fpdfsdk/cpdfsdk_baannot.cpp", |
71 "fpdfsdk/cpdfsdk_bfannothandler.cpp", | 72 "fpdfsdk/cpdfsdk_bfannothandler.cpp", |
72 "fpdfsdk/cpdfsdk_datetime.cpp", | 73 "fpdfsdk/cpdfsdk_datetime.cpp", |
| 74 "fpdfsdk/cpdfsdk_interform.cpp", |
| 75 "fpdfsdk/cpdfsdk_widget.cpp", |
73 "fpdfsdk/cpdfsdk_xfaannothandler.cpp", | 76 "fpdfsdk/cpdfsdk_xfaannothandler.cpp", |
74 "fpdfsdk/fpdf_dataavail.cpp", | 77 "fpdfsdk/fpdf_dataavail.cpp", |
75 "fpdfsdk/fpdf_ext.cpp", | 78 "fpdfsdk/fpdf_ext.cpp", |
76 "fpdfsdk/fpdf_flatten.cpp", | 79 "fpdfsdk/fpdf_flatten.cpp", |
77 "fpdfsdk/fpdf_progressive.cpp", | 80 "fpdfsdk/fpdf_progressive.cpp", |
78 "fpdfsdk/fpdf_searchex.cpp", | 81 "fpdfsdk/fpdf_searchex.cpp", |
79 "fpdfsdk/fpdf_sysfontinfo.cpp", | 82 "fpdfsdk/fpdf_sysfontinfo.cpp", |
80 "fpdfsdk/fpdf_transformpage.cpp", | 83 "fpdfsdk/fpdf_transformpage.cpp", |
81 "fpdfsdk/fpdfdoc.cpp", | 84 "fpdfsdk/fpdfdoc.cpp", |
82 "fpdfsdk/fpdfeditimg.cpp", | 85 "fpdfsdk/fpdfeditimg.cpp", |
83 "fpdfsdk/fpdfeditpage.cpp", | 86 "fpdfsdk/fpdfeditpage.cpp", |
84 "fpdfsdk/fpdfformfill.cpp", | 87 "fpdfsdk/fpdfformfill.cpp", |
85 "fpdfsdk/fpdfppo.cpp", | 88 "fpdfsdk/fpdfppo.cpp", |
86 "fpdfsdk/fpdfsave.cpp", | 89 "fpdfsdk/fpdfsave.cpp", |
87 "fpdfsdk/fpdftext.cpp", | 90 "fpdfsdk/fpdftext.cpp", |
88 "fpdfsdk/fpdfview.cpp", | 91 "fpdfsdk/fpdfview.cpp", |
89 "fpdfsdk/fsdk_actionhandler.cpp", | 92 "fpdfsdk/fsdk_actionhandler.cpp", |
90 "fpdfsdk/fsdk_baseform.cpp", | |
91 "fpdfsdk/fsdk_mgr.cpp", | 93 "fpdfsdk/fsdk_mgr.cpp", |
92 "fpdfsdk/fsdk_pauseadapter.cpp", | 94 "fpdfsdk/fsdk_pauseadapter.cpp", |
| 95 "fpdfsdk/include/cba_annotiterator.h", |
93 "fpdfsdk/include/cpdfsdk_annot.h", | 96 "fpdfsdk/include/cpdfsdk_annot.h", |
94 "fpdfsdk/include/cpdfsdk_annothandlermgr.h", | 97 "fpdfsdk/include/cpdfsdk_annothandlermgr.h", |
95 "fpdfsdk/include/cpdfsdk_annotiterator.h", | 98 "fpdfsdk/include/cpdfsdk_annotiterator.h", |
96 "fpdfsdk/include/cpdfsdk_baannot.h", | 99 "fpdfsdk/include/cpdfsdk_baannot.h", |
97 "fpdfsdk/include/cpdfsdk_bfannothandler.h", | 100 "fpdfsdk/include/cpdfsdk_bfannothandler.h", |
98 "fpdfsdk/include/cpdfsdk_datetime.h", | 101 "fpdfsdk/include/cpdfsdk_datetime.h", |
| 102 "fpdfsdk/include/cpdfsdk_interform.h", |
| 103 "fpdfsdk/include/cpdfsdk_widget.h", |
99 "fpdfsdk/include/cpdfsdk_xfaannothandler.h", | 104 "fpdfsdk/include/cpdfsdk_xfaannothandler.h", |
100 "fpdfsdk/include/fsdk_actionhandler.h", | 105 "fpdfsdk/include/fsdk_actionhandler.h", |
101 "fpdfsdk/include/fsdk_baseform.h", | |
102 "fpdfsdk/include/fsdk_pauseadapter.h", | 106 "fpdfsdk/include/fsdk_pauseadapter.h", |
103 "fpdfsdk/include/ifpdfsdk_annothandler.h", | 107 "fpdfsdk/include/ifpdfsdk_annothandler.h", |
| 108 "fpdfsdk/include/pdfsdk_fieldaction.h", |
| 109 "fpdfsdk/pdfsdk_fieldaction.cpp", |
104 "public/fpdf_dataavail.h", | 110 "public/fpdf_dataavail.h", |
105 "public/fpdf_doc.h", | 111 "public/fpdf_doc.h", |
106 "public/fpdf_edit.h", | 112 "public/fpdf_edit.h", |
107 "public/fpdf_ext.h", | 113 "public/fpdf_ext.h", |
108 "public/fpdf_flatten.h", | 114 "public/fpdf_flatten.h", |
109 "public/fpdf_formfill.h", | 115 "public/fpdf_formfill.h", |
110 "public/fpdf_fwlevent.h", | 116 "public/fpdf_fwlevent.h", |
111 "public/fpdf_ppo.h", | 117 "public/fpdf_ppo.h", |
112 "public/fpdf_progressive.h", | 118 "public/fpdf_progressive.h", |
113 "public/fpdf_save.h", | 119 "public/fpdf_save.h", |
(...skipping 17 matching lines...) Expand all Loading... |
131 ":fxcrt", | 137 ":fxcrt", |
132 ":fxedit", | 138 ":fxedit", |
133 ":fxge", | 139 ":fxge", |
134 ":javascript", | 140 ":javascript", |
135 ":pdfwindow", | 141 ":pdfwindow", |
136 "third_party:bigint", | 142 "third_party:bigint", |
137 "third_party:pdfium_base", | 143 "third_party:pdfium_base", |
138 ] | 144 ] |
139 | 145 |
140 if (pdf_enable_xfa) { | 146 if (pdf_enable_xfa) { |
| 147 sources += [ |
| 148 "fpdfsdk/cpdfsdk_xfawidget.cpp", |
| 149 "fpdfsdk/include/cpdfsdk_xfawidget.h", |
| 150 ] |
| 151 |
141 deps += [ ":fpdfxfa" ] | 152 deps += [ ":fpdfxfa" ] |
142 } | 153 } |
143 | 154 |
144 if (is_win) { | 155 if (is_win) { |
145 libs += [ | 156 libs += [ |
146 "advapi32.lib", | 157 "advapi32.lib", |
147 "gdi32.lib", | 158 "gdi32.lib", |
148 "user32.lib", | 159 "user32.lib", |
149 ] | 160 ] |
150 } | 161 } |
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1670 } | 1681 } |
1671 | 1682 |
1672 if (pdf_is_standalone) { | 1683 if (pdf_is_standalone) { |
1673 source_set("samples") { | 1684 source_set("samples") { |
1674 testonly = true | 1685 testonly = true |
1675 deps = [ | 1686 deps = [ |
1676 "//samples", | 1687 "//samples", |
1677 ] | 1688 ] |
1678 } | 1689 } |
1679 } | 1690 } |
OLD | NEW |