From c112b64254a0f19d5bc8bf9dd28405ac7bb16ca3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 21:31:10 +0000 Subject: [PATCH 1/5] Initial plan From ee8a55daaa99561a0043ace0b61a3fa76698f7cb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 21:40:58 +0000 Subject: [PATCH 2/5] Initial state - no changes yet Agent-Logs-Url: https://github.com/kunitoki/LuaBridge3/sessions/0b371b0f-d95d-4e8a-9513-8514e6daa460 Co-authored-by: kunitoki <707032+kunitoki@users.noreply.github.com> --- Build/CTestTestfile.cmake | 9 + Build/DartConfiguration.tcl | 109 ++++++ Build/Source/cmake_install.cmake | 54 +++ Build/Tests/CTestTestfile.cmake | 57 ++++ .../Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake | 6 + .../Tests/Lua/LuaJIT.2.1/cmake_install.cmake | 83 +++++ Build/Tests/cmake_install.cmake | 58 ++++ Build/Tests/ravi/CTestTestfile.cmake | 8 + Build/Tests/ravi/cmake_install.cmake | 149 ++++++++ Build/Tests/ravi/lua-config.cmake | 61 ++++ Build/Tests/ravi/mir/CTestTestfile.cmake | 6 + Build/Tests/ravi/mir/cmake_install.cmake | 69 ++++ Build/Tests/ravi/ravi-config.h | 8 + Build/Tests/ravi/ravi-env.sh | 5 + Build/Tests/ravi/ravicomp/CTestTestfile.cmake | 6 + Build/Tests/ravi/ravicomp/cmake_install.cmake | 80 +++++ Build/Tests/ravi/ravicomp/ravicomp_export.h | 43 +++ .../ThirdParty/googletest/CTestTestfile.cmake | 7 + .../ThirdParty/googletest/cmake_install.cmake | 55 +++ .../googletest/googlemock/CTestTestfile.cmake | 7 + .../googletest/googlemock/cmake_install.cmake | 76 +++++ .../googletest/googletest/CTestTestfile.cmake | 6 + .../googletest/googletest/cmake_install.cmake | 100 ++++++ .../googletest/generated/GTestConfig.cmake | 37 ++ .../generated/GTestConfigVersion.cmake | 43 +++ .../googletest/googletest/generated/gmock.pc | 10 + .../googletest/generated/gmock_main.pc | 10 + .../googletest/googletest/generated/gtest.pc | 9 + .../googletest/generated/gtest_main.pc | 10 + .../_deps/backward-build/CTestTestfile.cmake | 6 + .../_deps/backward-build/cmake_install.cmake | 58 ++++ Build/_deps/backward-src | 1 + Build/_deps/backward-subbuild/CMakeLists.txt | 42 +++ .../backward-populate-build | 0 .../backward-populate-configure | 0 .../backward-populate-done | 0 .../backward-populate-download | 0 .../backward-populate-gitclone-lastrun.txt | 15 + .../backward-populate-gitinfo.txt | 15 + .../backward-populate-install | 0 .../backward-populate-mkdir | 0 .../backward-populate-patch | 0 .../backward-populate-patch-info.txt | 6 + .../backward-populate-test | 0 .../backward-populate-update-info.txt | 7 + .../tmp/backward-populate-cfgcmd.txt | 1 + .../tmp/backward-populate-gitclone.cmake | 87 +++++ .../tmp/backward-populate-gitupdate.cmake | 317 ++++++++++++++++++ .../tmp/backward-populate-mkdirs.cmake | 27 ++ .../backward-subbuild/cmake_install.cmake | 61 ++++ Build/cmake_install.cmake | 74 ++++ 51 files changed, 1898 insertions(+) create mode 100644 Build/CTestTestfile.cmake create mode 100644 Build/DartConfiguration.tcl create mode 100644 Build/Source/cmake_install.cmake create mode 100644 Build/Tests/CTestTestfile.cmake create mode 100644 Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake create mode 100644 Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake create mode 100644 Build/Tests/cmake_install.cmake create mode 100644 Build/Tests/ravi/CTestTestfile.cmake create mode 100644 Build/Tests/ravi/cmake_install.cmake create mode 100644 Build/Tests/ravi/lua-config.cmake create mode 100644 Build/Tests/ravi/mir/CTestTestfile.cmake create mode 100644 Build/Tests/ravi/mir/cmake_install.cmake create mode 100644 Build/Tests/ravi/ravi-config.h create mode 100644 Build/Tests/ravi/ravi-env.sh create mode 100644 Build/Tests/ravi/ravicomp/CTestTestfile.cmake create mode 100644 Build/Tests/ravi/ravicomp/cmake_install.cmake create mode 100644 Build/Tests/ravi/ravicomp/ravicomp_export.h create mode 100644 Build/ThirdParty/googletest/CTestTestfile.cmake create mode 100644 Build/ThirdParty/googletest/cmake_install.cmake create mode 100644 Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake create mode 100644 Build/ThirdParty/googletest/googlemock/cmake_install.cmake create mode 100644 Build/ThirdParty/googletest/googletest/CTestTestfile.cmake create mode 100644 Build/ThirdParty/googletest/googletest/cmake_install.cmake create mode 100644 Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake create mode 100644 Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake create mode 100644 Build/ThirdParty/googletest/googletest/generated/gmock.pc create mode 100644 Build/ThirdParty/googletest/googletest/generated/gmock_main.pc create mode 100644 Build/ThirdParty/googletest/googletest/generated/gtest.pc create mode 100644 Build/ThirdParty/googletest/googletest/generated/gtest_main.pc create mode 100644 Build/_deps/backward-build/CTestTestfile.cmake create mode 100644 Build/_deps/backward-build/cmake_install.cmake create mode 160000 Build/_deps/backward-src create mode 100644 Build/_deps/backward-subbuild/CMakeLists.txt create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-build create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-configure create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-done create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-download create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-install create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-mkdir create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-test create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake create mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake create mode 100644 Build/_deps/backward-subbuild/cmake_install.cmake create mode 100644 Build/cmake_install.cmake diff --git a/Build/CTestTestfile.cmake b/Build/CTestTestfile.cmake new file mode 100644 index 00000000..ee09b63f --- /dev/null +++ b/Build/CTestTestfile.cmake @@ -0,0 +1,9 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3 +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. +subdirs("Source") +subdirs("ThirdParty/googletest") +subdirs("Tests") diff --git a/Build/DartConfiguration.tcl b/Build/DartConfiguration.tcl new file mode 100644 index 00000000..f4e94593 --- /dev/null +++ b/Build/DartConfiguration.tcl @@ -0,0 +1,109 @@ +# This file is configured by CMake automatically as DartConfiguration.tcl +# If you choose not to use CMake, this file may be hand configured, by +# filling in the required variables. + + +# Configuration directories and files +SourceDirectory: /home/runner/work/LuaBridge3/LuaBridge3 +BuildDirectory: /home/runner/work/LuaBridge3/LuaBridge3/Build + +# Where to place the cost data store +CostDataFile: + +# Site is something like machine.domain, i.e. pragmatic.crd +Site: runnervmrg6be + +# Build name is osname-revision-compiler, i.e. Linux-2.4.2-2smp-c++ +BuildName: Linux-c++ + +# Subprojects +LabelsForSubprojects: + +# Submission information +SubmitURL: http:// +SubmitInactivityTimeout: + +# Dashboard start time +NightlyStartTime: 00:00:00 EDT + +# Commands for the build/test/submit cycle +ConfigureCommand: "/usr/local/bin/cmake" "/home/runner/work/LuaBridge3/LuaBridge3" +MakeCommand: /usr/local/bin/cmake --build . --config "${CTEST_CONFIGURATION_TYPE}" +DefaultCTestConfigurationType: Release + +# version control +UpdateVersionOnly: + +# CVS options +# Default is "-d -P -A" +CVSCommand: +CVSUpdateOptions: + +# Subversion options +SVNCommand: +SVNOptions: +SVNUpdateOptions: + +# Git options +GITCommand: /usr/bin/git +GITInitSubmodules: +GITUpdateOptions: +GITUpdateCustom: + +# Perforce options +P4Command: +P4Client: +P4Options: +P4UpdateOptions: +P4UpdateCustom: + +# Generic update command +UpdateCommand: /usr/bin/git +UpdateOptions: +UpdateType: git + +# Compiler info +Compiler: /usr/bin/c++ +CompilerVersion: 13.3.0 + +# Dynamic analysis (MemCheck) +PurifyCommand: +ValgrindCommand: +ValgrindCommandOptions: +DrMemoryCommand: +DrMemoryCommandOptions: +CudaSanitizerCommand: +CudaSanitizerCommandOptions: +MemoryCheckType: +MemoryCheckSanitizerOptions: +MemoryCheckCommand: MEMORYCHECK_COMMAND-NOTFOUND +MemoryCheckCommandOptions: +MemoryCheckSuppressionFile: + +# Coverage +CoverageCommand: /usr/bin/gcov +CoverageExtraFlags: -l + +# Testing options +# TimeOut is the amount of time in seconds to wait for processes +# to complete during testing. After TimeOut seconds, the +# process will be summarily terminated. +# Currently set to 25 minutes +TimeOut: 1500 + +# During parallel testing CTest will not start a new test if doing +# so would cause the system load to exceed this value. +TestLoad: + +TLSVerify: +TLSVersion: + +UseLaunchers: +CurlOptions: +# warning, if you add new options here that have to do with submit, +# you have to update cmCTestSubmitCommand.cxx + +# For CTest submissions that timeout, these options +# specify behavior for retrying the submission +CTestSubmitRetryDelay: 5 +CTestSubmitRetryCount: 3 diff --git a/Build/Source/cmake_install.cmake b/Build/Source/cmake_install.cmake new file mode 100644 index 00000000..10153543 --- /dev/null +++ b/Build/Source/cmake_install.cmake @@ -0,0 +1,54 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Source + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/LuaBridge3" TYPE DIRECTORY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Source/LuaBridge") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Source/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/Tests/CTestTestfile.cmake b/Build/Tests/CTestTestfile.cmake new file mode 100644 index 00000000..b6a7a3b9 --- /dev/null +++ b/Build/Tests/CTestTestfile.cmake @@ -0,0 +1,57 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. +add_test(LuaBridgeTests51 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51") +set_tests_properties(LuaBridgeTests51 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;370;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests51LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51LuaC") +set_tests_properties(LuaBridgeTests51LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;371;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests51Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51Noexcept") +set_tests_properties(LuaBridgeTests51Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;372;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests51LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51LuaCNoexcept") +set_tests_properties(LuaBridgeTests51LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;373;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests52 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52") +set_tests_properties(LuaBridgeTests52 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;375;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests52LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52LuaC") +set_tests_properties(LuaBridgeTests52LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;376;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests52Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52Noexcept") +set_tests_properties(LuaBridgeTests52Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;377;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests52LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52LuaCNoexcept") +set_tests_properties(LuaBridgeTests52LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;378;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests53 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53") +set_tests_properties(LuaBridgeTests53 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;380;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests53LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53LuaC") +set_tests_properties(LuaBridgeTests53LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;381;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests53Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53Noexcept") +set_tests_properties(LuaBridgeTests53Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;382;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests53LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53LuaCNoexcept") +set_tests_properties(LuaBridgeTests53LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;383;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests54 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54") +set_tests_properties(LuaBridgeTests54 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;385;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests54LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54LuaC") +set_tests_properties(LuaBridgeTests54LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;386;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests54Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54Noexcept") +set_tests_properties(LuaBridgeTests54Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;387;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests54LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54LuaCNoexcept") +set_tests_properties(LuaBridgeTests54LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;388;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests55 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55") +set_tests_properties(LuaBridgeTests55 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;390;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests55LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55LuaC") +set_tests_properties(LuaBridgeTests55LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;391;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests55Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55Noexcept") +set_tests_properties(LuaBridgeTests55Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;392;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTests55LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55LuaCNoexcept") +set_tests_properties(LuaBridgeTests55LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;393;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTestsLuaJIT "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsLuaJIT") +set_tests_properties(LuaBridgeTestsLuaJIT PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;395;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTestsLuaJITNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsLuaJITNoexcept") +set_tests_properties(LuaBridgeTestsLuaJITNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;396;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTestsLuau "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsLuau") +set_tests_properties(LuaBridgeTestsLuau PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;398;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +add_test(LuaBridgeTestsRavi "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsRavi") +set_tests_properties(LuaBridgeTestsRavi PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;401;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") +subdirs("Lua/LuaJIT.2.1") +subdirs("ravi") +subdirs("../_deps/backward-build") diff --git a/Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake b/Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake new file mode 100644 index 00000000..7c705dde --- /dev/null +++ b/Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake @@ -0,0 +1,6 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1 +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1 +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake b/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake new file mode 100644 index 00000000..3247f843 --- /dev/null +++ b/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake @@ -0,0 +1,83 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES + "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/luaconf.h" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lua.h" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lauxlib.h" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lualib.h" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lua.hpp" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/luajit.h" + ) +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/lua/5.1/jit" TYPE FILE FILES + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/bc.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/v.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dump.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_x86.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_x64.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_arm.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_ppc.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mips.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mipsel.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/bcsave.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/vmdef.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/p.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/zone.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_arm64.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_arm64be.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mips64.lua" + "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mips64el.lua" + ) +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/Tests/cmake_install.cmake b/Build/Tests/cmake_install.cmake new file mode 100644 index 00000000..682c81b8 --- /dev/null +++ b/Build/Tests/cmake_install.cmake @@ -0,0 +1,58 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake") + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/cmake_install.cmake") + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build/cmake_install.cmake") + +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/Tests/ravi/CTestTestfile.cmake b/Build/Tests/ravi/CTestTestfile.cmake new file mode 100644 index 00000000..3feee56f --- /dev/null +++ b/Build/Tests/ravi/CTestTestfile.cmake @@ -0,0 +1,8 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. +subdirs("mir") +subdirs("ravicomp") diff --git a/Build/Tests/ravi/cmake_install.cmake b/Build/Tests/ravi/cmake_install.cmake new file mode 100644 index 00000000..26de010d --- /dev/null +++ b/Build/Tests/ravi/cmake_install.cmake @@ -0,0 +1,149 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ravi" TYPE FILE FILES + "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/lua.h" + "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/luaconf.h" + "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/lualib.h" + "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/lauxlib.h" + ) +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so") + file(RPATH_CHECK + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" + RPATH "") + endif() + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/libravi.so") + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so") + file(RPATH_CHANGE + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" + OLD_RPATH "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir:/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp:" + NEW_RPATH "") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so") + endif() + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi") + file(RPATH_CHECK + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" + RPATH "") + endif() + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravi") + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi") + file(RPATH_CHANGE + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" + OLD_RPATH "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi:/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir:/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp:" + NEW_RPATH "") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi") + endif() + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug") + file(RPATH_CHECK + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug" + RPATH "") + endif() + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravidebug") + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug") + endif() + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s") + file(RPATH_CHECK + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s" + RPATH "") + endif() + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravi_s") + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s") + endif() + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravi-env.sh") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/cmake" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/lua-config.cmake") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir/cmake_install.cmake") + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/cmake_install.cmake") + +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/Tests/ravi/lua-config.cmake b/Build/Tests/ravi/lua-config.cmake new file mode 100644 index 00000000..5873d954 --- /dev/null +++ b/Build/Tests/ravi/lua-config.cmake @@ -0,0 +1,61 @@ +find_path(LUA_INCLUDE_DIR lua.h + PATHS + /usr/local/include/ravi + ) + +find_library(LUA_LIBRARIES + NAMES libravi libravi.so libravi.dylib + PATHS + /usr/local/lib + ) + +find_program(LUA_EXE + NAMES ravi_s + PATHS + /usr/local/bin + ) + +# LUA_INCDIR - place where lua headers exist +set(LUA_INCDIR ${LUA_INCLUDE_DIR}) + +# LIBDIR - LUA_CPATH +if (WIN32) + + get_filename_component(LIBDIR + ${LUA_EXE} + DIRECTORY) + +else() + + get_filename_component(LIBDIR + ${LUA_LIBRARIES} + DIRECTORY) + +endif() + +get_filename_component(LUA_BINDIR + ${LUA_EXE} + DIRECTORY) + +# LUA_LIBDIR - place where lua native libraries exist +get_filename_component(LUA_LIBDIR + ${LUA_LIBRARIES} + DIRECTORY +) + +if (NOT WIN32) + set(LUA_LIBRARIES "${LUA_LIBRARIES};m") +endif() + +# LUALIB - the lua library to link against +set(LUALIB ${LUA_LIBRARIES}) + +# LUADIR - LUA_PATH +if (USE_LUA53) + set(LUADIR "${LUA_LIBDIR}/../share/lua/5.3") +else() + set(LUADIR "${LUA_LIBDIR}/../share/lua/5.3") +endif() + +set(LUA "${LUA_EXE}") + diff --git a/Build/Tests/ravi/mir/CTestTestfile.cmake b/Build/Tests/ravi/mir/CTestTestfile.cmake new file mode 100644 index 00000000..533ce66a --- /dev/null +++ b/Build/Tests/ravi/mir/CTestTestfile.cmake @@ -0,0 +1,6 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/mir +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/Tests/ravi/mir/cmake_install.cmake b/Build/Tests/ravi/mir/cmake_install.cmake new file mode 100644 index 00000000..62881c5e --- /dev/null +++ b/Build/Tests/ravi/mir/cmake_install.cmake @@ -0,0 +1,69 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/mir + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "mir_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so") + file(RPATH_CHECK + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so" + RPATH "") + endif() + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir/libc2mir.so") + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so") + endif() + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "mir_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/Tests/ravi/ravi-config.h b/Build/Tests/ravi/ravi-config.h new file mode 100644 index 00000000..1ba8f390 --- /dev/null +++ b/Build/Tests/ravi/ravi-config.h @@ -0,0 +1,8 @@ +#ifndef _REDUKTI_RAVI_CONFIG_H_IN_H +#define _REDUKTI_RAVI_CONFIG_H_IN_H + +/* #undef NO_LUA_DEBUG */ +#define USE_MIRJIT 1 +#define USE_RAVICOMP 1 + +#endif //_REDUKTI_RAVI_CONFIG_H_IN_H diff --git a/Build/Tests/ravi/ravi-env.sh b/Build/Tests/ravi/ravi-env.sh new file mode 100644 index 00000000..fa5f9a70 --- /dev/null +++ b/Build/Tests/ravi/ravi-env.sh @@ -0,0 +1,5 @@ +export RAVI_HOME=/usr/local +export PATH=$RAVI_HOME/bin:$PATH +export LD_LIBRARY_PATH=$RAVI_HOME/lib:$LD_LIBRARY_PATH +export LUA_PATH="$RAVI_HOME/share/lua/5.3/?.lua;$RAVI_HOME/share/lua/5.3/?/init.lua;./?.lua;./?/init.lua" +export LUA_CPATH="$RAVI_HOME/lib/?.so;$RAVI_HOME/lib/lib?.so" diff --git a/Build/Tests/ravi/ravicomp/CTestTestfile.cmake b/Build/Tests/ravi/ravicomp/CTestTestfile.cmake new file mode 100644 index 00000000..deb349eb --- /dev/null +++ b/Build/Tests/ravi/ravicomp/CTestTestfile.cmake @@ -0,0 +1,6 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/Tests/ravi/ravicomp/cmake_install.cmake b/Build/Tests/ravi/ravicomp/cmake_install.cmake new file mode 100644 index 00000000..c6db4434 --- /dev/null +++ b/Build/Tests/ravi/ravicomp/cmake_install.cmake @@ -0,0 +1,80 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ravicomp" TYPE FILE FILES + "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp/include/ravi_compiler.h" + "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp/include/ravi_api.h" + ) +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "RaviCompiler_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so") + file(RPATH_CHECK + FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so" + RPATH "") + endif() + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/libravicomp.so") + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so") + endif() + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "RaviCompiler_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ravicomp" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/ravicomp_export.h") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/Tests/ravi/ravicomp/ravicomp_export.h b/Build/Tests/ravi/ravicomp/ravicomp_export.h new file mode 100644 index 00000000..ed856fdd --- /dev/null +++ b/Build/Tests/ravi/ravicomp/ravicomp_export.h @@ -0,0 +1,43 @@ + +#ifndef RAVICOMP_EXPORT_H +#define RAVICOMP_EXPORT_H + +#ifdef RAVICOMP_STATIC_DEFINE +# define RAVICOMP_EXPORT +# define RAVICOMP_NO_EXPORT +#else +# ifndef RAVICOMP_EXPORT +# ifdef ravicomp_EXPORTS + /* We are building this library */ +# define RAVICOMP_EXPORT __attribute__((visibility("default"))) +# else + /* We are using this library */ +# define RAVICOMP_EXPORT __attribute__((visibility("default"))) +# endif +# endif + +# ifndef RAVICOMP_NO_EXPORT +# define RAVICOMP_NO_EXPORT __attribute__((visibility("hidden"))) +# endif +#endif + +#ifndef RAVICOMP_DEPRECATED +# define RAVICOMP_DEPRECATED __attribute__ ((__deprecated__)) +#endif + +#ifndef RAVICOMP_DEPRECATED_EXPORT +# define RAVICOMP_DEPRECATED_EXPORT RAVICOMP_EXPORT RAVICOMP_DEPRECATED +#endif + +#ifndef RAVICOMP_DEPRECATED_NO_EXPORT +# define RAVICOMP_DEPRECATED_NO_EXPORT RAVICOMP_NO_EXPORT RAVICOMP_DEPRECATED +#endif + +/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */ +#if 0 /* DEFINE_NO_DEPRECATED */ +# ifndef RAVICOMP_NO_DEPRECATED +# define RAVICOMP_NO_DEPRECATED +# endif +#endif + +#endif /* RAVICOMP_EXPORT_H */ diff --git a/Build/ThirdParty/googletest/CTestTestfile.cmake b/Build/ThirdParty/googletest/CTestTestfile.cmake new file mode 100644 index 00000000..4dceb998 --- /dev/null +++ b/Build/ThirdParty/googletest/CTestTestfile.cmake @@ -0,0 +1,7 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. +subdirs("googlemock") diff --git a/Build/ThirdParty/googletest/cmake_install.cmake b/Build/ThirdParty/googletest/cmake_install.cmake new file mode 100644 index 00000000..cf05e123 --- /dev/null +++ b/Build/ThirdParty/googletest/cmake_install.cmake @@ -0,0 +1,55 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for the subdirectory. + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googlemock/cmake_install.cmake") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake b/Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake new file mode 100644 index 00000000..2c0a5f1c --- /dev/null +++ b/Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake @@ -0,0 +1,7 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googlemock +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googlemock +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. +subdirs("../googletest") diff --git a/Build/ThirdParty/googletest/googlemock/cmake_install.cmake b/Build/ThirdParty/googletest/googlemock/cmake_install.cmake new file mode 100644 index 00000000..63e37551 --- /dev/null +++ b/Build/ThirdParty/googletest/googlemock/cmake_install.cmake @@ -0,0 +1,76 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googlemock + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE DIRECTORY FILES "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googlemock/include/") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgmock.a") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgmock_main.a") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gmock.pc") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/cmake_install.cmake") + +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googlemock/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/ThirdParty/googletest/googletest/CTestTestfile.cmake b/Build/ThirdParty/googletest/googletest/CTestTestfile.cmake new file mode 100644 index 00000000..2736e945 --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/CTestTestfile.cmake @@ -0,0 +1,6 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googletest +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/ThirdParty/googletest/googletest/cmake_install.cmake b/Build/ThirdParty/googletest/googletest/cmake_install.cmake new file mode 100644 index 00000000..c8eb048d --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/cmake_install.cmake @@ -0,0 +1,100 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googletest + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets.cmake") + file(DIFFERENT _cmake_export_file_changed FILES + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets.cmake" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/CMakeFiles/Export/0c08b8e77dd885bfe55a19a9659d9fc1/GTestTargets.cmake") + if(_cmake_export_file_changed) + file(GLOB _cmake_old_config_files "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets-*.cmake") + if(_cmake_old_config_files) + string(REPLACE ";" ", " _cmake_old_config_files_text "${_cmake_old_config_files}") + message(STATUS "Old export file \"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets.cmake\" will be replaced. Removing files [${_cmake_old_config_files_text}].") + unset(_cmake_old_config_files_text) + file(REMOVE ${_cmake_old_config_files}) + endif() + unset(_cmake_old_config_files) + endif() + unset(_cmake_export_file_changed) + endif() + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/CMakeFiles/Export/0c08b8e77dd885bfe55a19a9659d9fc1/GTestTargets.cmake") + if(CMAKE_INSTALL_CONFIG_NAME MATCHES "^([Dd][Ee][Bb][Uu][Gg])$") + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/CMakeFiles/Export/0c08b8e77dd885bfe55a19a9659d9fc1/GTestTargets-debug.cmake") + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest" TYPE FILE FILES + "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake" + ) +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE DIRECTORY FILES "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googletest/include/") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgtest.a") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgtest_main.a") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gtest.pc") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake b/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake new file mode 100644 index 00000000..9ab9a5ef --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake @@ -0,0 +1,37 @@ + +####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### +####### Any changes to this file will be overwritten by the next CMake run #### +####### The input file was Config.cmake.in ######## + +get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) + +macro(set_and_check _var _file) + set(${_var} "${_file}") + if(NOT EXISTS "${_file}") + message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") + endif() +endmacro() + +macro(check_required_components _NAME) + foreach(comp ${${_NAME}_FIND_COMPONENTS}) + if(NOT ${_NAME}_${comp}_FOUND) + if(${_NAME}_FIND_REQUIRED_${comp}) + set(${_NAME}_FOUND FALSE) + endif() + endif() + endforeach() +endmacro() + +#################################################################################### +include(CMakeFindDependencyMacro) +if (ON) + set(THREADS_PREFER_PTHREAD_FLAG ) + find_dependency(Threads) +endif() +if (OFF) + find_dependency(absl) + find_dependency(re2) +endif() + +include("${CMAKE_CURRENT_LIST_DIR}/GTestTargets.cmake") +check_required_components("") diff --git a/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake b/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake new file mode 100644 index 00000000..18adc9e5 --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake @@ -0,0 +1,43 @@ +# This is a basic version file for the Config-mode of find_package(). +# It is used by write_basic_package_version_file() as input file for configure_file() +# to create a version-file which can be installed along a config.cmake file. +# +# The created file sets PACKAGE_VERSION_EXACT if the current version string and +# the requested version string are exactly the same and it sets +# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version. +# The variable CVF_VERSION must be set before calling configure_file(). + +set(PACKAGE_VERSION "1.16.0") + +if (PACKAGE_FIND_VERSION_RANGE) + # Package version must be in the requested version range + if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN) + OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX))) + set(PACKAGE_VERSION_COMPATIBLE FALSE) + else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + endif() +else() + if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) + else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() + endif() +endif() + + +# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: +if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") + return() +endif() + +# check that the installed version has the same 32/64bit-ness as the one which is currently searching: +if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") + math(EXPR installedBits "8 * 8") + set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") + set(PACKAGE_VERSION_UNSUITABLE TRUE) +endif() diff --git a/Build/ThirdParty/googletest/googletest/generated/gmock.pc b/Build/ThirdParty/googletest/googletest/generated/gmock.pc new file mode 100644 index 00000000..b1a4bf87 --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/generated/gmock.pc @@ -0,0 +1,10 @@ +libdir=/usr/local/lib +includedir=/usr/local/include + +Name: gmock +Description: GoogleMock (without main() function) +Version: 1.16.0 +URL: https://github.com/google/googletest +Requires: gtest = 1.16.0 +Libs: -L${libdir} -lgmock +Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc b/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc new file mode 100644 index 00000000..4917aa31 --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc @@ -0,0 +1,10 @@ +libdir=/usr/local/lib +includedir=/usr/local/include + +Name: gmock_main +Description: GoogleMock (with main() function) +Version: 1.16.0 +URL: https://github.com/google/googletest +Requires: gmock = 1.16.0 +Libs: -L${libdir} -lgmock_main +Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/ThirdParty/googletest/googletest/generated/gtest.pc b/Build/ThirdParty/googletest/googletest/generated/gtest.pc new file mode 100644 index 00000000..1bc0b70b --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/generated/gtest.pc @@ -0,0 +1,9 @@ +libdir=/usr/local/lib +includedir=/usr/local/include + +Name: gtest +Description: GoogleTest (without main() function) +Version: 1.16.0 +URL: https://github.com/google/googletest +Libs: -L${libdir} -lgtest +Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc b/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc new file mode 100644 index 00000000..73fb5c67 --- /dev/null +++ b/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc @@ -0,0 +1,10 @@ +libdir=/usr/local/lib +includedir=/usr/local/include + +Name: gtest_main +Description: GoogleTest (with main() function) +Version: 1.16.0 +URL: https://github.com/google/googletest +Requires: gtest = 1.16.0 +Libs: -L${libdir} -lgtest_main +Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/_deps/backward-build/CTestTestfile.cmake b/Build/_deps/backward-build/CTestTestfile.cmake new file mode 100644 index 00000000..2c58b430 --- /dev/null +++ b/Build/_deps/backward-build/CTestTestfile.cmake @@ -0,0 +1,6 @@ +# CMake generated Testfile for +# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src +# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build +# +# This file includes the relevant testing commands required for +# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/_deps/backward-build/cmake_install.cmake b/Build/_deps/backward-build/cmake_install.cmake new file mode 100644 index 00000000..92e5c76a --- /dev/null +++ b/Build/_deps/backward-build/cmake_install.cmake @@ -0,0 +1,58 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src/backward.hpp") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/backward" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src/BackwardConfig.cmake") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/_deps/backward-src b/Build/_deps/backward-src new file mode 160000 index 00000000..0bfd0a07 --- /dev/null +++ b/Build/_deps/backward-src @@ -0,0 +1 @@ +Subproject commit 0bfd0a07a61551413ccd2ab9a9099af3bad40681 diff --git a/Build/_deps/backward-subbuild/CMakeLists.txt b/Build/_deps/backward-subbuild/CMakeLists.txt new file mode 100644 index 00000000..7cf31007 --- /dev/null +++ b/Build/_deps/backward-subbuild/CMakeLists.txt @@ -0,0 +1,42 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +cmake_minimum_required(VERSION 3.31.6) + +# Reject any attempt to use a toolchain file. We must not use one because +# we could be downloading it here. If the CMAKE_TOOLCHAIN_FILE environment +# variable is set, the cache variable will have been initialized from it. +unset(CMAKE_TOOLCHAIN_FILE CACHE) +unset(ENV{CMAKE_TOOLCHAIN_FILE}) + +# We name the project and the target for the ExternalProject_Add() call +# to something that will highlight to the user what we are working on if +# something goes wrong and an error message is produced. + +project(backward-populate NONE) + + +# Pass through things we've already detected in the main project to avoid +# paying the cost of redetecting them again in ExternalProject_Add() +set(GIT_EXECUTABLE [==[/usr/bin/git]==]) +set(GIT_VERSION_STRING [==[2.53.0]==]) +set_property(GLOBAL PROPERTY _CMAKE_FindGit_GIT_EXECUTABLE_VERSION + [==[/usr/bin/git;2.53.0]==] +) + + +include(ExternalProject) +ExternalProject_Add(backward-populate + "UPDATE_DISCONNECTED" "False" "GIT_REPOSITORY" "https://github.com/bombela/backward-cpp" "EXTERNALPROJECT_INTERNAL_ARGUMENT_SEPARATOR" "GIT_TAG" "master" + SOURCE_DIR "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + BINARY_DIR "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build" + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" + TEST_COMMAND "" + USES_TERMINAL_DOWNLOAD YES + USES_TERMINAL_UPDATE YES + USES_TERMINAL_PATCH YES +) + + diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-build b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-build new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-configure b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-configure new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-done b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-done new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-download b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-download new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt new file mode 100644 index 00000000..329495d5 --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt @@ -0,0 +1,15 @@ +# This is a generated file and its contents are an internal implementation detail. +# The download step will be re-executed if anything in this file changes. +# No other meaning or use of this file is supported. + +method=git +command=/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake +source_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src +work_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps +repository=https://github.com/bombela/backward-cpp +remote=origin +init_submodules=TRUE +recurse_submodules=--recursive +submodules= +CMP0097=NEW + diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt new file mode 100644 index 00000000..329495d5 --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt @@ -0,0 +1,15 @@ +# This is a generated file and its contents are an internal implementation detail. +# The download step will be re-executed if anything in this file changes. +# No other meaning or use of this file is supported. + +method=git +command=/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake +source_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src +work_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps +repository=https://github.com/bombela/backward-cpp +remote=origin +init_submodules=TRUE +recurse_submodules=--recursive +submodules= +CMP0097=NEW + diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-install b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-install new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-mkdir b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-mkdir new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt new file mode 100644 index 00000000..53e1e1e6 --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt @@ -0,0 +1,6 @@ +# This is a generated file and its contents are an internal implementation detail. +# The update step will be re-executed if anything in this file changes. +# No other meaning or use of this file is supported. + +command= +work_dir= diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-test b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-test new file mode 100644 index 00000000..e69de29b diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt new file mode 100644 index 00000000..9c8a06c9 --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt @@ -0,0 +1,7 @@ +# This is a generated file and its contents are an internal implementation detail. +# The patch step will be re-executed if anything in this file changes. +# No other meaning or use of this file is supported. + +command (connected)=/usr/local/bin/cmake;-Dcan_fetch=YES;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake +command (disconnected)=/usr/local/bin/cmake;-Dcan_fetch=NO;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake +work_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt new file mode 100644 index 00000000..6a6ed5fd --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt @@ -0,0 +1 @@ +cmd='' diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake new file mode 100644 index 00000000..44aa7619 --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake @@ -0,0 +1,87 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake + +if(EXISTS "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt" AND EXISTS "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt" AND + "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt" IS_NEWER_THAN "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt") + message(VERBOSE + "Avoiding repeated git clone, stamp file is up to date: " + "'/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt'" + ) + return() +endif() + +# Even at VERBOSE level, we don't want to see the commands executed, but +# enabling them to be shown for DEBUG may be useful to help diagnose problems. +cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level) +if(active_log_level MATCHES "DEBUG|TRACE") + set(maybe_show_command COMMAND_ECHO STDOUT) +else() + set(maybe_show_command "") +endif() + +execute_process( + COMMAND ${CMAKE_COMMAND} -E rm -rf "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + ${maybe_show_command} +) +if(error_code) + message(FATAL_ERROR "Failed to remove directory: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'") +endif() + +# try the clone 3 times in case there is an odd git clone issue +set(error_code 1) +set(number_of_tries 0) +while(error_code AND number_of_tries LESS 3) + execute_process( + COMMAND "/usr/bin/git" + clone --no-checkout --config "advice.detachedHead=false" "https://github.com/bombela/backward-cpp" "backward-src" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps" + RESULT_VARIABLE error_code + ${maybe_show_command} + ) + math(EXPR number_of_tries "${number_of_tries} + 1") +endwhile() +if(number_of_tries GREATER 1) + message(NOTICE "Had to git clone more than once: ${number_of_tries} times.") +endif() +if(error_code) + message(FATAL_ERROR "Failed to clone repository: 'https://github.com/bombela/backward-cpp'") +endif() + +execute_process( + COMMAND "/usr/bin/git" + checkout "master" -- + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + ${maybe_show_command} +) +if(error_code) + message(FATAL_ERROR "Failed to checkout tag: 'master'") +endif() + +set(init_submodules TRUE) +if(init_submodules) + execute_process( + COMMAND "/usr/bin/git" + submodule update --recursive --init + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + ${maybe_show_command} + ) +endif() +if(error_code) + message(FATAL_ERROR "Failed to update submodules in: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'") +endif() + +# Complete success, update the script-last-run stamp file: +# +execute_process( + COMMAND ${CMAKE_COMMAND} -E copy "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt" "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt" + RESULT_VARIABLE error_code + ${maybe_show_command} +) +if(error_code) + message(FATAL_ERROR "Failed to copy script-last-run stamp file: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt'") +endif() diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake new file mode 100644 index 00000000..3938eee4 --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake @@ -0,0 +1,317 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake + +# Even at VERBOSE level, we don't want to see the commands executed, but +# enabling them to be shown for DEBUG may be useful to help diagnose problems. +cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level) +if(active_log_level MATCHES "DEBUG|TRACE") + set(maybe_show_command COMMAND_ECHO STDOUT) +else() + set(maybe_show_command "") +endif() + +function(do_fetch) + message(VERBOSE "Fetching latest from the remote origin") + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git fetch --tags --force "origin" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + COMMAND_ERROR_IS_FATAL LAST + ${maybe_show_command} + ) +endfunction() + +function(get_hash_for_ref ref out_var err_var) + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git rev-parse "${ref}^0" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + OUTPUT_VARIABLE ref_hash + ERROR_VARIABLE error_msg + OUTPUT_STRIP_TRAILING_WHITESPACE + ) + if(error_code) + set(${out_var} "" PARENT_SCOPE) + else() + set(${out_var} "${ref_hash}" PARENT_SCOPE) + endif() + set(${err_var} "${error_msg}" PARENT_SCOPE) +endfunction() + +get_hash_for_ref(HEAD head_sha error_msg) +if(head_sha STREQUAL "") + message(FATAL_ERROR "Failed to get the hash for HEAD:\n${error_msg}") +endif() + +if("${can_fetch}" STREQUAL "") + set(can_fetch "YES") +endif() + +execute_process( + COMMAND "/usr/bin/git" --git-dir=.git show-ref "master" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + OUTPUT_VARIABLE show_ref_output +) +if(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/remotes/") + # Given a full remote/branch-name and we know about it already. Since + # branches can move around, we should always fetch, if permitted. + if(can_fetch) + do_fetch() + endif() + set(checkout_name "master") + +elseif(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/tags/") + # Given a tag name that we already know about. We don't know if the tag we + # have matches the remote though (tags can move), so we should fetch. As a + # special case to preserve backward compatibility, if we are already at the + # same commit as the tag we hold locally, don't do a fetch and assume the tag + # hasn't moved on the remote. + # FIXME: We should provide an option to always fetch for this case + get_hash_for_ref("master" tag_sha error_msg) + if(tag_sha STREQUAL head_sha) + message(VERBOSE "Already at requested tag: master") + return() + endif() + + if(can_fetch) + do_fetch() + endif() + set(checkout_name "master") + +elseif(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/heads/") + # Given a branch name without any remote and we already have a branch by that + # name. We might already have that branch checked out or it might be a + # different branch. It isn't fully safe to use a bare branch name without the + # remote, so do a fetch (if allowed) and replace the ref with one that + # includes the remote. + if(can_fetch) + do_fetch() + endif() + set(checkout_name "origin/master") + +else() + get_hash_for_ref("master" tag_sha error_msg) + if(tag_sha STREQUAL head_sha) + # Have the right commit checked out already + message(VERBOSE "Already at requested ref: ${tag_sha}") + return() + + elseif(tag_sha STREQUAL "") + # We don't know about this ref yet, so we have no choice but to fetch. + if(NOT can_fetch) + message(FATAL_ERROR + "Requested git ref \"master\" is not present locally, and not " + "allowed to contact remote due to UPDATE_DISCONNECTED setting." + ) + endif() + + # We deliberately swallow any error message at the default log level + # because it can be confusing for users to see a failed git command. + # That failure is being handled here, so it isn't an error. + if(NOT error_msg STREQUAL "") + message(DEBUG "${error_msg}") + endif() + do_fetch() + set(checkout_name "master") + + else() + # We have the commit, so we know we were asked to find a commit hash + # (otherwise it would have been handled further above), but we don't + # have that commit checked out yet. We don't need to fetch from the remote. + set(checkout_name "master") + if(NOT error_msg STREQUAL "") + message(WARNING "${error_msg}") + endif() + + endif() +endif() + +set(git_update_strategy "REBASE") +if(git_update_strategy STREQUAL "") + # Backward compatibility requires REBASE as the default behavior + set(git_update_strategy REBASE) +endif() + +if(git_update_strategy MATCHES "^REBASE(_CHECKOUT)?$") + # Asked to potentially try to rebase first, maybe with fallback to checkout. + # We can't if we aren't already on a branch and we shouldn't if that local + # branch isn't tracking the one we want to checkout. + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git symbolic-ref -q HEAD + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + OUTPUT_VARIABLE current_branch + OUTPUT_STRIP_TRAILING_WHITESPACE + # Don't test for an error. If this isn't a branch, we get a non-zero error + # code but empty output. + ) + + if(current_branch STREQUAL "") + # Not on a branch, checkout is the only sensible option since any rebase + # would always fail (and backward compatibility requires us to checkout in + # this situation) + set(git_update_strategy CHECKOUT) + + else() + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git for-each-ref "--format=%(upstream:short)" "${current_branch}" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + OUTPUT_VARIABLE upstream_branch + OUTPUT_STRIP_TRAILING_WHITESPACE + COMMAND_ERROR_IS_FATAL ANY # There is no error if no upstream is set + ) + if(NOT upstream_branch STREQUAL checkout_name) + # Not safe to rebase when asked to checkout a different branch to the one + # we are tracking. If we did rebase, we could end up with arbitrary + # commits added to the ref we were asked to checkout if the current local + # branch happens to be able to rebase onto the target branch. There would + # be no error message and the user wouldn't know this was occurring. + set(git_update_strategy CHECKOUT) + endif() + + endif() +elseif(NOT git_update_strategy STREQUAL "CHECKOUT") + message(FATAL_ERROR "Unsupported git update strategy: ${git_update_strategy}") +endif() + + +# Check if stash is needed +execute_process( + COMMAND "/usr/bin/git" --git-dir=.git status --porcelain + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + OUTPUT_VARIABLE repo_status +) +if(error_code) + message(FATAL_ERROR "Failed to get the status") +endif() +string(LENGTH "${repo_status}" need_stash) + +# If not in clean state, stash changes in order to be able to perform a +# rebase or checkout without losing those changes permanently +if(need_stash) + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git stash save --quiet;--include-untracked + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + COMMAND_ERROR_IS_FATAL ANY + ${maybe_show_command} + ) +endif() + +if(git_update_strategy STREQUAL "CHECKOUT") + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git checkout "${checkout_name}" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + COMMAND_ERROR_IS_FATAL ANY + ${maybe_show_command} + ) +else() + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git rebase "${checkout_name}" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + OUTPUT_VARIABLE rebase_output + ERROR_VARIABLE rebase_output + ) + if(error_code) + # Rebase failed, undo the rebase attempt before continuing + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git rebase --abort + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + ${maybe_show_command} + ) + + if(NOT git_update_strategy STREQUAL "REBASE_CHECKOUT") + # Not allowed to do a checkout as a fallback, so cannot proceed + if(need_stash) + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git stash pop --index --quiet + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + ${maybe_show_command} + ) + endif() + message(FATAL_ERROR "\nFailed to rebase in: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'." + "\nOutput from the attempted rebase follows:" + "\n${rebase_output}" + "\n\nYou will have to resolve the conflicts manually") + endif() + + # Fall back to checkout. We create an annotated tag so that the user + # can manually inspect the situation and revert if required. + # We can't log the failed rebase output because MSVC sees it and + # intervenes, causing the build to fail even though it completes. + # Write it to a file instead. + string(TIMESTAMP tag_timestamp "%Y%m%dT%H%M%S" UTC) + set(tag_name _cmake_ExternalProject_moved_from_here_${tag_timestamp}Z) + set(error_log_file ${CMAKE_CURRENT_LIST_DIR}/rebase_error_${tag_timestamp}Z.log) + file(WRITE ${error_log_file} "${rebase_output}") + message(WARNING "Rebase failed, output has been saved to ${error_log_file}" + "\nFalling back to checkout, previous commit tagged as ${tag_name}") + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git tag -a + -m "ExternalProject attempting to move from here to ${checkout_name}" + ${tag_name} + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + COMMAND_ERROR_IS_FATAL ANY + ${maybe_show_command} + ) + + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git checkout "${checkout_name}" + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + COMMAND_ERROR_IS_FATAL ANY + ${maybe_show_command} + ) + endif() +endif() + +if(need_stash) + # Put back the stashed changes + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git stash pop --index --quiet + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + ${maybe_show_command} + ) + if(error_code) + # Stash pop --index failed: Try again dropping the index + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git reset --hard --quiet + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + ${maybe_show_command} + ) + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git stash pop --quiet + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + RESULT_VARIABLE error_code + ${maybe_show_command} + ) + if(error_code) + # Stash pop failed: Restore previous state. + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git reset --hard --quiet ${head_sha} + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + ${maybe_show_command} + ) + execute_process( + COMMAND "/usr/bin/git" --git-dir=.git stash pop --index --quiet + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + ${maybe_show_command} + ) + message(FATAL_ERROR "\nFailed to unstash changes in: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'." + "\nYou will have to resolve the conflicts manually") + endif() + endif() +endif() + +set(init_submodules "TRUE") +if(init_submodules) + execute_process( + COMMAND "/usr/bin/git" + --git-dir=.git + submodule update --recursive --init + WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" + COMMAND_ERROR_IS_FATAL ANY + ${maybe_show_command} + ) +endif() diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake new file mode 100644 index 00000000..725b4178 --- /dev/null +++ b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake @@ -0,0 +1,27 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake + +# If CMAKE_DISABLE_SOURCE_CHANGES is set to true and the source directory is an +# existing directory in our source tree, calling file(MAKE_DIRECTORY) on it +# would cause a fatal error, even though it would be a no-op. +if(NOT EXISTS "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src") + file(MAKE_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src") +endif() +file(MAKE_DIRECTORY + "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src" + "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp" +) + +set(configSubDirs ) +foreach(subDir IN LISTS configSubDirs) + file(MAKE_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/${subDir}") +endforeach() +if(cfgdir) + file(MAKE_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp${cfgdir}") # cfgdir has leading slash +endif() diff --git a/Build/_deps/backward-subbuild/cmake_install.cmake b/Build/_deps/backward-subbuild/cmake_install.cmake new file mode 100644 index 00000000..bba0d024 --- /dev/null +++ b/Build/_deps/backward-subbuild/cmake_install.cmake @@ -0,0 +1,61 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() +if(CMAKE_INSTALL_COMPONENT) + if(CMAKE_INSTALL_COMPONENT MATCHES "^[a-zA-Z0-9_.+-]+$") + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") + else() + string(MD5 CMAKE_INST_COMP_HASH "${CMAKE_INSTALL_COMPONENT}") + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INST_COMP_HASH}.txt") + unset(CMAKE_INST_COMP_HASH) + endif() +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() diff --git a/Build/cmake_install.cmake b/Build/cmake_install.cmake new file mode 100644 index 00000000..d8ef66a4 --- /dev/null +++ b/Build/cmake_install.cmake @@ -0,0 +1,74 @@ +# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set path to fallback-tool for dependency-resolution. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Source/cmake_install.cmake") + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/cmake_install.cmake") + include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/cmake_install.cmake") + +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +if(CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/install_local_manifest.txt" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() +if(CMAKE_INSTALL_COMPONENT) + if(CMAKE_INSTALL_COMPONENT MATCHES "^[a-zA-Z0-9_.+-]+$") + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") + else() + string(MD5 CMAKE_INST_COMP_HASH "${CMAKE_INSTALL_COMPONENT}") + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INST_COMP_HASH}.txt") + unset(CMAKE_INST_COMP_HASH) + endif() +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") +endif() From 3388077f0d55ef78d3f354d4bddec2eead9d62e2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 21:53:30 +0000 Subject: [PATCH 3/5] Add support for addStaticIndexMetaMethod and addStaticNewIndexMetaMethod Agent-Logs-Url: https://github.com/kunitoki/LuaBridge3/sessions/0b371b0f-d95d-4e8a-9513-8514e6daa460 Co-authored-by: kunitoki <707032+kunitoki@users.noreply.github.com> --- .gitignore | 1 + Distribution/LuaBridge/LuaBridge.h | 119 ++++++++++++++++++++++ Source/LuaBridge/detail/CFunctions.h | 52 ++++++++++ Source/LuaBridge/detail/ClassInfo.h | 18 ++++ Source/LuaBridge/detail/Namespace.h | 70 +++++++++++++ Tests/Source/ClassExtensibleTests.cpp | 139 ++++++++++++++++++++++++++ 6 files changed, 399 insertions(+) diff --git a/.gitignore b/.gitignore index 948f96c2..ec4c7da8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ Makefile CMakeCache.txt CMakeFiles/ build/ +Build/ *.dir/ *.sln *.vcxproj diff --git a/Distribution/LuaBridge/LuaBridge.h b/Distribution/LuaBridge/LuaBridge.h index 96fc33ac..8e373dd8 100644 --- a/Distribution/LuaBridge/LuaBridge.h +++ b/Distribution/LuaBridge/LuaBridge.h @@ -2746,6 +2746,16 @@ template ().find_first_of('.')> return reinterpret_cast(0x8108); } +[[nodiscard]] inline const void* getStaticIndexFallbackKey() +{ + return reinterpret_cast(0x81cc); +} + +[[nodiscard]] inline const void* getStaticNewIndexFallbackKey() +{ + return reinterpret_cast(0x8109); +} + template [[nodiscard]] const void* getStaticRegistryKey() noexcept { @@ -6188,6 +6198,30 @@ inline std::optional try_call_index_fallback(lua_State* L) return std::nullopt; } +inline std::optional try_call_static_index_fallback(lua_State* L) +{ + LUABRIDGE_ASSERT(lua_istable(L, -1)); + + lua_rawgetp_x(L, -1, getStaticIndexFallbackKey()); + if (! lua_iscfunction(L, -1)) + { + lua_pop(L, 1); + return std::nullopt; + } + + lua_pushvalue(L, 2); + lua_call(L, 1, 1); + + if (! lua_isnoneornil(L, -1)) + { + lua_remove(L, -2); + return 1; + } + + lua_pop(L, 1); + return std::nullopt; +} + template inline std::optional try_call_index_extensible(lua_State* L, const char* key) { @@ -6239,6 +6273,12 @@ inline int index_metamethod(lua_State* L) if (auto result = try_call_index_fallback(L)) return *result; } + else + { + + if (auto result = try_call_static_index_fallback(L)) + return *result; + } if (lua_istable(L, 1)) { @@ -6354,6 +6394,24 @@ inline std::optional try_call_newindex_fallback(lua_State* L) return 0; } +inline std::optional try_call_static_newindex_fallback(lua_State* L) +{ + LUABRIDGE_ASSERT(lua_istable(L, -1)); + + lua_rawgetp_x(L, -1, getStaticNewIndexFallbackKey()); + if (! lua_iscfunction(L, -1)) + { + lua_pop(L, 1); + return std::nullopt; + } + + lua_pushvalue(L, 2); + lua_pushvalue(L, 3); + lua_call(L, 2, 0); + + return 0; +} + inline std::optional try_call_newindex_extensible(lua_State* L, const char* key) { LUABRIDGE_ASSERT(key != nullptr); @@ -6525,6 +6583,9 @@ inline int newindex_metamethod(lua_State* L) else { + if (auto result = try_call_static_newindex_fallback(L)) + return *result; + if (options.test(extensibleClass)) { if (auto result = try_call_newindex_extensible(L, key)) @@ -9600,6 +9661,64 @@ class Namespace : public detail::Registrar return *this; } + template + auto addStaticIndexMetaMethod(Function function) + -> std::enable_if_t + && std::is_invocable_v, Class&> + { + using FnType = decltype(function); + + assertStackState(); + + lua_newuserdata_aligned(L, std::move(function)); + lua_pushcclosure_x(L, &detail::invoke_proxy_functor, "__index", 1); + lua_rawsetp_x(L, -2, detail::getStaticIndexFallbackKey()); + + return *this; + } + + Class& addStaticIndexMetaMethod(LuaRef (*idxf)(const LuaRef&, lua_State*)) + { + using FnType = decltype(idxf); + + assertStackState(); + + lua_pushlightuserdata(L, reinterpret_cast(idxf)); + lua_pushcclosure_x(L, &detail::invoke_proxy_function, "__index", 1); + lua_rawsetp_x(L, -2, detail::getStaticIndexFallbackKey()); + + return *this; + } + + template + auto addStaticNewIndexMetaMethod(Function function) + -> std::enable_if_t + && std::is_invocable_v, Class&> + { + using FnType = decltype(function); + + assertStackState(); + + lua_newuserdata_aligned(L, std::move(function)); + lua_pushcclosure_x(L, &detail::invoke_proxy_functor, "__newindex", 1); + lua_rawsetp_x(L, -2, detail::getStaticNewIndexFallbackKey()); + + return *this; + } + + Class& addStaticNewIndexMetaMethod(LuaRef (*idxf)(const LuaRef&, const LuaRef&, lua_State*)) + { + using FnType = decltype(idxf); + + assertStackState(); + + lua_pushlightuserdata(L, reinterpret_cast(idxf)); + lua_pushcclosure_x(L, &detail::invoke_proxy_function, "__newindex", 1); + lua_rawsetp_x(L, -2, detail::getStaticNewIndexFallbackKey()); + + return *this; + } + template Class& addProperty(const char* name, Getter getter, bool) = delete; diff --git a/Source/LuaBridge/detail/CFunctions.h b/Source/LuaBridge/detail/CFunctions.h index 65d6ac85..9cdc95b4 100644 --- a/Source/LuaBridge/detail/CFunctions.h +++ b/Source/LuaBridge/detail/CFunctions.h @@ -240,6 +240,30 @@ inline std::optional try_call_index_fallback(lua_State* L) return std::nullopt; } +inline std::optional try_call_static_index_fallback(lua_State* L) +{ + LUABRIDGE_ASSERT(lua_istable(L, -1)); // Stack: mt + + lua_rawgetp_x(L, -1, getStaticIndexFallbackKey()); // Stack: mt, ifb (may be nil) + if (! lua_iscfunction(L, -1)) + { + lua_pop(L, 1); // Stack: mt + return std::nullopt; + } + + lua_pushvalue(L, 2); // Stack: mt, ifb, arg1 (key only, no self for static) + lua_call(L, 1, 1); // Stack: mt, ifbresult + + if (! lua_isnoneornil(L, -1)) + { + lua_remove(L, -2); // Stack: ifbresult + return 1; + } + + lua_pop(L, 1); // Stack: mt + return std::nullopt; +} + template inline std::optional try_call_index_extensible(lua_State* L, const char* key) { @@ -292,6 +316,12 @@ inline int index_metamethod(lua_State* L) if (auto result = try_call_index_fallback(L)) return *result; } + else + { + // Repeat the lookup in the static index fallback + if (auto result = try_call_static_index_fallback(L)) + return *result; + } // Search into self or metatable if (lua_istable(L, 1)) @@ -424,6 +454,24 @@ inline std::optional try_call_newindex_fallback(lua_State* L) return 0; } +inline std::optional try_call_static_newindex_fallback(lua_State* L) +{ + LUABRIDGE_ASSERT(lua_istable(L, -1)); // Stack: mt + + lua_rawgetp_x(L, -1, getStaticNewIndexFallbackKey()); // Stack: mt, nifb (may be nil) + if (! lua_iscfunction(L, -1)) + { + lua_pop(L, 1); // Stack: mt + return std::nullopt; + } + + lua_pushvalue(L, 2); // stack: mt, nifb, arg1 (key only, no self for static) + lua_pushvalue(L, 3); // stack: mt, nifb, arg1, arg2 (value) + lua_call(L, 2, 0); // stack: mt + + return 0; +} + inline std::optional try_call_newindex_extensible(lua_State* L, const char* key) { LUABRIDGE_ASSERT(key != nullptr); @@ -610,6 +658,10 @@ inline int newindex_metamethod(lua_State* L) } else { + // Try in the static new index fallback + if (auto result = try_call_static_newindex_fallback(L)) + return *result; + // Try in the new index extensible if (options.test(extensibleClass)) { diff --git a/Source/LuaBridge/detail/ClassInfo.h b/Source/LuaBridge/detail/ClassInfo.h index acd11723..b1ee1aa8 100644 --- a/Source/LuaBridge/detail/ClassInfo.h +++ b/Source/LuaBridge/detail/ClassInfo.h @@ -165,6 +165,24 @@ template ().find_first_of('.')> return reinterpret_cast(0x8108); } +//================================================================================================= +/** + * The key of the static index fall back in another metatable. + */ +[[nodiscard]] inline const void* getStaticIndexFallbackKey() +{ + return reinterpret_cast(0x81cc); +} + +//================================================================================================= +/** + * The key of the static new index fall back in another metatable. + */ +[[nodiscard]] inline const void* getStaticNewIndexFallbackKey() +{ + return reinterpret_cast(0x8109); +} + //================================================================================================= /** * @brief Get the key for the static table in the Lua registry. diff --git a/Source/LuaBridge/detail/Namespace.h b/Source/LuaBridge/detail/Namespace.h index 74455ffa..3932710c 100644 --- a/Source/LuaBridge/detail/Namespace.h +++ b/Source/LuaBridge/detail/Namespace.h @@ -551,6 +551,76 @@ class Namespace : public detail::Registrar return *this; } + //========================================================================================= + /** + * @brief Add a static index metamethod function fallback that is triggered when no result is found in static functions, properties or any other static members. + * + * Let the user define a fallback index (__index) metamethod for the static class table. + */ + template + auto addStaticIndexMetaMethod(Function function) + -> std::enable_if_t + && std::is_invocable_v, Class&> + { + using FnType = decltype(function); + + assertStackState(); // Stack: const table (co), class table (cl), static table (st) + + lua_newuserdata_aligned(L, std::move(function)); // Stack: co, cl, st, function userdata (ud) + lua_pushcclosure_x(L, &detail::invoke_proxy_functor, "__index", 1); // Stack: co, cl, st, function + lua_rawsetp_x(L, -2, detail::getStaticIndexFallbackKey()); + + return *this; + } + + Class& addStaticIndexMetaMethod(LuaRef (*idxf)(const LuaRef&, lua_State*)) + { + using FnType = decltype(idxf); + + assertStackState(); // Stack: const table (co), class table (cl), static table (st) + + lua_pushlightuserdata(L, reinterpret_cast(idxf)); // Stack: co, cl, st, function ptr + lua_pushcclosure_x(L, &detail::invoke_proxy_function, "__index", 1); // Stack: co, cl, st, function + lua_rawsetp_x(L, -2, detail::getStaticIndexFallbackKey()); + + return *this; + } + + //========================================================================================= + /** + * @brief Add a static new index metamethod function fallback that is triggered when no result is found in static functions, properties or any other static members. + * + * Let the user define a fallback new index (__newindex) metamethod for the static class table. + */ + template + auto addStaticNewIndexMetaMethod(Function function) + -> std::enable_if_t + && std::is_invocable_v, Class&> + { + using FnType = decltype(function); + + assertStackState(); // Stack: const table (co), class table (cl), static table (st) + + lua_newuserdata_aligned(L, std::move(function)); // Stack: co, cl, st, function userdata (ud) + lua_pushcclosure_x(L, &detail::invoke_proxy_functor, "__newindex", 1); // Stack: co, cl, st, function + lua_rawsetp_x(L, -2, detail::getStaticNewIndexFallbackKey()); + + return *this; + } + + Class& addStaticNewIndexMetaMethod(LuaRef (*idxf)(const LuaRef&, const LuaRef&, lua_State*)) + { + using FnType = decltype(idxf); + + assertStackState(); // Stack: const table (co), class table (cl), static table (st) + + lua_pushlightuserdata(L, reinterpret_cast(idxf)); // Stack: co, cl, st, function ptr + lua_pushcclosure_x(L, &detail::invoke_proxy_function, "__newindex", 1); // Stack: co, cl, st, function + lua_rawsetp_x(L, -2, detail::getStaticNewIndexFallbackKey()); + + return *this; + } + //========================================================================================= /** * @brief Add or replace a property member, by constructible by std::function. diff --git a/Tests/Source/ClassExtensibleTests.cpp b/Tests/Source/ClassExtensibleTests.cpp index ba406080..2dbba975 100644 --- a/Tests/Source/ClassExtensibleTests.cpp +++ b/Tests/Source/ClassExtensibleTests.cpp @@ -883,3 +883,142 @@ TEST_F(ClassExtensibleTests, MetatablePrinting) EXPECT_FALSE(res.unsafe_cast().empty()); } #endif + +namespace { +struct StaticMetamethodClass +{ + StaticMetamethodClass() = default; +}; + +luabridge::LuaRef staticIndexFallbackFunction(const luabridge::LuaRef& key, lua_State* L) +{ + if (key.tostring() == "xyz") + { + if (!luabridge::push(L, 42)) + lua_pushnil(L); + + return luabridge::LuaRef::fromStack(L); + } + + return luabridge::LuaRef(L); +} + +luabridge::LuaRef staticNewIndexFallbackFunction(const luabridge::LuaRef& key, const luabridge::LuaRef& value, lua_State* L) +{ + return value; +} +} // namespace + +TEST_F(ClassExtensibleTests, StaticIndexFallbackMetaMethodFunctionPtr) +{ + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticIndexMetaMethod(&staticIndexFallbackFunction) + .endClass(); + + runLua("result = X.xyz"); + ASSERT_EQ(42, result()); +} + +TEST_F(ClassExtensibleTests, StaticIndexFallbackMetaMethodFreeFunctor) +{ + std::string capture = "hello"; + + auto indexMetaMethod = [&capture](const luabridge::LuaRef& key, lua_State* L) -> luabridge::LuaRef + { + if (key.tostring() == "greeting") + { + if (!luabridge::push(L, capture)) + lua_pushnil(L); + return luabridge::LuaRef::fromStack(L); + } + + return luabridge::LuaRef(L); + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticIndexMetaMethod(indexMetaMethod) + .endClass(); + + runLua("result = X.greeting"); + ASSERT_EQ("hello", result()); +} + +TEST_F(ClassExtensibleTests, StaticNewIndexFallbackMetaMethodFunctionPtr) +{ + // Verify that assigning to an unknown static key invokes the newindex fallback + // (staticNewIndexFallbackFunction is a plain function pointer that accepts the assignment). + // Without the fallback, assigning to an unknown key would raise a Lua error. + // We also confirm reading the key still goes through the index fallback. + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticIndexMetaMethod(&staticIndexFallbackFunction) + .addStaticNewIndexMetaMethod(&staticNewIndexFallbackFunction) + .endClass(); + + // staticIndexFallbackFunction always returns 42 for "xyz" + ASSERT_TRUE(runLua("X.xyz = 100")); // must not error: newindex fallback handles it + runLua("result = X.xyz"); + ASSERT_EQ(42, result()); // index fallback still returns 42 regardless of assignment +} + +TEST_F(ClassExtensibleTests, StaticNewIndexFallbackMetaMethodFreeFunctor) +{ + std::unordered_map data; + + auto indexMetaMethod = [&data](const luabridge::LuaRef& key, lua_State* L) -> luabridge::LuaRef + { + auto it = data.find(key.tostring()); + if (it != data.end()) + { + if (!luabridge::push(L, it->second)) + lua_pushnil(L); + return luabridge::LuaRef::fromStack(L); + } + + return luabridge::LuaRef(L); + }; + + auto newIndexMetaMethod = [&data](const luabridge::LuaRef& key, const luabridge::LuaRef& value, lua_State*) -> luabridge::LuaRef + { + if (value.isNumber()) + data.emplace(key.tostring(), value.unsafe_cast()); + return value; + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticIndexMetaMethod(indexMetaMethod) + .addStaticNewIndexMetaMethod(newIndexMetaMethod) + .endClass(); + + runLua("X.foo = 111; X.bar = 222; result = X.foo + X.bar"); + ASSERT_EQ(333, result()); +} + +TEST_F(ClassExtensibleTests, StaticIndexFallbackReturnsNilForUnknownKey) +{ + auto indexMetaMethod = [](const luabridge::LuaRef& key, lua_State* L) -> luabridge::LuaRef + { + if (key.tostring() == "known") + { + if (!luabridge::push(L, 77)) + lua_pushnil(L); + return luabridge::LuaRef::fromStack(L); + } + + return luabridge::LuaRef(L); + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticIndexMetaMethod(indexMetaMethod) + .endClass(); + + runLua("result = X.known"); + ASSERT_EQ(77, result()); + + runLua("result = X.unknown"); + ASSERT_TRUE(result().isNil()); +} From 61269348c45d3e9b252d4387092181d3b1ff540a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 21:55:47 +0000 Subject: [PATCH 4/5] Remove accidentally committed Build/ directory artifacts Agent-Logs-Url: https://github.com/kunitoki/LuaBridge3/sessions/86769b52-8bf9-493e-ae2c-80a5d0fb72f7 Co-authored-by: kunitoki <707032+kunitoki@users.noreply.github.com> --- Build/CTestTestfile.cmake | 9 - Build/DartConfiguration.tcl | 109 ------ Build/Source/cmake_install.cmake | 54 --- Build/Tests/CTestTestfile.cmake | 57 ---- .../Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake | 6 - .../Tests/Lua/LuaJIT.2.1/cmake_install.cmake | 83 ----- Build/Tests/cmake_install.cmake | 58 ---- Build/Tests/ravi/CTestTestfile.cmake | 8 - Build/Tests/ravi/cmake_install.cmake | 149 -------- Build/Tests/ravi/lua-config.cmake | 61 ---- Build/Tests/ravi/mir/CTestTestfile.cmake | 6 - Build/Tests/ravi/mir/cmake_install.cmake | 69 ---- Build/Tests/ravi/ravi-config.h | 8 - Build/Tests/ravi/ravi-env.sh | 5 - Build/Tests/ravi/ravicomp/CTestTestfile.cmake | 6 - Build/Tests/ravi/ravicomp/cmake_install.cmake | 80 ----- Build/Tests/ravi/ravicomp/ravicomp_export.h | 43 --- .../ThirdParty/googletest/CTestTestfile.cmake | 7 - .../ThirdParty/googletest/cmake_install.cmake | 55 --- .../googletest/googlemock/CTestTestfile.cmake | 7 - .../googletest/googlemock/cmake_install.cmake | 76 ----- .../googletest/googletest/CTestTestfile.cmake | 6 - .../googletest/googletest/cmake_install.cmake | 100 ------ .../googletest/generated/GTestConfig.cmake | 37 -- .../generated/GTestConfigVersion.cmake | 43 --- .../googletest/googletest/generated/gmock.pc | 10 - .../googletest/generated/gmock_main.pc | 10 - .../googletest/googletest/generated/gtest.pc | 9 - .../googletest/generated/gtest_main.pc | 10 - .../_deps/backward-build/CTestTestfile.cmake | 6 - .../_deps/backward-build/cmake_install.cmake | 58 ---- Build/_deps/backward-src | 1 - Build/_deps/backward-subbuild/CMakeLists.txt | 42 --- .../backward-populate-build | 0 .../backward-populate-configure | 0 .../backward-populate-done | 0 .../backward-populate-download | 0 .../backward-populate-gitclone-lastrun.txt | 15 - .../backward-populate-gitinfo.txt | 15 - .../backward-populate-install | 0 .../backward-populate-mkdir | 0 .../backward-populate-patch | 0 .../backward-populate-patch-info.txt | 6 - .../backward-populate-test | 0 .../backward-populate-update-info.txt | 7 - .../tmp/backward-populate-cfgcmd.txt | 1 - .../tmp/backward-populate-gitclone.cmake | 87 ----- .../tmp/backward-populate-gitupdate.cmake | 317 ------------------ .../tmp/backward-populate-mkdirs.cmake | 27 -- .../backward-subbuild/cmake_install.cmake | 61 ---- Build/cmake_install.cmake | 74 ---- 51 files changed, 1898 deletions(-) delete mode 100644 Build/CTestTestfile.cmake delete mode 100644 Build/DartConfiguration.tcl delete mode 100644 Build/Source/cmake_install.cmake delete mode 100644 Build/Tests/CTestTestfile.cmake delete mode 100644 Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake delete mode 100644 Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake delete mode 100644 Build/Tests/cmake_install.cmake delete mode 100644 Build/Tests/ravi/CTestTestfile.cmake delete mode 100644 Build/Tests/ravi/cmake_install.cmake delete mode 100644 Build/Tests/ravi/lua-config.cmake delete mode 100644 Build/Tests/ravi/mir/CTestTestfile.cmake delete mode 100644 Build/Tests/ravi/mir/cmake_install.cmake delete mode 100644 Build/Tests/ravi/ravi-config.h delete mode 100644 Build/Tests/ravi/ravi-env.sh delete mode 100644 Build/Tests/ravi/ravicomp/CTestTestfile.cmake delete mode 100644 Build/Tests/ravi/ravicomp/cmake_install.cmake delete mode 100644 Build/Tests/ravi/ravicomp/ravicomp_export.h delete mode 100644 Build/ThirdParty/googletest/CTestTestfile.cmake delete mode 100644 Build/ThirdParty/googletest/cmake_install.cmake delete mode 100644 Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake delete mode 100644 Build/ThirdParty/googletest/googlemock/cmake_install.cmake delete mode 100644 Build/ThirdParty/googletest/googletest/CTestTestfile.cmake delete mode 100644 Build/ThirdParty/googletest/googletest/cmake_install.cmake delete mode 100644 Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake delete mode 100644 Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake delete mode 100644 Build/ThirdParty/googletest/googletest/generated/gmock.pc delete mode 100644 Build/ThirdParty/googletest/googletest/generated/gmock_main.pc delete mode 100644 Build/ThirdParty/googletest/googletest/generated/gtest.pc delete mode 100644 Build/ThirdParty/googletest/googletest/generated/gtest_main.pc delete mode 100644 Build/_deps/backward-build/CTestTestfile.cmake delete mode 100644 Build/_deps/backward-build/cmake_install.cmake delete mode 160000 Build/_deps/backward-src delete mode 100644 Build/_deps/backward-subbuild/CMakeLists.txt delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-build delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-configure delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-done delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-download delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-install delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-mkdir delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-test delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake delete mode 100644 Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake delete mode 100644 Build/_deps/backward-subbuild/cmake_install.cmake delete mode 100644 Build/cmake_install.cmake diff --git a/Build/CTestTestfile.cmake b/Build/CTestTestfile.cmake deleted file mode 100644 index ee09b63f..00000000 --- a/Build/CTestTestfile.cmake +++ /dev/null @@ -1,9 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3 -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("Source") -subdirs("ThirdParty/googletest") -subdirs("Tests") diff --git a/Build/DartConfiguration.tcl b/Build/DartConfiguration.tcl deleted file mode 100644 index f4e94593..00000000 --- a/Build/DartConfiguration.tcl +++ /dev/null @@ -1,109 +0,0 @@ -# This file is configured by CMake automatically as DartConfiguration.tcl -# If you choose not to use CMake, this file may be hand configured, by -# filling in the required variables. - - -# Configuration directories and files -SourceDirectory: /home/runner/work/LuaBridge3/LuaBridge3 -BuildDirectory: /home/runner/work/LuaBridge3/LuaBridge3/Build - -# Where to place the cost data store -CostDataFile: - -# Site is something like machine.domain, i.e. pragmatic.crd -Site: runnervmrg6be - -# Build name is osname-revision-compiler, i.e. Linux-2.4.2-2smp-c++ -BuildName: Linux-c++ - -# Subprojects -LabelsForSubprojects: - -# Submission information -SubmitURL: http:// -SubmitInactivityTimeout: - -# Dashboard start time -NightlyStartTime: 00:00:00 EDT - -# Commands for the build/test/submit cycle -ConfigureCommand: "/usr/local/bin/cmake" "/home/runner/work/LuaBridge3/LuaBridge3" -MakeCommand: /usr/local/bin/cmake --build . --config "${CTEST_CONFIGURATION_TYPE}" -DefaultCTestConfigurationType: Release - -# version control -UpdateVersionOnly: - -# CVS options -# Default is "-d -P -A" -CVSCommand: -CVSUpdateOptions: - -# Subversion options -SVNCommand: -SVNOptions: -SVNUpdateOptions: - -# Git options -GITCommand: /usr/bin/git -GITInitSubmodules: -GITUpdateOptions: -GITUpdateCustom: - -# Perforce options -P4Command: -P4Client: -P4Options: -P4UpdateOptions: -P4UpdateCustom: - -# Generic update command -UpdateCommand: /usr/bin/git -UpdateOptions: -UpdateType: git - -# Compiler info -Compiler: /usr/bin/c++ -CompilerVersion: 13.3.0 - -# Dynamic analysis (MemCheck) -PurifyCommand: -ValgrindCommand: -ValgrindCommandOptions: -DrMemoryCommand: -DrMemoryCommandOptions: -CudaSanitizerCommand: -CudaSanitizerCommandOptions: -MemoryCheckType: -MemoryCheckSanitizerOptions: -MemoryCheckCommand: MEMORYCHECK_COMMAND-NOTFOUND -MemoryCheckCommandOptions: -MemoryCheckSuppressionFile: - -# Coverage -CoverageCommand: /usr/bin/gcov -CoverageExtraFlags: -l - -# Testing options -# TimeOut is the amount of time in seconds to wait for processes -# to complete during testing. After TimeOut seconds, the -# process will be summarily terminated. -# Currently set to 25 minutes -TimeOut: 1500 - -# During parallel testing CTest will not start a new test if doing -# so would cause the system load to exceed this value. -TestLoad: - -TLSVerify: -TLSVersion: - -UseLaunchers: -CurlOptions: -# warning, if you add new options here that have to do with submit, -# you have to update cmCTestSubmitCommand.cxx - -# For CTest submissions that timeout, these options -# specify behavior for retrying the submission -CTestSubmitRetryDelay: 5 -CTestSubmitRetryCount: 3 diff --git a/Build/Source/cmake_install.cmake b/Build/Source/cmake_install.cmake deleted file mode 100644 index 10153543..00000000 --- a/Build/Source/cmake_install.cmake +++ /dev/null @@ -1,54 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Source - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/LuaBridge3" TYPE DIRECTORY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Source/LuaBridge") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Source/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/Tests/CTestTestfile.cmake b/Build/Tests/CTestTestfile.cmake deleted file mode 100644 index b6a7a3b9..00000000 --- a/Build/Tests/CTestTestfile.cmake +++ /dev/null @@ -1,57 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -add_test(LuaBridgeTests51 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51") -set_tests_properties(LuaBridgeTests51 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;370;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests51LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51LuaC") -set_tests_properties(LuaBridgeTests51LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;371;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests51Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51Noexcept") -set_tests_properties(LuaBridgeTests51Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;372;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests51LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests51LuaCNoexcept") -set_tests_properties(LuaBridgeTests51LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;373;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests52 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52") -set_tests_properties(LuaBridgeTests52 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;375;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests52LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52LuaC") -set_tests_properties(LuaBridgeTests52LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;376;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests52Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52Noexcept") -set_tests_properties(LuaBridgeTests52Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;377;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests52LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests52LuaCNoexcept") -set_tests_properties(LuaBridgeTests52LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;378;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests53 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53") -set_tests_properties(LuaBridgeTests53 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;380;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests53LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53LuaC") -set_tests_properties(LuaBridgeTests53LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;381;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests53Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53Noexcept") -set_tests_properties(LuaBridgeTests53Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;382;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests53LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests53LuaCNoexcept") -set_tests_properties(LuaBridgeTests53LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;383;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests54 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54") -set_tests_properties(LuaBridgeTests54 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;385;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests54LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54LuaC") -set_tests_properties(LuaBridgeTests54LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;386;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests54Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54Noexcept") -set_tests_properties(LuaBridgeTests54Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;387;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests54LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests54LuaCNoexcept") -set_tests_properties(LuaBridgeTests54LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;388;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests55 "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55") -set_tests_properties(LuaBridgeTests55 PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;390;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests55LuaC "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55LuaC") -set_tests_properties(LuaBridgeTests55LuaC PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;391;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests55Noexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55Noexcept") -set_tests_properties(LuaBridgeTests55Noexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;392;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTests55LuaCNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTests55LuaCNoexcept") -set_tests_properties(LuaBridgeTests55LuaCNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;393;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTestsLuaJIT "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsLuaJIT") -set_tests_properties(LuaBridgeTestsLuaJIT PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;395;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTestsLuaJITNoexcept "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsLuaJITNoexcept") -set_tests_properties(LuaBridgeTestsLuaJITNoexcept PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;396;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTestsLuau "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsLuau") -set_tests_properties(LuaBridgeTestsLuau PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;398;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -add_test(LuaBridgeTestsRavi "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/LuaBridgeTestsRavi") -set_tests_properties(LuaBridgeTestsRavi PROPERTIES _BACKTRACE_TRIPLES "/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;364;add_test;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;401;add_test_app;/home/runner/work/LuaBridge3/LuaBridge3/Tests/CMakeLists.txt;0;") -subdirs("Lua/LuaJIT.2.1") -subdirs("ravi") -subdirs("../_deps/backward-build") diff --git a/Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake b/Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake deleted file mode 100644 index 7c705dde..00000000 --- a/Build/Tests/Lua/LuaJIT.2.1/CTestTestfile.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1 -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1 -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake b/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake deleted file mode 100644 index 3247f843..00000000 --- a/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake +++ /dev/null @@ -1,83 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1 - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES - "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/luaconf.h" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lua.h" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lauxlib.h" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lualib.h" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/lua.hpp" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/luajit.h" - ) -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/lua/5.1/jit" TYPE FILE FILES - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/bc.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/v.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dump.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_x86.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_x64.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_arm.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_ppc.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mips.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mipsel.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/bcsave.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/vmdef.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/p.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/zone.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_arm64.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_arm64be.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mips64.lua" - "/home/runner/work/LuaBridge3/LuaBridge3/Tests/Lua/LuaJIT.2.1/src/jit/dis_mips64el.lua" - ) -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/Tests/cmake_install.cmake b/Build/Tests/cmake_install.cmake deleted file mode 100644 index 682c81b8..00000000 --- a/Build/Tests/cmake_install.cmake +++ /dev/null @@ -1,58 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Tests - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - # Include the install script for each subdirectory. - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/Lua/LuaJIT.2.1/cmake_install.cmake") - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/cmake_install.cmake") - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build/cmake_install.cmake") - -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/Tests/ravi/CTestTestfile.cmake b/Build/Tests/ravi/CTestTestfile.cmake deleted file mode 100644 index 3feee56f..00000000 --- a/Build/Tests/ravi/CTestTestfile.cmake +++ /dev/null @@ -1,8 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("mir") -subdirs("ravicomp") diff --git a/Build/Tests/ravi/cmake_install.cmake b/Build/Tests/ravi/cmake_install.cmake deleted file mode 100644 index 26de010d..00000000 --- a/Build/Tests/ravi/cmake_install.cmake +++ /dev/null @@ -1,149 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ravi" TYPE FILE FILES - "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/lua.h" - "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/luaconf.h" - "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/lualib.h" - "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/include/lauxlib.h" - ) -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so") - file(RPATH_CHECK - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" - RPATH "") - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/libravi.so") - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so") - file(RPATH_CHANGE - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so" - OLD_RPATH "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir:/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp:" - NEW_RPATH "") - if(CMAKE_INSTALL_DO_STRIP) - execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravi.so") - endif() - endif() -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi") - file(RPATH_CHECK - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" - RPATH "") - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravi") - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi") - file(RPATH_CHANGE - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi" - OLD_RPATH "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi:/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir:/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp:" - NEW_RPATH "") - if(CMAKE_INSTALL_DO_STRIP) - execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi") - endif() - endif() -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug") - file(RPATH_CHECK - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug" - RPATH "") - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravidebug") - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug") - if(CMAKE_INSTALL_DO_STRIP) - execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravidebug") - endif() - endif() -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Ravi_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s") - file(RPATH_CHECK - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s" - RPATH "") - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravi_s") - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s") - if(CMAKE_INSTALL_DO_STRIP) - execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ravi_s") - endif() - endif() -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravi-env.sh") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/cmake" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/lua-config.cmake") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - # Include the install script for each subdirectory. - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir/cmake_install.cmake") - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/cmake_install.cmake") - -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/Tests/ravi/lua-config.cmake b/Build/Tests/ravi/lua-config.cmake deleted file mode 100644 index 5873d954..00000000 --- a/Build/Tests/ravi/lua-config.cmake +++ /dev/null @@ -1,61 +0,0 @@ -find_path(LUA_INCLUDE_DIR lua.h - PATHS - /usr/local/include/ravi - ) - -find_library(LUA_LIBRARIES - NAMES libravi libravi.so libravi.dylib - PATHS - /usr/local/lib - ) - -find_program(LUA_EXE - NAMES ravi_s - PATHS - /usr/local/bin - ) - -# LUA_INCDIR - place where lua headers exist -set(LUA_INCDIR ${LUA_INCLUDE_DIR}) - -# LIBDIR - LUA_CPATH -if (WIN32) - - get_filename_component(LIBDIR - ${LUA_EXE} - DIRECTORY) - -else() - - get_filename_component(LIBDIR - ${LUA_LIBRARIES} - DIRECTORY) - -endif() - -get_filename_component(LUA_BINDIR - ${LUA_EXE} - DIRECTORY) - -# LUA_LIBDIR - place where lua native libraries exist -get_filename_component(LUA_LIBDIR - ${LUA_LIBRARIES} - DIRECTORY -) - -if (NOT WIN32) - set(LUA_LIBRARIES "${LUA_LIBRARIES};m") -endif() - -# LUALIB - the lua library to link against -set(LUALIB ${LUA_LIBRARIES}) - -# LUADIR - LUA_PATH -if (USE_LUA53) - set(LUADIR "${LUA_LIBDIR}/../share/lua/5.3") -else() - set(LUADIR "${LUA_LIBDIR}/../share/lua/5.3") -endif() - -set(LUA "${LUA_EXE}") - diff --git a/Build/Tests/ravi/mir/CTestTestfile.cmake b/Build/Tests/ravi/mir/CTestTestfile.cmake deleted file mode 100644 index 533ce66a..00000000 --- a/Build/Tests/ravi/mir/CTestTestfile.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/mir -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/Tests/ravi/mir/cmake_install.cmake b/Build/Tests/ravi/mir/cmake_install.cmake deleted file mode 100644 index 62881c5e..00000000 --- a/Build/Tests/ravi/mir/cmake_install.cmake +++ /dev/null @@ -1,69 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/mir - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "mir_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so") - file(RPATH_CHECK - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so" - RPATH "") - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir/libc2mir.so") - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so") - if(CMAKE_INSTALL_DO_STRIP) - execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libc2mir.so") - endif() - endif() -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "mir_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/mir/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/Tests/ravi/ravi-config.h b/Build/Tests/ravi/ravi-config.h deleted file mode 100644 index 1ba8f390..00000000 --- a/Build/Tests/ravi/ravi-config.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef _REDUKTI_RAVI_CONFIG_H_IN_H -#define _REDUKTI_RAVI_CONFIG_H_IN_H - -/* #undef NO_LUA_DEBUG */ -#define USE_MIRJIT 1 -#define USE_RAVICOMP 1 - -#endif //_REDUKTI_RAVI_CONFIG_H_IN_H diff --git a/Build/Tests/ravi/ravi-env.sh b/Build/Tests/ravi/ravi-env.sh deleted file mode 100644 index fa5f9a70..00000000 --- a/Build/Tests/ravi/ravi-env.sh +++ /dev/null @@ -1,5 +0,0 @@ -export RAVI_HOME=/usr/local -export PATH=$RAVI_HOME/bin:$PATH -export LD_LIBRARY_PATH=$RAVI_HOME/lib:$LD_LIBRARY_PATH -export LUA_PATH="$RAVI_HOME/share/lua/5.3/?.lua;$RAVI_HOME/share/lua/5.3/?/init.lua;./?.lua;./?/init.lua" -export LUA_CPATH="$RAVI_HOME/lib/?.so;$RAVI_HOME/lib/lib?.so" diff --git a/Build/Tests/ravi/ravicomp/CTestTestfile.cmake b/Build/Tests/ravi/ravicomp/CTestTestfile.cmake deleted file mode 100644 index deb349eb..00000000 --- a/Build/Tests/ravi/ravicomp/CTestTestfile.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/Tests/ravi/ravicomp/cmake_install.cmake b/Build/Tests/ravi/ravicomp/cmake_install.cmake deleted file mode 100644 index c6db4434..00000000 --- a/Build/Tests/ravi/ravicomp/cmake_install.cmake +++ /dev/null @@ -1,80 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ravicomp" TYPE FILE FILES - "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp/include/ravi_compiler.h" - "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/ravi/ravicomp/include/ravi_api.h" - ) -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "RaviCompiler_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so") - file(RPATH_CHECK - FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so" - RPATH "") - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/libravicomp.so") - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so" AND - NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so") - if(CMAKE_INSTALL_DO_STRIP) - execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libravicomp.so") - endif() - endif() -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "RaviCompiler_Runtime" OR NOT CMAKE_INSTALL_COMPONENT) -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/ravicomp" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/ravicomp_export.h") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/ravi/ravicomp/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/Tests/ravi/ravicomp/ravicomp_export.h b/Build/Tests/ravi/ravicomp/ravicomp_export.h deleted file mode 100644 index ed856fdd..00000000 --- a/Build/Tests/ravi/ravicomp/ravicomp_export.h +++ /dev/null @@ -1,43 +0,0 @@ - -#ifndef RAVICOMP_EXPORT_H -#define RAVICOMP_EXPORT_H - -#ifdef RAVICOMP_STATIC_DEFINE -# define RAVICOMP_EXPORT -# define RAVICOMP_NO_EXPORT -#else -# ifndef RAVICOMP_EXPORT -# ifdef ravicomp_EXPORTS - /* We are building this library */ -# define RAVICOMP_EXPORT __attribute__((visibility("default"))) -# else - /* We are using this library */ -# define RAVICOMP_EXPORT __attribute__((visibility("default"))) -# endif -# endif - -# ifndef RAVICOMP_NO_EXPORT -# define RAVICOMP_NO_EXPORT __attribute__((visibility("hidden"))) -# endif -#endif - -#ifndef RAVICOMP_DEPRECATED -# define RAVICOMP_DEPRECATED __attribute__ ((__deprecated__)) -#endif - -#ifndef RAVICOMP_DEPRECATED_EXPORT -# define RAVICOMP_DEPRECATED_EXPORT RAVICOMP_EXPORT RAVICOMP_DEPRECATED -#endif - -#ifndef RAVICOMP_DEPRECATED_NO_EXPORT -# define RAVICOMP_DEPRECATED_NO_EXPORT RAVICOMP_NO_EXPORT RAVICOMP_DEPRECATED -#endif - -/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */ -#if 0 /* DEFINE_NO_DEPRECATED */ -# ifndef RAVICOMP_NO_DEPRECATED -# define RAVICOMP_NO_DEPRECATED -# endif -#endif - -#endif /* RAVICOMP_EXPORT_H */ diff --git a/Build/ThirdParty/googletest/CTestTestfile.cmake b/Build/ThirdParty/googletest/CTestTestfile.cmake deleted file mode 100644 index 4dceb998..00000000 --- a/Build/ThirdParty/googletest/CTestTestfile.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("googlemock") diff --git a/Build/ThirdParty/googletest/cmake_install.cmake b/Build/ThirdParty/googletest/cmake_install.cmake deleted file mode 100644 index cf05e123..00000000 --- a/Build/ThirdParty/googletest/cmake_install.cmake +++ /dev/null @@ -1,55 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - # Include the install script for the subdirectory. - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googlemock/cmake_install.cmake") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake b/Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake deleted file mode 100644 index 2c0a5f1c..00000000 --- a/Build/ThirdParty/googletest/googlemock/CTestTestfile.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googlemock -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googlemock -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. -subdirs("../googletest") diff --git a/Build/ThirdParty/googletest/googlemock/cmake_install.cmake b/Build/ThirdParty/googletest/googlemock/cmake_install.cmake deleted file mode 100644 index 63e37551..00000000 --- a/Build/ThirdParty/googletest/googlemock/cmake_install.cmake +++ /dev/null @@ -1,76 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googlemock - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE DIRECTORY FILES "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googlemock/include/") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgmock.a") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgmock_main.a") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gmock.pc") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gmock" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - # Include the install script for each subdirectory. - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/cmake_install.cmake") - -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googlemock/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/ThirdParty/googletest/googletest/CTestTestfile.cmake b/Build/ThirdParty/googletest/googletest/CTestTestfile.cmake deleted file mode 100644 index 2736e945..00000000 --- a/Build/ThirdParty/googletest/googletest/CTestTestfile.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googletest -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/ThirdParty/googletest/googletest/cmake_install.cmake b/Build/ThirdParty/googletest/googletest/cmake_install.cmake deleted file mode 100644 index c8eb048d..00000000 --- a/Build/ThirdParty/googletest/googletest/cmake_install.cmake +++ /dev/null @@ -1,100 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googletest - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets.cmake") - file(DIFFERENT _cmake_export_file_changed FILES - "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets.cmake" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/CMakeFiles/Export/0c08b8e77dd885bfe55a19a9659d9fc1/GTestTargets.cmake") - if(_cmake_export_file_changed) - file(GLOB _cmake_old_config_files "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets-*.cmake") - if(_cmake_old_config_files) - string(REPLACE ";" ", " _cmake_old_config_files_text "${_cmake_old_config_files}") - message(STATUS "Old export file \"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest/GTestTargets.cmake\" will be replaced. Removing files [${_cmake_old_config_files_text}].") - unset(_cmake_old_config_files_text) - file(REMOVE ${_cmake_old_config_files}) - endif() - unset(_cmake_old_config_files) - endif() - unset(_cmake_export_file_changed) - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/CMakeFiles/Export/0c08b8e77dd885bfe55a19a9659d9fc1/GTestTargets.cmake") - if(CMAKE_INSTALL_CONFIG_NAME MATCHES "^([Dd][Ee][Bb][Uu][Gg])$") - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/CMakeFiles/Export/0c08b8e77dd885bfe55a19a9659d9fc1/GTestTargets-debug.cmake") - endif() -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/GTest" TYPE FILE FILES - "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake" - ) -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE DIRECTORY FILES "/home/runner/work/LuaBridge3/LuaBridge3/ThirdParty/googletest/googletest/include/") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgtest.a") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/lib/libgtest_main.a") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gtest.pc") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "gtest" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/googletest/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake b/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake deleted file mode 100644 index 9ab9a5ef..00000000 --- a/Build/ThirdParty/googletest/googletest/generated/GTestConfig.cmake +++ /dev/null @@ -1,37 +0,0 @@ - -####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### -####### Any changes to this file will be overwritten by the next CMake run #### -####### The input file was Config.cmake.in ######## - -get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) - -macro(set_and_check _var _file) - set(${_var} "${_file}") - if(NOT EXISTS "${_file}") - message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") - endif() -endmacro() - -macro(check_required_components _NAME) - foreach(comp ${${_NAME}_FIND_COMPONENTS}) - if(NOT ${_NAME}_${comp}_FOUND) - if(${_NAME}_FIND_REQUIRED_${comp}) - set(${_NAME}_FOUND FALSE) - endif() - endif() - endforeach() -endmacro() - -#################################################################################### -include(CMakeFindDependencyMacro) -if (ON) - set(THREADS_PREFER_PTHREAD_FLAG ) - find_dependency(Threads) -endif() -if (OFF) - find_dependency(absl) - find_dependency(re2) -endif() - -include("${CMAKE_CURRENT_LIST_DIR}/GTestTargets.cmake") -check_required_components("") diff --git a/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake b/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake deleted file mode 100644 index 18adc9e5..00000000 --- a/Build/ThirdParty/googletest/googletest/generated/GTestConfigVersion.cmake +++ /dev/null @@ -1,43 +0,0 @@ -# This is a basic version file for the Config-mode of find_package(). -# It is used by write_basic_package_version_file() as input file for configure_file() -# to create a version-file which can be installed along a config.cmake file. -# -# The created file sets PACKAGE_VERSION_EXACT if the current version string and -# the requested version string are exactly the same and it sets -# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version. -# The variable CVF_VERSION must be set before calling configure_file(). - -set(PACKAGE_VERSION "1.16.0") - -if (PACKAGE_FIND_VERSION_RANGE) - # Package version must be in the requested version range - if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN) - OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX) - OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX))) - set(PACKAGE_VERSION_COMPATIBLE FALSE) - else() - set(PACKAGE_VERSION_COMPATIBLE TRUE) - endif() -else() - if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) - set(PACKAGE_VERSION_COMPATIBLE FALSE) - else() - set(PACKAGE_VERSION_COMPATIBLE TRUE) - if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) - set(PACKAGE_VERSION_EXACT TRUE) - endif() - endif() -endif() - - -# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: -if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") - return() -endif() - -# check that the installed version has the same 32/64bit-ness as the one which is currently searching: -if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") - math(EXPR installedBits "8 * 8") - set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") - set(PACKAGE_VERSION_UNSUITABLE TRUE) -endif() diff --git a/Build/ThirdParty/googletest/googletest/generated/gmock.pc b/Build/ThirdParty/googletest/googletest/generated/gmock.pc deleted file mode 100644 index b1a4bf87..00000000 --- a/Build/ThirdParty/googletest/googletest/generated/gmock.pc +++ /dev/null @@ -1,10 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gmock -Description: GoogleMock (without main() function) -Version: 1.16.0 -URL: https://github.com/google/googletest -Requires: gtest = 1.16.0 -Libs: -L${libdir} -lgmock -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc b/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc deleted file mode 100644 index 4917aa31..00000000 --- a/Build/ThirdParty/googletest/googletest/generated/gmock_main.pc +++ /dev/null @@ -1,10 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gmock_main -Description: GoogleMock (with main() function) -Version: 1.16.0 -URL: https://github.com/google/googletest -Requires: gmock = 1.16.0 -Libs: -L${libdir} -lgmock_main -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/ThirdParty/googletest/googletest/generated/gtest.pc b/Build/ThirdParty/googletest/googletest/generated/gtest.pc deleted file mode 100644 index 1bc0b70b..00000000 --- a/Build/ThirdParty/googletest/googletest/generated/gtest.pc +++ /dev/null @@ -1,9 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gtest -Description: GoogleTest (without main() function) -Version: 1.16.0 -URL: https://github.com/google/googletest -Libs: -L${libdir} -lgtest -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc b/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc deleted file mode 100644 index 73fb5c67..00000000 --- a/Build/ThirdParty/googletest/googletest/generated/gtest_main.pc +++ /dev/null @@ -1,10 +0,0 @@ -libdir=/usr/local/lib -includedir=/usr/local/include - -Name: gtest_main -Description: GoogleTest (with main() function) -Version: 1.16.0 -URL: https://github.com/google/googletest -Requires: gtest = 1.16.0 -Libs: -L${libdir} -lgtest_main -Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 diff --git a/Build/_deps/backward-build/CTestTestfile.cmake b/Build/_deps/backward-build/CTestTestfile.cmake deleted file mode 100644 index 2c58b430..00000000 --- a/Build/_deps/backward-build/CTestTestfile.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# CMake generated Testfile for -# Source directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src -# Build directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build -# -# This file includes the relevant testing commands required for -# testing this directory and lists subdirectories to be tested as well. diff --git a/Build/_deps/backward-build/cmake_install.cmake b/Build/_deps/backward-build/cmake_install.cmake deleted file mode 100644 index 92e5c76a..00000000 --- a/Build/_deps/backward-build/cmake_install.cmake +++ /dev/null @@ -1,58 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src/backward.hpp") -endif() - -if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/backward" TYPE FILE FILES "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src/BackwardConfig.cmake") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/_deps/backward-src b/Build/_deps/backward-src deleted file mode 160000 index 0bfd0a07..00000000 --- a/Build/_deps/backward-src +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0bfd0a07a61551413ccd2ab9a9099af3bad40681 diff --git a/Build/_deps/backward-subbuild/CMakeLists.txt b/Build/_deps/backward-subbuild/CMakeLists.txt deleted file mode 100644 index 7cf31007..00000000 --- a/Build/_deps/backward-subbuild/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -cmake_minimum_required(VERSION 3.31.6) - -# Reject any attempt to use a toolchain file. We must not use one because -# we could be downloading it here. If the CMAKE_TOOLCHAIN_FILE environment -# variable is set, the cache variable will have been initialized from it. -unset(CMAKE_TOOLCHAIN_FILE CACHE) -unset(ENV{CMAKE_TOOLCHAIN_FILE}) - -# We name the project and the target for the ExternalProject_Add() call -# to something that will highlight to the user what we are working on if -# something goes wrong and an error message is produced. - -project(backward-populate NONE) - - -# Pass through things we've already detected in the main project to avoid -# paying the cost of redetecting them again in ExternalProject_Add() -set(GIT_EXECUTABLE [==[/usr/bin/git]==]) -set(GIT_VERSION_STRING [==[2.53.0]==]) -set_property(GLOBAL PROPERTY _CMAKE_FindGit_GIT_EXECUTABLE_VERSION - [==[/usr/bin/git;2.53.0]==] -) - - -include(ExternalProject) -ExternalProject_Add(backward-populate - "UPDATE_DISCONNECTED" "False" "GIT_REPOSITORY" "https://github.com/bombela/backward-cpp" "EXTERNALPROJECT_INTERNAL_ARGUMENT_SEPARATOR" "GIT_TAG" "master" - SOURCE_DIR "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - BINARY_DIR "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build" - CONFIGURE_COMMAND "" - BUILD_COMMAND "" - INSTALL_COMMAND "" - TEST_COMMAND "" - USES_TERMINAL_DOWNLOAD YES - USES_TERMINAL_UPDATE YES - USES_TERMINAL_PATCH YES -) - - diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-build b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-build deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-configure b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-configure deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-done b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-done deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-download b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-download deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt deleted file mode 100644 index 329495d5..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt +++ /dev/null @@ -1,15 +0,0 @@ -# This is a generated file and its contents are an internal implementation detail. -# The download step will be re-executed if anything in this file changes. -# No other meaning or use of this file is supported. - -method=git -command=/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake -source_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src -work_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps -repository=https://github.com/bombela/backward-cpp -remote=origin -init_submodules=TRUE -recurse_submodules=--recursive -submodules= -CMP0097=NEW - diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt deleted file mode 100644 index 329495d5..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt +++ /dev/null @@ -1,15 +0,0 @@ -# This is a generated file and its contents are an internal implementation detail. -# The download step will be re-executed if anything in this file changes. -# No other meaning or use of this file is supported. - -method=git -command=/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake -source_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src -work_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps -repository=https://github.com/bombela/backward-cpp -remote=origin -init_submodules=TRUE -recurse_submodules=--recursive -submodules= -CMP0097=NEW - diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-install b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-install deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-mkdir b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-mkdir deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt deleted file mode 100644 index 53e1e1e6..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-patch-info.txt +++ /dev/null @@ -1,6 +0,0 @@ -# This is a generated file and its contents are an internal implementation detail. -# The update step will be re-executed if anything in this file changes. -# No other meaning or use of this file is supported. - -command= -work_dir= diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-test b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-test deleted file mode 100644 index e69de29b..00000000 diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt deleted file mode 100644 index 9c8a06c9..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-update-info.txt +++ /dev/null @@ -1,7 +0,0 @@ -# This is a generated file and its contents are an internal implementation detail. -# The patch step will be re-executed if anything in this file changes. -# No other meaning or use of this file is supported. - -command (connected)=/usr/local/bin/cmake;-Dcan_fetch=YES;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake -command (disconnected)=/usr/local/bin/cmake;-Dcan_fetch=NO;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake -work_dir=/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt deleted file mode 100644 index 6a6ed5fd..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-cfgcmd.txt +++ /dev/null @@ -1 +0,0 @@ -cmd='' diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake deleted file mode 100644 index 44aa7619..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitclone.cmake +++ /dev/null @@ -1,87 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake - -if(EXISTS "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt" AND EXISTS "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt" AND - "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt" IS_NEWER_THAN "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt") - message(VERBOSE - "Avoiding repeated git clone, stamp file is up to date: " - "'/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt'" - ) - return() -endif() - -# Even at VERBOSE level, we don't want to see the commands executed, but -# enabling them to be shown for DEBUG may be useful to help diagnose problems. -cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level) -if(active_log_level MATCHES "DEBUG|TRACE") - set(maybe_show_command COMMAND_ECHO STDOUT) -else() - set(maybe_show_command "") -endif() - -execute_process( - COMMAND ${CMAKE_COMMAND} -E rm -rf "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - ${maybe_show_command} -) -if(error_code) - message(FATAL_ERROR "Failed to remove directory: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'") -endif() - -# try the clone 3 times in case there is an odd git clone issue -set(error_code 1) -set(number_of_tries 0) -while(error_code AND number_of_tries LESS 3) - execute_process( - COMMAND "/usr/bin/git" - clone --no-checkout --config "advice.detachedHead=false" "https://github.com/bombela/backward-cpp" "backward-src" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps" - RESULT_VARIABLE error_code - ${maybe_show_command} - ) - math(EXPR number_of_tries "${number_of_tries} + 1") -endwhile() -if(number_of_tries GREATER 1) - message(NOTICE "Had to git clone more than once: ${number_of_tries} times.") -endif() -if(error_code) - message(FATAL_ERROR "Failed to clone repository: 'https://github.com/bombela/backward-cpp'") -endif() - -execute_process( - COMMAND "/usr/bin/git" - checkout "master" -- - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - ${maybe_show_command} -) -if(error_code) - message(FATAL_ERROR "Failed to checkout tag: 'master'") -endif() - -set(init_submodules TRUE) -if(init_submodules) - execute_process( - COMMAND "/usr/bin/git" - submodule update --recursive --init - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - ${maybe_show_command} - ) -endif() -if(error_code) - message(FATAL_ERROR "Failed to update submodules in: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'") -endif() - -# Complete success, update the script-last-run stamp file: -# -execute_process( - COMMAND ${CMAKE_COMMAND} -E copy "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitinfo.txt" "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt" - RESULT_VARIABLE error_code - ${maybe_show_command} -) -if(error_code) - message(FATAL_ERROR "Failed to copy script-last-run stamp file: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/backward-populate-gitclone-lastrun.txt'") -endif() diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake deleted file mode 100644 index 3938eee4..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-gitupdate.cmake +++ /dev/null @@ -1,317 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake - -# Even at VERBOSE level, we don't want to see the commands executed, but -# enabling them to be shown for DEBUG may be useful to help diagnose problems. -cmake_language(GET_MESSAGE_LOG_LEVEL active_log_level) -if(active_log_level MATCHES "DEBUG|TRACE") - set(maybe_show_command COMMAND_ECHO STDOUT) -else() - set(maybe_show_command "") -endif() - -function(do_fetch) - message(VERBOSE "Fetching latest from the remote origin") - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git fetch --tags --force "origin" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - COMMAND_ERROR_IS_FATAL LAST - ${maybe_show_command} - ) -endfunction() - -function(get_hash_for_ref ref out_var err_var) - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git rev-parse "${ref}^0" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - OUTPUT_VARIABLE ref_hash - ERROR_VARIABLE error_msg - OUTPUT_STRIP_TRAILING_WHITESPACE - ) - if(error_code) - set(${out_var} "" PARENT_SCOPE) - else() - set(${out_var} "${ref_hash}" PARENT_SCOPE) - endif() - set(${err_var} "${error_msg}" PARENT_SCOPE) -endfunction() - -get_hash_for_ref(HEAD head_sha error_msg) -if(head_sha STREQUAL "") - message(FATAL_ERROR "Failed to get the hash for HEAD:\n${error_msg}") -endif() - -if("${can_fetch}" STREQUAL "") - set(can_fetch "YES") -endif() - -execute_process( - COMMAND "/usr/bin/git" --git-dir=.git show-ref "master" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - OUTPUT_VARIABLE show_ref_output -) -if(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/remotes/") - # Given a full remote/branch-name and we know about it already. Since - # branches can move around, we should always fetch, if permitted. - if(can_fetch) - do_fetch() - endif() - set(checkout_name "master") - -elseif(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/tags/") - # Given a tag name that we already know about. We don't know if the tag we - # have matches the remote though (tags can move), so we should fetch. As a - # special case to preserve backward compatibility, if we are already at the - # same commit as the tag we hold locally, don't do a fetch and assume the tag - # hasn't moved on the remote. - # FIXME: We should provide an option to always fetch for this case - get_hash_for_ref("master" tag_sha error_msg) - if(tag_sha STREQUAL head_sha) - message(VERBOSE "Already at requested tag: master") - return() - endif() - - if(can_fetch) - do_fetch() - endif() - set(checkout_name "master") - -elseif(show_ref_output MATCHES "^[a-z0-9]+[ \\t]+refs/heads/") - # Given a branch name without any remote and we already have a branch by that - # name. We might already have that branch checked out or it might be a - # different branch. It isn't fully safe to use a bare branch name without the - # remote, so do a fetch (if allowed) and replace the ref with one that - # includes the remote. - if(can_fetch) - do_fetch() - endif() - set(checkout_name "origin/master") - -else() - get_hash_for_ref("master" tag_sha error_msg) - if(tag_sha STREQUAL head_sha) - # Have the right commit checked out already - message(VERBOSE "Already at requested ref: ${tag_sha}") - return() - - elseif(tag_sha STREQUAL "") - # We don't know about this ref yet, so we have no choice but to fetch. - if(NOT can_fetch) - message(FATAL_ERROR - "Requested git ref \"master\" is not present locally, and not " - "allowed to contact remote due to UPDATE_DISCONNECTED setting." - ) - endif() - - # We deliberately swallow any error message at the default log level - # because it can be confusing for users to see a failed git command. - # That failure is being handled here, so it isn't an error. - if(NOT error_msg STREQUAL "") - message(DEBUG "${error_msg}") - endif() - do_fetch() - set(checkout_name "master") - - else() - # We have the commit, so we know we were asked to find a commit hash - # (otherwise it would have been handled further above), but we don't - # have that commit checked out yet. We don't need to fetch from the remote. - set(checkout_name "master") - if(NOT error_msg STREQUAL "") - message(WARNING "${error_msg}") - endif() - - endif() -endif() - -set(git_update_strategy "REBASE") -if(git_update_strategy STREQUAL "") - # Backward compatibility requires REBASE as the default behavior - set(git_update_strategy REBASE) -endif() - -if(git_update_strategy MATCHES "^REBASE(_CHECKOUT)?$") - # Asked to potentially try to rebase first, maybe with fallback to checkout. - # We can't if we aren't already on a branch and we shouldn't if that local - # branch isn't tracking the one we want to checkout. - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git symbolic-ref -q HEAD - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - OUTPUT_VARIABLE current_branch - OUTPUT_STRIP_TRAILING_WHITESPACE - # Don't test for an error. If this isn't a branch, we get a non-zero error - # code but empty output. - ) - - if(current_branch STREQUAL "") - # Not on a branch, checkout is the only sensible option since any rebase - # would always fail (and backward compatibility requires us to checkout in - # this situation) - set(git_update_strategy CHECKOUT) - - else() - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git for-each-ref "--format=%(upstream:short)" "${current_branch}" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - OUTPUT_VARIABLE upstream_branch - OUTPUT_STRIP_TRAILING_WHITESPACE - COMMAND_ERROR_IS_FATAL ANY # There is no error if no upstream is set - ) - if(NOT upstream_branch STREQUAL checkout_name) - # Not safe to rebase when asked to checkout a different branch to the one - # we are tracking. If we did rebase, we could end up with arbitrary - # commits added to the ref we were asked to checkout if the current local - # branch happens to be able to rebase onto the target branch. There would - # be no error message and the user wouldn't know this was occurring. - set(git_update_strategy CHECKOUT) - endif() - - endif() -elseif(NOT git_update_strategy STREQUAL "CHECKOUT") - message(FATAL_ERROR "Unsupported git update strategy: ${git_update_strategy}") -endif() - - -# Check if stash is needed -execute_process( - COMMAND "/usr/bin/git" --git-dir=.git status --porcelain - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - OUTPUT_VARIABLE repo_status -) -if(error_code) - message(FATAL_ERROR "Failed to get the status") -endif() -string(LENGTH "${repo_status}" need_stash) - -# If not in clean state, stash changes in order to be able to perform a -# rebase or checkout without losing those changes permanently -if(need_stash) - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git stash save --quiet;--include-untracked - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - COMMAND_ERROR_IS_FATAL ANY - ${maybe_show_command} - ) -endif() - -if(git_update_strategy STREQUAL "CHECKOUT") - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git checkout "${checkout_name}" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - COMMAND_ERROR_IS_FATAL ANY - ${maybe_show_command} - ) -else() - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git rebase "${checkout_name}" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - OUTPUT_VARIABLE rebase_output - ERROR_VARIABLE rebase_output - ) - if(error_code) - # Rebase failed, undo the rebase attempt before continuing - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git rebase --abort - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - ${maybe_show_command} - ) - - if(NOT git_update_strategy STREQUAL "REBASE_CHECKOUT") - # Not allowed to do a checkout as a fallback, so cannot proceed - if(need_stash) - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git stash pop --index --quiet - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - ${maybe_show_command} - ) - endif() - message(FATAL_ERROR "\nFailed to rebase in: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'." - "\nOutput from the attempted rebase follows:" - "\n${rebase_output}" - "\n\nYou will have to resolve the conflicts manually") - endif() - - # Fall back to checkout. We create an annotated tag so that the user - # can manually inspect the situation and revert if required. - # We can't log the failed rebase output because MSVC sees it and - # intervenes, causing the build to fail even though it completes. - # Write it to a file instead. - string(TIMESTAMP tag_timestamp "%Y%m%dT%H%M%S" UTC) - set(tag_name _cmake_ExternalProject_moved_from_here_${tag_timestamp}Z) - set(error_log_file ${CMAKE_CURRENT_LIST_DIR}/rebase_error_${tag_timestamp}Z.log) - file(WRITE ${error_log_file} "${rebase_output}") - message(WARNING "Rebase failed, output has been saved to ${error_log_file}" - "\nFalling back to checkout, previous commit tagged as ${tag_name}") - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git tag -a - -m "ExternalProject attempting to move from here to ${checkout_name}" - ${tag_name} - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - COMMAND_ERROR_IS_FATAL ANY - ${maybe_show_command} - ) - - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git checkout "${checkout_name}" - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - COMMAND_ERROR_IS_FATAL ANY - ${maybe_show_command} - ) - endif() -endif() - -if(need_stash) - # Put back the stashed changes - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git stash pop --index --quiet - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - ${maybe_show_command} - ) - if(error_code) - # Stash pop --index failed: Try again dropping the index - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git reset --hard --quiet - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - ${maybe_show_command} - ) - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git stash pop --quiet - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - RESULT_VARIABLE error_code - ${maybe_show_command} - ) - if(error_code) - # Stash pop failed: Restore previous state. - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git reset --hard --quiet ${head_sha} - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - ${maybe_show_command} - ) - execute_process( - COMMAND "/usr/bin/git" --git-dir=.git stash pop --index --quiet - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - ${maybe_show_command} - ) - message(FATAL_ERROR "\nFailed to unstash changes in: '/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src'." - "\nYou will have to resolve the conflicts manually") - endif() - endif() -endif() - -set(init_submodules "TRUE") -if(init_submodules) - execute_process( - COMMAND "/usr/bin/git" - --git-dir=.git - submodule update --recursive --init - WORKING_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src" - COMMAND_ERROR_IS_FATAL ANY - ${maybe_show_command} - ) -endif() diff --git a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake b/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake deleted file mode 100644 index 725b4178..00000000 --- a/Build/_deps/backward-subbuild/backward-populate-prefix/tmp/backward-populate-mkdirs.cmake +++ /dev/null @@ -1,27 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake - -# If CMAKE_DISABLE_SOURCE_CHANGES is set to true and the source directory is an -# existing directory in our source tree, calling file(MAKE_DIRECTORY) on it -# would cause a fatal error, even though it would be a no-op. -if(NOT EXISTS "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src") - file(MAKE_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-src") -endif() -file(MAKE_DIRECTORY - "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-build" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/tmp" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src" - "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp" -) - -set(configSubDirs ) -foreach(subDir IN LISTS configSubDirs) - file(MAKE_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp/${subDir}") -endforeach() -if(cfgdir) - file(MAKE_DIRECTORY "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/backward-populate-prefix/src/backward-populate-stamp${cfgdir}") # cfgdir has leading slash -endif() diff --git a/Build/_deps/backward-subbuild/cmake_install.cmake b/Build/_deps/backward-subbuild/cmake_install.cmake deleted file mode 100644 index bba0d024..00000000 --- a/Build/_deps/backward-subbuild/cmake_install.cmake +++ /dev/null @@ -1,61 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() -if(CMAKE_INSTALL_COMPONENT) - if(CMAKE_INSTALL_COMPONENT MATCHES "^[a-zA-Z0-9_.+-]+$") - set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") - else() - string(MD5 CMAKE_INST_COMP_HASH "${CMAKE_INSTALL_COMPONENT}") - set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INST_COMP_HASH}.txt") - unset(CMAKE_INST_COMP_HASH) - endif() -else() - set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/_deps/backward-subbuild/${CMAKE_INSTALL_MANIFEST}" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() diff --git a/Build/cmake_install.cmake b/Build/cmake_install.cmake deleted file mode 100644 index d8ef66a4..00000000 --- a/Build/cmake_install.cmake +++ /dev/null @@ -1,74 +0,0 @@ -# Install script for directory: /home/runner/work/LuaBridge3/LuaBridge3 - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set path to fallback-tool for dependency-resolution. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - # Include the install script for each subdirectory. - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Source/cmake_install.cmake") - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/ThirdParty/googletest/cmake_install.cmake") - include("/home/runner/work/LuaBridge3/LuaBridge3/Build/Tests/cmake_install.cmake") - -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -if(CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/install_local_manifest.txt" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() -if(CMAKE_INSTALL_COMPONENT) - if(CMAKE_INSTALL_COMPONENT MATCHES "^[a-zA-Z0-9_.+-]+$") - set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") - else() - string(MD5 CMAKE_INST_COMP_HASH "${CMAKE_INSTALL_COMPONENT}") - set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INST_COMP_HASH}.txt") - unset(CMAKE_INST_COMP_HASH) - endif() -else() - set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - file(WRITE "/home/runner/work/LuaBridge3/LuaBridge3/Build/${CMAKE_INSTALL_MANIFEST}" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") -endif() From f5da90dff6287e1ba3ea304a71521a6e7b4a6008 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 08:32:19 +0000 Subject: [PATCH 5/5] Add 5 additional static metamethod tests and Manual.md section 2.7.3 Agent-Logs-Url: https://github.com/kunitoki/LuaBridge3/sessions/0b6157c4-c785-4936-b30c-220e2610820b Co-authored-by: kunitoki <707032+kunitoki@users.noreply.github.com> --- Manual.md | 68 +++++++++++++ Tests/Source/ClassExtensibleTests.cpp | 134 ++++++++++++++++++++++++++ 2 files changed, 202 insertions(+) diff --git a/Manual.md b/Manual.md index 2c10e55f..1e311ee2 100644 --- a/Manual.md +++ b/Manual.md @@ -38,6 +38,7 @@ Contents * [2.7 - Extending Classes](#27---extending-classes) * [2.7.1 - Extensible Classes](#271---extensible-classes) * [2.7.2 - Index and New Index Metamethods Fallback](#272---index-and-new-index-metamethods-fallback) + * [2.7.3 - Static Index and New Index Metamethods Fallback](#273---static-index-and-new-index-metamethods-fallback) * [2.8 - Lua Stack](#28---lua-stack) * [2.8.1 - Enums](#281---enums) * [2.8.2 - lua_State](#282---lua_state) @@ -881,6 +882,73 @@ propertyOne = flexi.propertyOne assert (propertyOne == 1337, "Value is now present !") ``` +### 2.7.3 - Static Index and New Index Metamethods Fallback + +The same fallback mechanism is available for the *static class table* — i.e. for key lookups performed on the class name itself (e.g. `MyClass.someKey`) rather than on an instance. Use `addStaticIndexMetaMethod` and `addStaticNewIndexMetaMethod` to register the callbacks. Unlike their instance counterparts, the static callbacks receive only the key (and optionally `lua_State*`) — there is no `self` parameter. + +```cpp +struct MyClass {}; + +std::unordered_map store; + +luabridge::getGlobalNamespace (L) + .beginClass ("MyClass") + .addStaticIndexMetaMethod ([] (const luabridge::LuaRef& key, lua_State* L) -> luabridge::LuaRef + { + auto it = store.find (key.tostring ()); + if (it != store.end ()) + return luabridge::LuaRef (L, it->second); + + return luabridge::LuaRef (L, luabridge::LuaNil ()); + }) + .addStaticNewIndexMetaMethod ([] (const luabridge::LuaRef& key, const luabridge::LuaRef& value, lua_State* L) -> luabridge::LuaRef + { + if (value.isNumber ()) + store[key.tostring ()] = value.unsafe_cast (); + return value; + }) + .endClass (); +``` + +Then in lua: + +```lua +MyClass.dynamicProp = 42 + +value = MyClass.dynamicProp +assert (value == 42, "Value stored via static __newindex fallback and retrieved via static __index fallback") + +missing = MyClass.nonExistingKey +assert (missing == nil, "Unknown key returns nil through the static __index fallback") +``` + +Existing static properties and functions registered with `addStaticProperty` / `addStaticFunction` are found *after* the fallback is consulted. If the fallback callback returns `nil` (or a nil `LuaRef`) for a given key, normal lookup continues and the real property or function is returned. Conversely, if the callback returns a non-nil value the fallback result takes priority over any registered static property with the same name. + +```cpp +struct MyClass +{ + static int answer () { return 42; } +}; + +luabridge::getGlobalNamespace (L) + .beginClass ("MyClass") + .addStaticFunction ("answer", &MyClass::answer) + .addStaticIndexMetaMethod ([] (const luabridge::LuaRef& /*key*/, lua_State* L) -> luabridge::LuaRef + { + // Returning nil lets the registered static function be found normally + return luabridge::LuaRef (L, luabridge::LuaNil ()); + }) + .endClass (); +``` + +Then in lua: + +```lua +-- The registered static function is still callable because the fallback returned nil +result = MyClass.answer () +assert (result == 42) +``` + 2.8 - Lua Stack --------------- diff --git a/Tests/Source/ClassExtensibleTests.cpp b/Tests/Source/ClassExtensibleTests.cpp index 2dbba975..19eaa8a7 100644 --- a/Tests/Source/ClassExtensibleTests.cpp +++ b/Tests/Source/ClassExtensibleTests.cpp @@ -1022,3 +1022,137 @@ TEST_F(ClassExtensibleTests, StaticIndexFallbackReturnsNilForUnknownKey) runLua("result = X.unknown"); ASSERT_TRUE(result().isNil()); } + +TEST_F(ClassExtensibleTests, StaticIndexFallbackFallsThroughToExistingStaticProperty) +{ + // When the fallback returns nil for a key, the real static property must still be found. + int staticValue = 99; + + auto indexMetaMethod = [](const luabridge::LuaRef& /*key*/, lua_State* L) -> luabridge::LuaRef + { + // Always return nil so normal lookup proceeds + return luabridge::LuaRef(L); + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticProperty("answer", [&staticValue] { return staticValue; }) + .addStaticIndexMetaMethod(indexMetaMethod) + .endClass(); + + runLua("result = X.answer"); + ASSERT_EQ(99, result()); +} + +TEST_F(ClassExtensibleTests, StaticIndexFallbackFallsThroughToExistingStaticFunction) +{ + // When the fallback returns nil for a key, an existing static function must still be callable. + auto indexMetaMethod = [](const luabridge::LuaRef& /*key*/, lua_State* L) -> luabridge::LuaRef + { + return luabridge::LuaRef(L); + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticFunction("compute", []() { return 7; }) + .addStaticIndexMetaMethod(indexMetaMethod) + .endClass(); + + runLua("result = X.compute()"); + ASSERT_EQ(7, result()); +} + +TEST_F(ClassExtensibleTests, StaticIndexFallbackCanShadowExistingStaticProperty) +{ + // When the fallback returns a non-nil value for a key that also exists as a static + // property, the fallback result takes priority. + int staticValue = 10; + + auto indexMetaMethod = [](const luabridge::LuaRef& key, lua_State* L) -> luabridge::LuaRef + { + if (key.tostring() == "answer") + { + if (!luabridge::push(L, 999)) + lua_pushnil(L); + return luabridge::LuaRef::fromStack(L); + } + return luabridge::LuaRef(L); + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticProperty("answer", [&staticValue] { return staticValue; }) + .addStaticIndexMetaMethod(indexMetaMethod) + .endClass(); + + // Fallback returns 999 for "answer", not the registered property value (10) + runLua("result = X.answer"); + ASSERT_EQ(999, result()); +} + +TEST_F(ClassExtensibleTests, StaticNewIndexFallbackStandaloneWithoutIndexFallback) +{ + // newindex fallback should work even when no index fallback is registered. + // Assigning to an unknown key must not raise an error. + bool callbackInvoked = false; + + auto newIndexMetaMethod = [&callbackInvoked](const luabridge::LuaRef& /*key*/, const luabridge::LuaRef& value, lua_State*) -> luabridge::LuaRef + { + callbackInvoked = true; + return value; + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticNewIndexMetaMethod(newIndexMetaMethod) + .endClass(); + + ASSERT_TRUE(runLua("X.whatever = 42")); + ASSERT_TRUE(callbackInvoked); +} + +TEST_F(ClassExtensibleTests, StaticIndexAndNewIndexFallbackCoexistWithStaticProperty) +{ + // Register both fallbacks alongside a real static property. + // The fallback store handles unknown keys; the real property is unaffected. + std::unordered_map store; + int staticValue = 55; + + auto indexMetaMethod = [&store](const luabridge::LuaRef& key, lua_State* L) -> luabridge::LuaRef + { + auto it = store.find(key.tostring()); + if (it != store.end()) + { + if (!luabridge::push(L, it->second)) + lua_pushnil(L); + return luabridge::LuaRef::fromStack(L); + } + return luabridge::LuaRef(L); + }; + + auto newIndexMetaMethod = [&store](const luabridge::LuaRef& key, const luabridge::LuaRef& value, lua_State*) -> luabridge::LuaRef + { + if (value.isNumber()) + store[key.tostring()] = value.unsafe_cast(); + return value; + }; + + luabridge::getGlobalNamespace(L) + .beginClass("X") + .addStaticProperty("base", [&staticValue] { return staticValue; }) + .addStaticIndexMetaMethod(indexMetaMethod) + .addStaticNewIndexMetaMethod(newIndexMetaMethod) + .endClass(); + + // Real static property is accessible + runLua("result = X.base"); + ASSERT_EQ(55, result()); + + // Unknown key goes through the fallback store + runLua("X.extra = 100; result = X.extra"); + ASSERT_EQ(100, result()); + + // Real property is still accessible after fallback store mutations + runLua("result = X.base"); + ASSERT_EQ(55, result()); +}