aom: Add cdef_block_ssse3.c to a separate variable

From 77317a77d321d093f2ac0ba0775c32d28bfeee80 Mon Sep 17 00:00:00 2001
From: Wan-Teh Chang <[EMAIL REDACTED]>
Date: Tue, 12 Mar 2024 15:30:48 -0700
Subject: [PATCH] Add cdef_block_ssse3.c to a separate variable

Rather than appending cdef_block_ssse3.c to the
AOM_AV1_COMMON_INTRIN_SSSE3 variable if AOM_ARCH_X86 is true, add
cdef_block_ssse3.c to a separate variable
(AOM_AV1_COMMON_INTRIN_SSSE3_X86) unconditionally.

This allows the variable containing cdef_block_ssse3.c to be available
in the generated libaom_srcs.gni file for use by Chrome's build system.

Bug: b:322787141
Change-Id: Ic83ab6dea8f93e88af31a114de9f1c2bad9e61fc
---
 av1/av1.cmake | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/av1/av1.cmake b/av1/av1.cmake
index 672e21cc4..37af5231c 100644
--- a/av1/av1.cmake
+++ b/av1/av1.cmake
@@ -276,10 +276,8 @@ list(APPEND AOM_AV1_COMMON_INTRIN_SSSE3
             "${AOM_ROOT}/av1/common/x86/resize_ssse3.c")
 
 # Fallbacks to support Valgrind on 32-bit x86
-if(AOM_ARCH_X86)
-  list(APPEND AOM_AV1_COMMON_INTRIN_SSSE3
-              "${AOM_ROOT}/av1/common/x86/cdef_block_ssse3.c")
-endif()
+list(APPEND AOM_AV1_COMMON_INTRIN_SSSE3_X86
+            "${AOM_ROOT}/av1/common/x86/cdef_block_ssse3.c")
 
 list(APPEND AOM_AV1_COMMON_INTRIN_SSE4_1
             "${AOM_ROOT}/av1/common/x86/av1_convolve_horiz_rs_sse4.c"
@@ -613,6 +611,10 @@ function(setup_av1_targets)
     require_compiler_flag_nomsvc("-mssse3" NO)
     add_intrinsics_object_library("-mssse3" "ssse3" "aom_av1_common"
                                   "AOM_AV1_COMMON_INTRIN_SSSE3")
+    if(AOM_ARCH_X86)
+      add_intrinsics_object_library("-mssse3" "ssse3_x86" "aom_av1_common"
+                                    "AOM_AV1_COMMON_INTRIN_SSSE3_X86")
+    endif()
 
     if(CONFIG_AV1_DECODER)
       if(AOM_AV1_DECODER_INTRIN_SSSE3)