external/libpng/StaticLibrary_libpng.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
New commits: commit c900de3b01ee0f445dd55d529f35ce25df37160a Author: Luboš Luňák <[email protected]> AuthorDate: Thu Mar 11 18:58:32 2021 +0100 Commit: Luboš Luňák <[email protected]> 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 <[email protected]> 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, _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
