Browse Source

Update QuickJS test suite to use a Lua bindings definition file.

pull/1865/head
Joao Matos 10 months ago
parent
commit
92b1858a24
  1. 22
      tests/quickjs/bindings.lua
  2. 2
      tests/quickjs/test.sh

22
tests/quickjs/bindings.lua

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
generator "quickjs"
architecture "x64"
includedirs
{
"..",
"../../include",
}
output "gen"
module "test"
namespace "test"
headers
{
"Builtins.h",
"Classes.h",
"Classes2.h",
"Delegates.h",
"Enums.h",
"Overloads.h"
}

2
tests/quickjs/test.sh

@ -16,7 +16,7 @@ generate=true @@ -16,7 +16,7 @@ generate=true
if [ $generate = true ]; then
echo "${green}Generating bindings${reset}"
dotnet $rootdir/bin/${dotnet_configuration}_${platform}/CppSharp.CLI.dll \
--gen=qjs -I$dir/.. -I$rootdir/include -o $dir/gen -m tests $dir/../*.h
$dir/bindings.lua
fi
echo "${green}Building generated binding files${reset}"

Loading…
Cancel
Save