mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
566 B
23 lines
566 B
#!/usr/bin/env bash |
|
set -e |
|
dir=$(cd "$(dirname "$0")"; pwd) |
|
rootdir="$dir/../.." |
|
configuration=Release |
|
platform=x64 |
|
|
|
red=`tput setaf 1` |
|
green=`tput setaf 2` |
|
reset=`tput sgr0` |
|
|
|
echo "${green}Generating bindings${reset}" |
|
dotnet $rootdir/bin/${configuration}_${platform}/CppSharp.CLI.dll \ |
|
--gen=napi -I$dir/.. -o $dir/gen -m tests $dir/../*.h |
|
|
|
echo "${green}Building generated binding files${reset}" |
|
premake=$rootdir/build/premake.sh |
|
$premake --file=$dir/premake5.lua gmake |
|
make -C $dir/gen |
|
echo |
|
|
|
echo "${green}Executing JS tests with Node${reset}" |
|
node $dir/test.js
|
|
|