summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn19
-rw-r--r--core/src/fxcodec/fx_zlib/zlib_v128/zlib.h2
2 files changed, 12 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",
diff --git a/core/src/fxcodec/fx_zlib/zlib_v128/zlib.h b/core/src/fxcodec/fx_zlib/zlib_v128/zlib.h
index 9eb5e3a011..2d5812acf1 100644
--- a/core/src/fxcodec/fx_zlib/zlib_v128/zlib.h
+++ b/core/src/fxcodec/fx_zlib/zlib_v128/zlib.h
@@ -1779,6 +1779,8 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
# define gzseek gzseek64
# define gztell gztell64
# define gzoffset gzoffset64
+# undef adler32_combine
+# undef crc32_combine
# define adler32_combine adler32_combine64
# define crc32_combine crc32_combine64
# endif