Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
21 changes: 21 additions & 0 deletions recipes/range-v3/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
mkdir build
cd build

cmake ^
-G "Visual Studio 16 2019" -A x64 ^
-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

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
37 changes: 37 additions & 0 deletions recipes/range-v3/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% 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
run_exports:
# Let's keep this conservative.
- {{ pin_subpackage('range-v3', max_pin='x.x') }}

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