Commit 994eac86 authored by Daniel Brown's avatar Daniel Brown

Adding 2.2 build files

parent 99d45a67
@ECHO ON
SET LookForFile="%SRC_DIR%\kat.exe"
chdir /d %SRC_DIR%
IF "%ARCH%"=="64" (
c:\msys64\mingw64 /bin/bash ./finesse.sh --build-win64
)
IF "%ARCH%"=="32" (
c:\msys64\mingw32 /bin/bash ./finesse.sh --build-win32
)
@ECHO OFF
:CheckForFile
IF EXIST %LookForFile% GOTO FoundIt
TIMEOUT /T 2 >nul
GOTO CheckForFile
:FoundIt
ECHO Found: %LookForFile%
@ECHO ON
xcopy %SRC_DIR%\kat.exe "%PREFIX%\Library\bin\"
xcopy %SRC_DIR%\kat.ini "%PREFIX%\Library\bin\"
mkdir %PREFIX%\etc\conda\activate.d
mkdir %PREFIX%\etc\conda\deactivate.d
type NUL > %PREFIX%\etc\conda\activate.d\finesse_vars.bat
type NUL > %PREFIX%\etc\conda\deactivate.d\finesse_vars.bat
echo @ECHO OFF >> %PREFIX%\etc\conda\activate.d\finesse_vars.bat
echo SET KATINI=%%CONDA_PREFIX%%\Library\bin\kat.ini >> %PREFIX%\etc\conda\activate.d\finesse_vars.bat
echo SET FINESSE_DIR=%%CONDA_PREFIX%%\Library\bin >> %PREFIX%\etc\conda\activate.d\finesse_vars.bat
echo @ECHO OFF >> %PREFIX%\etc\conda\deactivate.d\finesse_vars.bat
echo SET KATINI= >> %PREFIX%\etc\conda\deactivate.d\finesse_vars.bat
echo SET FINESSE_DIR= >> %PREFIX%\etc\conda\deactivate.d\finesse_vars.bat
\ No newline at end of file
#!/bin/bash
platform='unknown'
unamestr=`uname`
unamem=`uname -m`
if [[ "$unamestr" == 'Linux' ]]; then
if [[ "${ARCH}" == '32' ]]; then
./finesse.sh --build-linux32
else
./finesse.sh --build-linux
fi
cp ./kat ${PREFIX}/bin
cp ./kat.ini ${PREFIX}/bin
elif [[ "$unamestr" == 'Darwin' ]]; then
if [[ "${ARCH}" == '32' ]]; then
./finesse.sh --build-mac32
else
./finesse.sh --build-mac
fi
cp ./kat ${PREFIX}/bin
cp ./kat.ini ${PREFIX}/bin
elif [[ "$unamestr" == *CYGWIN* ]]; then
if [[ "$unamem" == 'i686' ]]; then
./finesse.sh --build-win32
else
./finesse.sh --build-win64
fi
cp ./kat.exe ${PREFIX}/bin
cp ./kat.ini ${PREFIX}/bin
elif [[ "$unamestr" == *MINGW32* ]]; then
echo "Platform not supported" | tee -a $LOGFILE
failure
else
echo "Platform could not be determined" | tee -a $LOGFILE
failure
fi
# Setup saved env vars https://conda.io/docs/using/envs.html
mkdir -p ${PREFIX}/etc/conda/activate.d
mkdir -p ${PREFIX}/etc/conda/deactivate.d
touch ${PREFIX}/etc/conda/activate.d/finesse_vars.sh
touch ${PREFIX}/etc/conda/deactivate.d/finesse_vars.sh
echo "#!/bin/bash" >> ${PREFIX}/etc/conda/activate.d/finesse_vars.sh
echo "export KATINI=\${CONDA_PREFIX}/bin/kat.ini" >> ${PREFIX}/etc/conda/activate.d/finesse_vars.sh
echo "export FINESSE_DIR=\${CONDA_PREFIX}/bin/" >> ${PREFIX}/etc/conda/activate.d/finesse_vars.sh
echo "#!/bin/bash" >> ${PREFIX}/etc/conda/deactivate.d/finesse_vars.sh
echo "unset KATINI" >> ${PREFIX}/etc/conda/deactivate.d/finesse_vars.sh
echo "unset FINESSE_DIR" >> ${PREFIX}/etc/conda/deactivate.d/finesse_vars.sh
\ No newline at end of file
package:
name: finesse
version: 2.2
source:
git_rev: 2.2
git_url: https://git.ligo.org/finesse/finesse.git
build:
number: 0
about:
home: www.gwoptics.org/finesse
license: GPL3
license_file: LICENSES
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment