Skip to content

Commit

Permalink
Add eigen-abi package for use in downstrem compiled libraries that us…
Browse files Browse the repository at this point in the history
…e eigen in their public headers
  • Loading branch information
traversaro committed Aug 22, 2023
1 parent 7fbf15e commit 6ffeba2
Showing 1 changed file with 35 additions and 19 deletions.
54 changes: 35 additions & 19 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set version = "3.4.0" %}

package:
name: eigen
name: eigen-split
version: {{ version }}

source:
Expand All @@ -10,29 +10,45 @@ source:
sha256: 8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72

build:
number: 0

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

test:
requires:
- {{ compiler('cxx') }}
files:
- test.cc

commands:
- test -d ${PREFIX}/include/eigen3 # [unix]
- if not exist %PREFIX%\\Library\\include\\eigen3 exit 1 # [win]
- if not exist %PREFIX%\\Library\\share\\pkgconfig\\eigen3.pc exit 1 # [win]
number: 1

outputs:
- name: eigen
requirements:
build:
- cmake
- {{ compiler('cxx') }}
- make
test:
requires:
- {{ compiler('cxx') }}
files:
- test.cc
commands:
- test -d ${PREFIX}/include/eigen3 # [unix]
- if not exist %PREFIX%\\Library\\include\\eigen3 exit 1 # [win]
- if not exist %PREFIX%\\Library\\share\\pkgconfig\\eigen3.pc exit 1 # [win]

- name: eigen-abi
build:
noarch: generic
run_exports:
- {{ pin_subpackage('eigen-abi', max_pin='x.x.x') }}
run_constrained:
- eigen =={{ version }}
test:
commands:
- echo "This is a metapackage, no test is necessary."

about:
home: http://eigen.tuxfamily.org/
license: MPL-2.0
summary: C++ template library for linear algebra
description: |
This feedstock builds two different conda packages:
* `eigen`: the eigen header only library ifself.
* `eigen-abi`: this a meta-package should be added as a dependency for packages that use contain C++ compiled libraries that use eigen in their public headers.
extra:
recipe-maintainers:
Expand Down

0 comments on commit 6ffeba2

Please sign in to comment.