{% set name = "embree3" %}
{% set version = "3.2.0" %}
{% set sha256 = "9f4fe73dc2b1fc5ff26840d65d87dcba9b5faef70fccb8c231d85437e0a5bf34" %}

package:
  name: {{ name }}
  version: "{{ version }}"

source:
  fn: {{ version }}.tar.gz
  url: https://github.com/embree/embree/archive/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0
  # upstream supports visual studio 13+
  skip: true  # [win and vc<13]]

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake

  host:
    - tbb

  run:
    - tbb

test:
  commands:
    - test -f "${PREFIX}/lib/libembree3.so"  # [linux]
    - test -f "${PREFIX}/lib/libembree3.dylib"  # [osx]

about:
  home: https://embree.github.io/
  license: Apache 2.0
  license_file: LICENSE.txt
  summary: High Performance Ray Tracing Kernels

extra:
  recipe-maintainers:
    - joaander

{% set name = "embree3" %}
{% set version = "3.2.0" %}
{% set sha256 = "9f4fe73dc2b1fc5ff26840d65d87dcba9b5faef70fccb8c231d85437e0a5bf34" %}

package:
  name: {{ name }}
  version: "{{ version }}"

source:
  fn: {{ version }}.tar.gz
  url: https://github.com/embree/embree/archive/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0
  # upstream supports visual studio 13+
  skip: true  # [win and vc<13]]

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake

  host:
    - tbb

  run:
    - tbb

test:
  commands:
    - test -f "${PREFIX}/lib/libembree3.so"  # [linux]
    - test -f "${PREFIX}/lib/libembree3.dylib"  # [osx]
    - exist "%LIBRARY_PREFIX%/lib/embree.lib"  # [win]
    - exist "%LIBRARY_PREFIX%/lib/embree.dll"  # [win]

about:
  home: https://embree.github.io/
  license: Apache 2.0
  license_file: LICENSE.txt
  summary: High Performance Ray Tracing Kernels

extra:
  recipe-maintainers:
    - joaander

Check for installed library on windows
Check for installed library on windows
