From 04fd2b7647ebb0b3ed3089d65cf85aa9c2e8a1c8 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Wed, 24 Jul 2024 00:36:01 +0700 Subject: [PATCH] Build: Don't build CMake projects in the vcxproj because it doesn't work with GitHub Actions --- ...encyProjects.bat => BuildDependenciesDebug.bat | 5 +++++ BuildDependenciesRelease.bat | 15 +++++++++++++++ ExplorerPatcher/ExplorerPatcher.vcxproj | 6 ------ ep_gui/ep_gui.vcxproj | 3 --- ep_setup/ep_setup.vcxproj | 3 --- 5 files changed, 20 insertions(+), 12 deletions(-) rename GenerateDependencyProjects.bat => BuildDependenciesDebug.bat (82%) create mode 100644 BuildDependenciesRelease.bat diff --git a/GenerateDependencyProjects.bat b/BuildDependenciesDebug.bat similarity index 82% rename from GenerateDependencyProjects.bat rename to BuildDependenciesDebug.bat index 59c8c5f..487386f 100644 --- a/GenerateDependencyProjects.bat +++ b/BuildDependenciesDebug.bat @@ -8,3 +8,8 @@ cmake libs/funchook -Blibs/funchook/build-x64 -G "Visual Studio 17 2022" -A x64 cmake libs/funchook -Blibs/funchook/build-arm64 -G "Visual Studio 17 2022" -A ARM64 -D"CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DFUNCHOOK_CPU=arm64 -DFUNCHOOK_DISASM=capstone -DFUNCHOOK_BUILD_TESTS=OFF cmake libs/zlib -Blibs/zlib/build-x64 -G "Visual Studio 17 2022" -A x64 -D"CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW cmake libs/zlib -Blibs/zlib/build-arm64 -G "Visual Studio 17 2022" -A ARM64 -D"CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW + +cmake --build libs/funchook/build-x64 --config Debug +cmake --build libs/funchook/build-arm64 --config Debug +cmake --build libs/zlib/build-x64 --config Debug +cmake --build libs/zlib/build-arm64 --config Debug diff --git a/BuildDependenciesRelease.bat b/BuildDependenciesRelease.bat new file mode 100644 index 0000000..3490247 --- /dev/null +++ b/BuildDependenciesRelease.bat @@ -0,0 +1,15 @@ +rmdir /s /q libs\funchook\build +rmdir /s /q libs\funchook\build-x64 +rmdir /s /q libs\funchook\build-arm64 +rmdir /s /q libs\zlib\build-x64 +rmdir /s /q libs\zlib\build-arm64 + +cmake libs/funchook -Blibs/funchook/build-x64 -G "Visual Studio 17 2022" -A x64 -D"CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DFUNCHOOK_CPU=x86 -DFUNCHOOK_BUILD_TESTS=OFF +cmake libs/funchook -Blibs/funchook/build-arm64 -G "Visual Studio 17 2022" -A ARM64 -D"CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DFUNCHOOK_CPU=arm64 -DFUNCHOOK_DISASM=capstone -DFUNCHOOK_BUILD_TESTS=OFF +cmake libs/zlib -Blibs/zlib/build-x64 -G "Visual Studio 17 2022" -A x64 -D"CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW +cmake libs/zlib -Blibs/zlib/build-arm64 -G "Visual Studio 17 2022" -A ARM64 -D"CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW + +cmake --build libs/funchook/build-x64 --config Release +cmake --build libs/funchook/build-arm64 --config Release +cmake --build libs/zlib/build-x64 --config Release +cmake --build libs/zlib/build-arm64 --config Release diff --git a/ExplorerPatcher/ExplorerPatcher.vcxproj b/ExplorerPatcher/ExplorerPatcher.vcxproj index 2796ef8..56a526d 100644 --- a/ExplorerPatcher/ExplorerPatcher.vcxproj +++ b/ExplorerPatcher/ExplorerPatcher.vcxproj @@ -307,9 +307,6 @@ - - - @@ -320,7 +317,4 @@ - - - \ No newline at end of file diff --git a/ep_gui/ep_gui.vcxproj b/ep_gui/ep_gui.vcxproj index ff2c2bf..0a1acd4 100644 --- a/ep_gui/ep_gui.vcxproj +++ b/ep_gui/ep_gui.vcxproj @@ -168,7 +168,4 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - \ No newline at end of file diff --git a/ep_setup/ep_setup.vcxproj b/ep_setup/ep_setup.vcxproj index b283947..217d530 100644 --- a/ep_setup/ep_setup.vcxproj +++ b/ep_setup/ep_setup.vcxproj @@ -379,9 +379,6 @@ - - -