Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -4965,6 +4965,14 @@
"3.1.0-1"
]
},
"xsimd": {
"dependency_names": [
"xsimd"
],
"versions": [
"14.2.0-1"
]
},
"xtensor": {
"dependency_names": [
"xtensor"
Expand Down
33 changes: 33 additions & 0 deletions subprojects/packagefiles/xsimd/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
project(
'xsimd',
'cpp',
license: 'BSD-3-Clause',
meson_version: '>=0.56.0',

Check notice on line 5 in subprojects/packagefiles/xsimd/meson.build

View workflow job for this annotation

GitHub Actions / Ubuntu (x86_64)

Minimum Meson version is 0.56.0

0.56.0: oldest version supported by WrapDB
version: '14.2.0',
)

xsimd_inc = include_directories('include')
xtl_dep = dependency(
'xtl',
version: '>=0.7.0',
required: get_option('xtl_complex'),
)

if xtl_dep.found()
complex_args = ['-DXSIMD_ENABLE_XTL_COMPLEX=1']
else
complex_args = []
endif

xsimd_dep = declare_dependency(
include_directories: xsimd_inc,
dependencies: xtl_dep,
compile_args: complex_args,
)

install_subdir(
'include/xsimd',
install_dir: get_option('includedir'),
)

meson.override_dependency('xsimd', xsimd_dep)
5 changes: 5 additions & 0 deletions subprojects/packagefiles/xsimd/meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
option(
'xtl_complex',
type: 'feature',
description: 'Support for complex numbers from xtl',
)
9 changes: 9 additions & 0 deletions subprojects/xsimd.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[wrap-file]
directory = xsimd-14.2.0
source_url = https://github.com/xtensor-stack/xsimd/archive/refs/tags/14.2.0.tar.gz
source_filename = xsimd-14.2.0.tar.gz
source_hash = 21e841ab684b05331e81e7f782431753a029ef7b7d9d6d3ddab837e7782a40ee
patch_directory = xsimd

[provide]
dependency_names = xsimd
Loading