[Libreoffice-commits] core.git: external/libpng
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 12 10:37:00 UTC 2021
external/libpng/StaticLibrary_libpng.mk | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit c900de3b01ee0f445dd55d529f35ce25df37160a
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Thu Mar 11 18:58:32 2021 +0100
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Fri Mar 12 11:36:09 2021 +0100
enable libpng hardware optimizations (such as SSE)
The implementation is rather poor, but it's still something.
Change-Id: Id0a967d55d079327ae41d5dd3446a492fd247cfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112361
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/external/libpng/StaticLibrary_libpng.mk b/external/libpng/StaticLibrary_libpng.mk
index 77f1b29dc00a..bc23354fa113 100644
--- a/external/libpng/StaticLibrary_libpng.mk
+++ b/external/libpng/StaticLibrary_libpng.mk
@@ -42,6 +42,16 @@ $(eval $(call gb_StaticLibrary_add_generated_cobjects,libpng,\
UnpackedTarball/libpng/powerpc/powerpc_init \
UnpackedTarball/libpng/powerpc/filter_vsx_intrinsics \
) \
+ $(if $(filter INTEL X86_64,$(CPUNAME)), \
+ UnpackedTarball/libpng/intel/intel_init \
+ UnpackedTarball/libpng/intel/filter_sse2_intrinsics \
+ ) \
+))
+
+$(eval $(call gb_StaticLibrary_add_defs,libpng,\
+ $(if $(filter ARM AARCH64 ARM64,$(CPUNAME)), -DPNG_ARM_NEON) \
+ $(if $(filter POWERPC POWERPC64,$(CPUNAME)), -DPNG_POWERPC_VSX ) \
+ $(if $(filter INTEL X86_64,$(CPUNAME)), -DPNG_INTEL_SSE_OPT) \
))
# At least on Linux, with --enable-lto, when building both this external/libpng and external/skia,
More information about the Libreoffice-commits
mailing list