Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iir1 bump cci #8835

Merged
merged 12 commits into from
Mar 7, 2022
3 changes: 3 additions & 0 deletions recipes/iir1/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ sources:
"1.9.0":
url: "https://github.com/berndporr/iir1/archive/refs/tags/1.9.0.tar.gz"
sha256: "BF2C3CD819151D5B85E84CC8349C1AA9DD5E4157A7070BDD143130278B4375E8"
"cci.20211227":
url: "https://github.com/berndporr/iir1/archive/70b39cc329994a54f49719decce90ae5dea1c051.zip"
sha256: "5A3543BAD7E44FF76E7FD6B2F3FEAC6D9E8693D06AF7E2A1DF168084D6276B43"
wouterz marked this conversation as resolved.
Show resolved Hide resolved
patches:
"1.9.0":
- patch_file: "patches/0002-Add-runtime-export-to-install.patch"
Expand Down
6 changes: 6 additions & 0 deletions recipes/iir1/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ class Iir1Conan(ConanFile):
options = {
"shared": [True, False],
"fPIC": [True, False],
"noexceptions": [True, False],
}
default_options = {
"shared": False,
"fPIC": True,
"noexceptions": False,
}

generators = "cmake"
Expand All @@ -50,6 +52,8 @@ def export_sources(self):
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
if self.version == "1.9.0" and self.options.noexceptions:
raise ConanInvalidConfiguration("1.9.0 does not have the option to disable exceptions")
wouterz marked this conversation as resolved.
Show resolved Hide resolved

def configure(self):
if self.options.shared:
Expand All @@ -72,6 +76,7 @@ def _configure_cmake(self):
return self._cmake

self._cmake = CMake(self)
self._cmake.definitions['IIR1_NO_EXCEPTIONS'] = self.options.noexceptions
wouterz marked this conversation as resolved.
Show resolved Hide resolved
self._cmake.configure(build_folder=self._build_subfolder)
return self._cmake

Expand Down Expand Up @@ -108,3 +113,4 @@ def package_info(self):
self.cpp_info.components["iir"].set_property("cmake_target_name", "iir::{}".format(name))

self.cpp_info.components["iir"].libs = [name]

5 changes: 3 additions & 2 deletions recipes/iir1/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
versions:
"1.9.0":
folder: all

folder: "all"
"cci.20211227":
folder: "all"