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

Adding tiny-process-library #13332

Merged
merged 1 commit into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all 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/tiny-process-library/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mkdir build
cd build

cmake ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_LIBDIR=lib ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON ^
%SRC_DIR%
if errorlevel 1 exit 1

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

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

mkdir build && cd build

cmake -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
$SRC_DIR

cmake --build . --config Release
cmake --install . --config Release
44 changes: 44 additions & 0 deletions recipes/tiny-process-library/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% set name = "tiny-process-library" %}
{% set version = "2.0.4" %}

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

source:
- url: https://gitlab.com/eidheim/{{ name }}/-/archive/v{{ version }}/{{ name }}-v{{ version }}.tar.gz
sha256: b99dcb51461323b8284a7762ad105c159b88cdcce0c2cc183e4f474f80ef1f1a

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

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

test:
commands:
- test -f ${PREFIX}/include/process.hpp # [not win]
- test -f ${PREFIX}/lib/libtiny-process-library.so # [linux]
- test -f ${PREFIX}/lib/libtiny-process-library.dylib # [osx]
- test -f ${PREFIX}/lib/cmake/tiny-process-library/tiny-process-library-config.cmake # [not win]
- if exist %PREFIX%\\Library\\include\\process.hpp (exit 0) else (exit 1) # [win]
- if exist $PREFIX$\\Library\\lib\\tiny-process-library.lib (exit 0) else (exit 1) # [win]
- if exist $PREFIX$\\Library\\bin\\tiny-process-library.dll (exit 0) else (exit 1) # [win]
- if exist %PREFIX%\\Library\\lib\\cmake\\tiny-process-library\\tiny-process-library-config.cmake (exit 0) else (exit 1) # [win]

about:
home: https://gitlab.com/eidheim/tiny-process-library
license: MIT
license_file: LICENSE
summary: A small platform independent library making it simple to create and stop new processes in C++.


extra:
recipe-maintainers:
- traversaro