summaryrefslogtreecommitdiffstats
path: root/recipes/regularisers
diff options
context:
space:
mode:
authorDaniil Kazantsev <dkazanc3@googlemail.com>2018-04-09 15:17:24 +0100
committerGitHub <noreply@github.com>2018-04-09 15:17:24 +0100
commit62635199f4e5a464a267ffce070ecec68bfdcfe8 (patch)
treecdc7c4469e210a52cb416b2747ca2d954da073cc /recipes/regularisers
parenta5b5872b76bf00023a7e7cee97e028003ccbc45e (diff)
parentb9fafd363d1d181a4a8b42ea4038924097207913 (diff)
downloadregularization-62635199f4e5a464a267ffce070ecec68bfdcfe8.tar.gz
regularization-62635199f4e5a464a267ffce070ecec68bfdcfe8.tar.bz2
regularization-62635199f4e5a464a267ffce070ecec68bfdcfe8.tar.xz
regularization-62635199f4e5a464a267ffce070ecec68bfdcfe8.zip
Merge pull request #47 from vais-ral/add3Dtests
major renaming and new 3D demos for Matlab
Diffstat (limited to 'recipes/regularisers')
-rw-r--r--recipes/regularisers/bld.bat21
-rw-r--r--recipes/regularisers/build.sh19
-rw-r--r--recipes/regularisers/meta.yaml40
3 files changed, 80 insertions, 0 deletions
diff --git a/recipes/regularisers/bld.bat b/recipes/regularisers/bld.bat
new file mode 100644
index 0000000..6f2f7e7
--- /dev/null
+++ b/recipes/regularisers/bld.bat
@@ -0,0 +1,21 @@
+IF NOT DEFINED CIL_VERSION (
+ECHO CIL_VERSION Not Defined.
+exit 1
+)
+
+mkdir "%SRC_DIR%\build"
+ROBOCOPY /E "%RECIPE_DIR%\..\..\Core" "%SRC_DIR%\build"
+::ROBOCOPY /E "%RECIPE_DIR%\..\..\Wrappers\python\src" "%SRC_DIR%\build\module"
+cd "%SRC_DIR%\build"
+
+echo "we should be in %SRC_DIR%\build"
+
+cmake -G "NMake Makefiles" -DLIBRARY_LIB="%CONDA_PREFIX%\lib" -DLIBRARY_INC="%CONDA_PREFIX%" -DCMAKE_INSTALL_PREFIX="%PREFIX%\Library" "%SRC_DIR%\build"
+
+::-DBOOST_LIBRARYDIR="%CONDA_PREFIX%\Library\lib" -DBOOST_INCLUDEDIR="%CONDA_PREFIX%\Library\include" -DBOOST_ROOT="%CONDA_PREFIX%\Library\lib"
+
+:: Build C library
+nmake install
+if errorlevel 1 exit 1
+
+:: Install step
diff --git a/recipes/regularisers/build.sh b/recipes/regularisers/build.sh
new file mode 100644
index 0000000..0b8bce2
--- /dev/null
+++ b/recipes/regularisers/build.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+echo $CIL_VERSION
+#if [ -z "$CIL_VERSION" ]; then
+# echo "Need to set CIL_VERSION"
+# exit 1
+#fi
+#export CIL_VERSION=0.9.1
+
+
+
+mkdir ${SRC_DIR}/build
+cp -rv ${RECIPE_DIR}/../../Core/ ${SRC_DIR}/build
+mkdir ${SRC_DIR}/build/build
+cd ${SRC_DIR}/build/build
+cmake -G "Unix Makefiles" -DLIBRARY_LIB="${CONDA_PREFIX}/lib" -DLIBRARY_INC="${CONDA_PREFIX}" -DCMAKE_INSTALL_PREFIX="${PREFIX}" ../Core
+
+make -j2 VERBOSE=1
+make install
diff --git a/recipes/regularisers/meta.yaml b/recipes/regularisers/meta.yaml
new file mode 100644
index 0000000..f204a6b
--- /dev/null
+++ b/recipes/regularisers/meta.yaml
@@ -0,0 +1,40 @@
+package:
+ name: cil_regulariser
+ version: {{ environ['CIL_VERSION'] }}
+
+#source:
+ # path: ../
+
+build:
+ preserve_egg_dir: False
+ script_env:
+ - CIL_VERSION
+
+requirements:
+ build:
+ - boost ==1.64.0
+ - boost-cpp ==1.64.0
+# - toolchain
+ - python 3.5 # [py35]
+ - python 2.7 # [py27]
+ - cmake >=3.1
+# - zlib 1.2.11
+ - vc 14 # [win and py35]
+ - vc 9 # [win and py27]
+# - libtiff
+ - numpy
+
+ run:
+ - boost ==1.64.0
+# - libtiff
+ - vc 14 # [win and py35]
+ - vc 9 # [win and py27]
+ - python 3.5 # [py35]
+ - python 2.7 # [py27]
+ - numpy
+
+
+about:
+ home: http://www.ccpi.ac.uk
+ license: Apache v2.0
+ summary: Regulariser package from CCPi