#! /bin/bash

TARGET=Debug

HERE=$(pwd)

# Assimp has been built as $TARGET
cd "$HERE"
cd assimp
# cmake -G "Visual Studio 14 2015 Win64" -DASSIMP_BUILD_TESTS=off
# /cygdrive/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe /p:Configuration=Net45-$TARGET AssimpNet.sln

cd "$HERE"
cp assimp/bin/$TARGET/assimp* AssimpNet/libs/Assimp
cd AssimpNet/libs/Assimp
mv assimp-vc140-mt.dll Assimp64.dll
mv assimp-vc140-mt.pdb Assimp64.pdb
mv assimp-vc140-mt.ilk Assimp64.ilk

# Now build AssimpNet
cd "$HERE"
cd "AssimpNet"
/cygdrive/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe /p:Configuration=Net45-$TARGET AssimpNet.sln

cd "$HERE"
cp AssimpNet/AssimpNet/bin/Net45-$TARGET/* convoar/libs

Add script for building AssimpNet since it requires library copying and renaming.
Add script for building AssimpNet since it requires library
copying and renaming.
