diff options
author | CoprDistGit <infra@openeuler.org> | 2025-03-06 09:13:30 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-03-06 09:13:30 +0000 |
commit | 4d018693fbd18be77e8b5501cfcd2c6265581967 (patch) | |
tree | a5e4ba824efae025ea5b90e65b43c9eb3afd6fe1 /libyuv-0004-Disable-static-library.patch | |
parent | fd4bbf82cbd4b906e7c85186c293427595c2cdf9 (diff) |
automatic import of libyuv
Diffstat (limited to 'libyuv-0004-Disable-static-library.patch')
-rw-r--r-- | libyuv-0004-Disable-static-library.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libyuv-0004-Disable-static-library.patch b/libyuv-0004-Disable-static-library.patch new file mode 100644 index 0000000..d7389e3 --- /dev/null +++ b/libyuv-0004-Disable-static-library.patch @@ -0,0 +1,38 @@ +From: Peter Lemenkov <lemenkov@gmail.com> +Date: Mon, 24 Sep 2018 15:08:45 +0200 +Subject: [PATCH] Disable static library + +Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a8368af4..b3b22c47 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,7 +14,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 +@@ -116,9 +115,6 @@ if(NOT MSVC) + 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}" ) +@@ -189,8 +185,7 @@ 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 ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin ) +-INSTALL ( TARGETS ${ly_lib_static} DESTINATION lib ) + INSTALL ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin ) + INSTALL ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include ) |