Fix build error 71/290371/3
authorjiyong.min <jiyong.min@samsung.com>
Thu, 23 Mar 2023 23:40:48 +0000 (08:40 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Mon, 27 Mar 2023 00:06:38 +0000 (09:06 +0900)
- 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

third_party/CMakeLists.txt
third_party/highway/CMakeLists.txt
third_party/highway/hwy/base.h
third_party/highway/hwy/ops/arm_neon-inl.h

index 06826ee..45cd077 100644 (file)
@@ -93,7 +93,11 @@ if (JPEGXL_ENABLE_SKCMS OR JPEGXL_ENABLE_PLUGINS)
 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 ()
index 81361b7..5e26982 100644 (file)
@@ -50,7 +50,9 @@ set(HWY_WARNINGS_ARE_ERRORS OFF CACHE BOOL "Add -Werror flag?")
 
 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(
index c87fa96..284c9ec 100644 (file)
@@ -255,7 +255,7 @@ static constexpr HWY_MAYBE_UNUSED size_t kMaxVectorSize = 16;
 
 // 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.
index 87edbcf..ebb43ac 100644 (file)
@@ -3028,7 +3028,7 @@ HWY_API Vec128<int64_t, N> PromoteTo(Simd<int64_t, N, 0> /* tag */,
   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) {
@@ -3157,7 +3157,7 @@ HWY_API Vec128<int8_t, N> DemoteTo(Simd<int8_t, N, 0> /* tag */,
   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) {