Skip to content

Commit

Permalink
(conan-io#15369) highway: add version 1.0.3
Browse files Browse the repository at this point in the history
* highway: add version 1.0.3

* link math lib
  • Loading branch information
toge authored and StellaSmith committed Feb 2, 2023
1 parent d185f70 commit 3fd1cd2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions recipes/highway/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.0.3":
url: "https://github.com/google/highway/archive/1.0.3.tar.gz"
sha256: "566fc77315878473d9a6bd815f7de78c73734acdcb745c3dde8579560ac5440e"
"1.0.2":
url: "https://github.com/google/highway/archive/1.0.2.tar.gz"
sha256: "e8ef71236ac0d97f12d553ec1ffc5b6375d57b5f0b860c7447dd69b6ed1072db"
Expand All @@ -23,5 +26,9 @@ sources:
patches:
"0.16.0":
- patch_file: "patches/0.16.0-0001-fix-sys-random-h.patch"
patch_description: "fix including sys/random.h on several environments"
patch_type: "portability"
"0.11.1":
- patch_file: "patches/0.11.1-0001-remove-contrib.patch"
patch_description: "remove contrib sources"
patch_type: "portability"
10 changes: 5 additions & 5 deletions recipes/highway/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from conan.tools.scm import Version
import os

required_conan_version = ">=1.52.0"
required_conan_version = ">=1.53.0"


class HighwayConan(ConanFile):
Expand Down Expand Up @@ -51,10 +51,7 @@ def configure(self):
if Version(self.version) < "0.16.0":
del self.options.shared
elif self.options.shared:
try:
del self.options.fPIC
except Exception:
pass
self.options.rm_safe("fPIC")

def layout(self):
cmake_layout(self, src_folder="src")
Expand Down Expand Up @@ -116,3 +113,6 @@ def package_info(self):
self.cpp_info.components["hwy_test"].set_property("pkg_config_name", "libhwy-test")
self.cpp_info.components["hwy_test"].libs = ["hwy_test"]
self.cpp_info.components["hwy_test"].requires = ["hwy"]

if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs.append("m")
2 changes: 2 additions & 0 deletions recipes/highway/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"1.0.3":
folder: all
"1.0.2":
folder: all
"1.0.1":
Expand Down

0 comments on commit 3fd1cd2

Please sign in to comment.