summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-08-17 12:36:14 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-17 12:36:14 -0700
commit70ba38a9a1af0240529a96904dfdb8868b868719 (patch)
treeb35b27824997dc065628526b2fa0edfa20202b06 /BUILD.gn
parent611adb8c91c1d40c95097bb04b4f9eba03b599f9 (diff)
downloadpdfium-70ba38a9a1af0240529a96904dfdb8868b868719.tar.xz
Build CPDFSDK_XFAAnnotHandler only when PDF_ENABLE_XFA.
Also, remove the #ifdef PDF_ENABLE_XFA that wraps the whole file. Review-Url: https://codereview.chromium.org/2253193002
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 2 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index b69fb700ae..b020ab2490 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -73,7 +73,6 @@ static_library("pdfium") {
"fpdfsdk/cpdfsdk_datetime.cpp",
"fpdfsdk/cpdfsdk_interform.cpp",
"fpdfsdk/cpdfsdk_widget.cpp",
- "fpdfsdk/cpdfsdk_xfaannothandler.cpp",
"fpdfsdk/fpdf_dataavail.cpp",
"fpdfsdk/fpdf_ext.cpp",
"fpdfsdk/fpdf_flatten.cpp",
@@ -101,7 +100,6 @@ static_library("pdfium") {
"fpdfsdk/include/cpdfsdk_datetime.h",
"fpdfsdk/include/cpdfsdk_interform.h",
"fpdfsdk/include/cpdfsdk_widget.h",
- "fpdfsdk/include/cpdfsdk_xfaannothandler.h",
"fpdfsdk/include/fsdk_actionhandler.h",
"fpdfsdk/include/fsdk_pauseadapter.h",
"fpdfsdk/include/ifpdfsdk_annothandler.h",
@@ -145,7 +143,9 @@ static_library("pdfium") {
if (pdf_enable_xfa) {
sources += [
+ "fpdfsdk/cpdfsdk_xfaannothandler.cpp",
"fpdfsdk/cpdfsdk_xfawidget.cpp",
+ "fpdfsdk/include/cpdfsdk_xfaannothandler.h",
"fpdfsdk/include/cpdfsdk_xfawidget.h",
]