[iir1] Update to 1.9.1 (#24390)

* Update iir1 to 1.9.1

* Update CI baseline

* Only either build as shared or static

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
This commit is contained in:
chausner 2022-04-26 02:25:05 +02:00 committed by GitHub
parent 2baa492fa9
commit 9d642bd84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 6 deletions

View File

@ -0,0 +1,42 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,9 +12,11 @@ cmake_policy(SET CMP0048 NEW) # set VERSION in project()
cmake_policy(SET CMP0042 NEW) # enable MACOSX_RPATH by default
include(GNUInstallDirs)
+if(BUILD_TESTING)
add_subdirectory(test)
add_subdirectory(demo)
enable_testing ()
+endif()
if (MSVC)
add_compile_options(/W4)
@@ -47,6 +49,8 @@ set(LIBINCLUDE
iir/State.h
iir/Types.h)
+if(BUILD_SHARED_LIBS)
+
add_library(iir SHARED ${LIBSRC})
add_library(iir::iir ALIAS iir)
@@ -73,6 +77,8 @@ install(TARGETS iir EXPORT iir-targets
configure_file(iir.pc.in iir.pc @ONLY)
+else(BUILD_SHARED_LIBS)
+
add_library(iir_static STATIC ${LIBSRC})
add_library(iir::iir_static ALIAS iir_static)
@@ -97,6 +103,8 @@ install(TARGETS iir_static EXPORT iir-targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
PRIVATE_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/iir)
+endif(BUILD_SHARED_LIBS)
+
install(EXPORT iir-targets
DESTINATION lib/cmake/iir
NAMESPACE iir::

View File

@ -1,13 +1,17 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO berndporr/iir1
REF 1.9.0
SHA512 9dced1610fbbfd7194874e984f969880dc76df3562df575c07d022b9ac96c67334b542acea395531423dfb5b8d692b14abdaff0235f048ab6ca7221bfc57fdba
REF 1.9.1
SHA512 115692fb82637d21c2cbff974d931ef12a5c7fd8502560e2b807ceed69b1a6a4e05898aff37b089ccda7c4aa32e97e71f7e6007998ec52f6122da33eb222112e
HEAD_REF master
PATCHES
fix-shared-static.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()

View File

@ -1,7 +1,6 @@
{
"name": "iir1",
"version": "1.9.0",
"port-version": 1,
"version": "1.9.1",
"description": "Realtime C++ filter library",
"homepage": "https://github.com/berndporr/iir1",
"license": "MIT",

View File

@ -2901,8 +2901,8 @@
"port-version": 1
},
"iir1": {
"baseline": "1.9.0",
"port-version": 1
"baseline": "1.9.1",
"port-version": 0
},
"ijg-libjpeg": {
"baseline": "9d",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b684559e0b19d393deae83fdf6e2182937942a76",
"version": "1.9.1",
"port-version": 0
},
{
"git-tree": "393a498a50400c062dafdefbbbdbd3d1c3daef4a",
"version": "1.9.0",