Skip to content

Commit

Permalink
Merge pull request #15309 from GiulioRomualdi/osqp-eigen
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Jun 23, 2021
2 parents 4188bc9 + f3826b0 commit c2ceef5
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
18 changes: 18 additions & 0 deletions recipes/osqp-eigen/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
mkdir build
cd build

cmake ^
-G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
%SRC_DIR%
if errorlevel 1 exit 1

:: Build.
cmake --build . --config Release
if errorlevel 1 exit 1

:: Install.
cmake --build . --config Release --target install
if errorlevel 1 exit 1
10 changes: 10 additions & 0 deletions recipes/osqp-eigen/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

mkdir build && cd build

cmake ${CMAKE_ARGS} \
-DCMAKE_BUILD_TYPE=Release \
$SRC_DIR

make -j${CPU_COUNT}
make install
48 changes: 48 additions & 0 deletions recipes/osqp-eigen/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% set name = "osqp-eigen" %}
{% set version = "0.6.4" %}

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

source:
url: https://github.com/robotology/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: f3fcff8b26646410b40c2003f5c2ffb7b0099fa70a6aa531dec69cfaf4de9aef

build:
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x.x.x') }}

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- make # [not win]
- cmake
host:
- libosqp
- eigen

test:
commands:
- test -f ${PREFIX}/include/OsqpEigen/OsqpEigen.h # [not win]
- test -f ${PREFIX}/lib/cmake/OsqpEigen/OsqpEigenConfig.cmake # [not win]
- test -f ${PREFIX}/lib/libOsqpEigen.so # [linux]
- test -f ${PREFIX}/lib/libOsqpEigen.dylib # [osx]
- if not exist %PREFIX%\\Library\\include\\OsqpEigen\\OsqpEigen.h exit 1 # [win]
- if not exist %PREFIX%\\Library\\lib\\OsqpEigen.lib exit 1 # [win]
- if not exist %PREFIX%\\Library\\bin\\OsqpEigen.dll exit 1 # [win]
- if not exist %PREFIX%\\Library\\lib\\cmake\\OsqpEigen\\OsqpEigenConfig.cmake exit 1 # [win]

about:
home: https://github.com/robotology/osqp-eigen
license: LGPL-3.0-or-later
license_family: LGPL
license_file: LICENSE
summary: 'Simple C++ wrapper for osqp library.'

extra:
recipe-maintainers:
- GiulioRomualdi
- traversaro

0 comments on commit c2ceef5

Please sign in to comment.