# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json context: name: xtensor version: 0.24.6 package: name: ${{ name|lower }} version: ${{ version }} source: url: https://github.com/xtensor-stack/xtensor/archive/${{ version }}.tar.gz sha256: f87259b51aabafdd1183947747edfff4cff75d55375334f2e81cee6dc68ef655 build: number: 0 skip: win and vc14 script: - if: win then: | cmake -G "NMake Makefiles" -D BUILD_TESTS=OFF -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% %SRC_DIR% nmake nmake install else: | cmake ${CMAKE_ARGS} -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX $SRC_DIR -DCMAKE_INSTALL_LIBDIR=lib make install dynamic_linking: rpath_allowlist: ["/usr/lib/**"] binary_relocation: true requirements: build: - ${{ compiler('cxx') }} - cmake - if: unix then: make host: - xtl >=0.7,<0.8 run: - xtl >=0.7,<0.8 run_constraints: - xsimd >=8.0.3,<10 tests: - package_contents: include: - xtensor/xarray.hpp files: - share/cmake/xtensor/xtensorConfig.cmake - share/cmake/xtensor/xtensorConfigVersion.cmake - script: - if: unix or emscripten then: - test -d ${PREFIX}/include/xtensor - test -f ${PREFIX}/include/xtensor/xarray.hpp - test -f ${PREFIX}/share/cmake/xtensor/xtensorConfig.cmake - test -f ${PREFIX}/share/cmake/xtensor/xtensorConfigVersion.cmake - if: win then: - if not exist %LIBRARY_PREFIX%\include\xtensor\xarray.hpp (exit 1) - if not exist %LIBRARY_PREFIX%\share\cmake\xtensor\xtensorConfig.cmake (exit 1) - if not exist %LIBRARY_PREFIX%\share\cmake\xtensor\xtensorConfigVersion.cmake (exit 1) about: homepage: https://github.com/xtensor-stack/xtensor license: BSD-3-Clause license_file: LICENSE summary: The C++ tensor algebra library description: Multi dimensional arrays with broadcasting and lazy computing documentation: https://xtensor.readthedocs.io repository: https://github.com/xtensor-stack/xtensor extra: recipe-maintainers: - some-maintainer