Skip to content

Commit

Permalink
libest: OpenSSL flags
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 3, 2023
1 parent d134df2 commit 46790ec
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions recipes/libest/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
from conan.tools.build import cross_building
from conan.tools.env import VirtualRunEnv
from conan.tools.files import apply_conandata_patches, chdir, copy, export_conandata_patches, get, replace_in_file
from conan.tools.gnu import Autotools, AutotoolsToolchain
from conan.tools.gnu import Autotools, AutotoolsToolchain, AutotoolsDeps
from conan.tools.layout import basic_layout
from conan.tools.microsoft import unix_path

required_conan_version = ">=1.53.0"

Expand Down Expand Up @@ -49,7 +50,7 @@ def layout(self):
basic_layout(self, src_folder="src")

def requirements(self):
self.requires("openssl/[>=1.1 <4]", transitive_headers=True, transitive_libs=True)
self.requires("openssl/1.1.1w", transitive_headers=True, transitive_libs=True)

def build_requirements(self):
self.tool_requires("libtool/2.4.7")
Expand All @@ -58,9 +59,13 @@ def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)

def generate(self):
if not cross_building(self):
env = VirtualRunEnv(self)
env.generate(scope="build")
tc = AutotoolsToolchain(self)
tc.configure_args.append(f"--with-ssl-dir={self.dependencies['openssl'].package_folder}")
tc.generate()
deps = AutotoolsDeps(self)
deps.generate()

def _patch_sources(self):
apply_conandata_patches(self)
Expand Down

0 comments on commit 46790ec

Please sign in to comment.