Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add range-v3 #22443

Merged
merged 5 commits into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
20 changes: 20 additions & 0 deletions recipes/range-v3/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mkdir build
cd build

cmake -G "Visual Studio 16 2019" -A x64 ^
bluescarni marked this conversation as resolved.
Show resolved Hide resolved
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DBUILD_TESTING=YES ^
-DRANGES_ASSERTIONS=NO ^
-DRANGES_BUILD_CALENDAR_EXAMPLE=NO ^
-DRANGES_DEBUG_INFO=NO ^
-DRANGE_V3_DOCS=NO ^
-DRANGE_V3_EXAMPLES=NO ^
-DRANGE_V3_TESTS=YES ^
..

cmake --build . --config Release

ctest --output-on-failure -j${CPU_COUNT} -V -C Release
isuruf marked this conversation as resolved.
Show resolved Hide resolved

cmake --build . --config Release --target install
24 changes: 24 additions & 0 deletions recipes/range-v3/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

mkdir build
cd build

cmake ${CMAKE_ARGS} \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DBUILD_TESTING=YES \
-DCMAKE_BUILD_TYPE=Release \
-DRANGES_ASSERTIONS=NO \
-DRANGES_BUILD_CALENDAR_EXAMPLE=NO \
-DRANGES_DEBUG_INFO=NO \
-DRANGE_V3_DOCS=NO \
-DRANGE_V3_EXAMPLES=NO \
-DRANGE_V3_TESTS=YES \
..


make -j${CPU_COUNT} VERBOSE=1

ctest -j${CPU_COUNT} --output-on-failure

make install
34 changes: 34 additions & 0 deletions recipes/range-v3/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% set version = "0.12.0" %}

package:
name: range-v3
version: {{ version }}

source:
url: https://github.com/ericniebler/range-v3/archive/refs/tags/{{ version }}.tar.gz
sha256: 015adb2300a98edfceaf0725beec3337f542af4915cec4d0b89fa0886f4ba9cb

build:
number: 0

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- make # [unix]

test:
commands:
- test -f $PREFIX/include/range/v3/all.hpp # [unix]
- if not exist %PREFIX%\\Library\\include\\range\\v3\\all.hpp exit 1 # [win]

about:
home: https://github.com/ericniebler/range-v3
license: BSL-1.0
license_file: LICENSE.txt
summary: Range library for C++14/17/20, basis for C++20's std::ranges

extra:
recipe-maintainers:
- bluescarni