-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cfab4c
commit e7d103f
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
#!/bin/bash | ||
set -e | ||
|
||
# Configure step | ||
mkdir -p build | ||
cd build | ||
emcmake cmake .. \ | ||
-DBUILD_TESTS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_PREFIX_PATH=$PREFIX \ | ||
-DCMAKE_INSTALL_PREFIX=$PREFIX \ | ||
-DDOWNLOAD_DOCTEST=ON | ||
|
||
emmake make -j4 | ||
|
||
# Install step | ||
emmake make install | ||
cd .. | ||
|
||
# Copy test files to $PREFIX/test | ||
mkdir -p $PREFIX/bin | ||
cp test/test_wasm/browser_main.html $PREFIX/bin/ | ||
cp test/test_wasm/test_wasm_playwright.py $PREFIX/bin/ | ||
cp build/test/test_xsimd.js $PREFIX/bin/ | ||
cp build/test/test_xsimd.wasm $PREFIX/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
context: | ||
name: xsimd | ||
version: 13.0.0 | ||
|
||
package: | ||
name: ${{ name|lower }} | ||
version: ${{ version }} | ||
|
||
source: | ||
url: https://github.com/xtensor-stack/xsimd/archive/refs/tags/${{ version }}.tar.gz | ||
sha256: 8bdbbad0c3e7afa38d88d0d484d70a1671a1d8aefff03f4223ab2eb6a41110a3 | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- ${{ compiler('cxx') }} | ||
- cmake | ||
- ninja | ||
host: | ||
- python | ||
|
||
tests: | ||
- script: | | ||
echo "install playwright" | ||
playwright install | ||
python ${PREFIX}/bin/test_wasm_playwright.py ${PREFIX}/bin | ||
requirements: | ||
build: | ||
- microsoft::playwright | ||
about: | ||
homepage: https://github.com/xtensor-stack/xsimd | ||
license: BSD-3-Clause | ||
license_file: LICENSE | ||
summary: C++ Wrappers for SIMD Intrinsices | ||
description: High-level APIs for SIMD operations | ||
documentation: https://xsimd.readthedocs.io | ||
repository: https://github.com/xtensor-stack/xsimd | ||
|
||
extra: | ||
recipe-maintainers: | ||
- JohanMabille | ||
- anutosh491 |