- The lcms2 requirement is changed according to Tizen.
- Modified so that the third party libhwy is not installed.
- The ARM_FP v2 is disable because it is not supported.
Change-Id: Ia338bb44e6a037e9d261d921f8a26a276a63ba1a
endif ()
if (JPEGXL_ENABLE_VIEWERS OR NOT JPEGXL_ENABLE_SKCMS)
if( NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/lcms/.git" OR JPEGXL_FORCE_SYSTEM_LCMS2 )
- find_package(LCMS2 2.13)
+ if(__TIZEN__)
+ find_package(LCMS2 2.12)
+ else()
+ find_package(LCMS2 2.13)
+ endif()
if ( NOT LCMS2_FOUND )
message(FATAL_ERROR "Please install lcms2 or run git submodule update --init")
endif ()
set(HWY_ENABLE_CONTRIB ON CACHE BOOL "Include contrib/")
set(HWY_ENABLE_EXAMPLES ON CACHE BOOL "Build examples")
+if (NOT __TIZEN__)
set(HWY_ENABLE_INSTALL ON CACHE BOOL "Install library")
+endif()
include(CheckCXXSourceCompiles)
check_cxx_source_compiles(
// ACLE (https://gcc.gnu.org/onlinedocs/gcc/Half-Precision.html):
// always supported on aarch64, for v7 only if -mfp16-format is given.
-#if ((HWY_ARCH_ARM_A64 || (__ARM_FP & 2)) && HWY_COMPILER_GCC)
+#if ((HWY_ARCH_ARM_A64 || (__ARM_FP & 2)) && HWY_COMPILER_GCC) && (!__TIZEN__)
using float16_t = __fp16;
// C11 extension ISO/IEC TS 18661-3:2015 but not supported on all targets.
// Required for Clang RVV if the float16 extension is used.
return Vec128<int64_t, N>(vget_low_s64(vmovl_s32(v.raw)));
}
-#if __ARM_FP & 2
+#if (__ARM_FP & 2) && !(__TIZEN__)
HWY_API Vec128<float> PromoteTo(Full128<float> /* tag */,
const Vec128<float16_t, 4> v) {
return Vec128<int8_t, N>(vqmovn_s16(vcombine_s16(v.raw, v.raw)));
}
-#if __ARM_FP & 2
+#if (__ARM_FP & 2) && !(__TIZEN__)
HWY_API Vec128<float16_t, 4> DemoteTo(Full64<float16_t> /* tag */,
const Vec128<float> v) {