From 92b1858a248b816aea184167e5ce3f5f16b6357d Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Tue, 3 Sep 2024 16:28:33 +0100 Subject: [PATCH] Update QuickJS test suite to use a Lua bindings definition file. --- tests/quickjs/bindings.lua | 22 ++++++++++++++++++++++ tests/quickjs/test.sh | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/quickjs/bindings.lua diff --git a/tests/quickjs/bindings.lua b/tests/quickjs/bindings.lua new file mode 100644 index 00000000..17f3030c --- /dev/null +++ b/tests/quickjs/bindings.lua @@ -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" + } diff --git a/tests/quickjs/test.sh b/tests/quickjs/test.sh index 046657c4..ef088f0a 100755 --- a/tests/quickjs/test.sh +++ b/tests/quickjs/test.sh @@ -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}"