Compile PNG's "intrinsics" when targeting arm64.

As noted in pngpriv.h, the alternative (assembly code) doesn't currently
work on arm64.

There's no mention of iOS or tvOS, so maybe we could remove those?
This commit is contained in:
Joseph Cloutier
2022-05-27 20:30:07 -04:00
parent 821638ae34
commit f3aff7f274

View File

@@ -38,10 +38,12 @@
<file name="${NATIVE_TOOLKIT_PATH}/png/pngwtran.c" />
<file name="${NATIVE_TOOLKIT_PATH}/png/pngwutil.c" />
<section if="ios || tvos">
<!-- Files required only if PNG_ARM_NEON_IMPLEMENTATION == 1 (see pngpriv.h) -->
<section if="ios || tvos || HXCPP_ARM64">
<file name="${NATIVE_TOOLKIT_PATH}/png/arm/arm_init.c" />
<file name="${NATIVE_TOOLKIT_PATH}/png/arm/filter_neon_intrinsics.c" />
<file name="${NATIVE_TOOLKIT_PATH}/png/arm/palette_neon_intrinsics.c" />
</section>