File 0001-Disable-static-library.patch of Package libyuv
From b6bec20d1468660a11b349d8d9b061ea042224e4 Mon Sep 17 00:00:00 2001
From: JS <obs.coke518@passinbox.com>
Date: Sun, 29 Dec 2024 18:59:17 +0800
Subject: [PATCH] Disable static library
---
CMakeLists.txt | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a85f833..8a4dd1a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,6 @@ set ( ly_src_dir ${ly_base_dir}/source )
set ( ly_inc_dir ${ly_base_dir}/include )
set ( ly_tst_dir ${ly_base_dir}/unit_test )
set ( ly_lib_name yuv )
-set ( ly_lib_static ${ly_lib_name} )
set ( ly_lib_shared ${ly_lib_name}_shared )
# We cannot use GLOB here since we want to be able to separate out files that
@@ -173,9 +172,6 @@ if(LOONGARCH64)
endif()
endif()
-# this creates the static library (.a)
-add_library( ${ly_lib_static} STATIC ${ly_lib_parts})
-
# this creates the shared library (.so)
add_library( ${ly_lib_shared} SHARED ${ly_lib_parts})
set_target_properties( ${ly_lib_shared} PROPERTIES OUTPUT_NAME "${ly_lib_name}" )
@@ -248,9 +244,8 @@ if(UNIT_TEST)
endif()
-# install the conversion tool, .so, .a, and all the header files
+# install the conversion tool, .so, and all the header files
install ( TARGETS yuvconvert DESTINATION bin )
-install ( TARGETS ${ly_lib_static} DESTINATION lib )
install ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin ARCHIVE DESTINATION lib )
install ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include )
--
2.47.1