summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-18 17:44:29 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-18 17:44:29 -0700
commit25d5be60c504f3df0722caea6e7a846b8e8d9537 (patch)
treed468209ec776de247386a267c68f5da0e966ba1b /BUILD.gn
parent25f0ce3cc763f721377eeec8866853894c1f1b41 (diff)
downloadpdfium-25d5be60c504f3df0722caea6e7a846b8e8d9537.tar.xz
Fix XFA builds under chromium checkouts
This pulls in from origin/master: 94dd28e Update GN build files w/ cpu_arch -> current_cpu changes. 1e580a1 Fix multiply defined macro in zlib.h Add a missing file to BUILD.gn dropped at 1ed8a21. TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1189133006.
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn19
1 files changed, 10 insertions, 9 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 0987216ace..d30fabae28 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -30,10 +30,10 @@ config("pdfium_config") {
}
if (is_linux) {
- if (cpu_arch == "x64") {
+ if (current_cpu == "x64") {
defines += [ "_FX_CPU_=_FX_X64_" ]
cflags += [ "-fPIC" ]
- } else if (cpu_arch == "x86") {
+ } else if (current_cpu == "x86") {
defines += [ "_FX_CPU_=_FX_X86_" ]
}
}
@@ -55,27 +55,28 @@ static_library("pdfium") {
"fpdfsdk/include/fsdk_annothandler.h",
"fpdfsdk/include/fsdk_baseannot.h",
"fpdfsdk/include/fsdk_baseform.h",
+ "fpdfsdk/src/fpdf_dataavail.cpp",
+ "fpdfsdk/src/fpdf_ext.cpp",
+ "fpdfsdk/src/fpdf_flatten.cpp",
+ "fpdfsdk/src/fpdf_progressive.cpp",
+ "fpdfsdk/src/fpdf_searchex.cpp",
+ "fpdfsdk/src/fpdf_sysfontinfo.cpp",
+ "fpdfsdk/src/fpdf_transformpage.cpp",
"fpdfsdk/src/fpdfdoc.cpp",
"fpdfsdk/src/fpdfeditimg.cpp",
"fpdfsdk/src/fpdfeditpage.cpp",
"fpdfsdk/src/fpdfformfill.cpp",
"fpdfsdk/src/fpdfppo.cpp",
"fpdfsdk/src/fpdfsave.cpp",
+ "fpdfsdk/src/fpdfsdkdll.rc",
"fpdfsdk/src/fpdftext.cpp",
"fpdfsdk/src/fpdfview.cpp",
- "fpdfsdk/src/fpdf_dataavail.cpp",
- "fpdfsdk/src/fpdf_ext.cpp",
- "fpdfsdk/src/fpdf_flatten.cpp",
- "fpdfsdk/src/fpdf_progressive.cpp",
- "fpdfsdk/src/fpdf_searchex.cpp",
- "fpdfsdk/src/fpdf_sysfontinfo.cpp",
"fpdfsdk/src/fsdk_actionhandler.cpp",
"fpdfsdk/src/fsdk_annothandler.cpp",
"fpdfsdk/src/fsdk_baseannot.cpp",
"fpdfsdk/src/fsdk_baseform.cpp",
"fpdfsdk/src/fsdk_mgr.cpp",
"fpdfsdk/src/fsdk_rendercontext.cpp",
- "fpdfsdk/src/fpdfsdkdll.rc",
"fpdfsdk/src/resource.h",
"public/fpdf_dataavail.h",
"public/fpdf_doc.h",