From e894cc36c0277224dff212d8750229bddc78886e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Thu, 26 Feb 2026 16:17:50 +0100 Subject: [PATCH] building spdlog from source --- .gitignore | 2 ++ libs/imgui-node-editor | 2 +- premake5.lua | 17 +++++++++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 5e55eed..77d2ecf 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ Build/ **.csprojMakefile compile_commands.json Makefile +/SakuraVNE.make +/imgui.ini diff --git a/libs/imgui-node-editor b/libs/imgui-node-editor index 96c9386..5668043 160000 --- a/libs/imgui-node-editor +++ b/libs/imgui-node-editor @@ -1 +1 @@ -Subproject commit 96c9386c86a156a91e25db75d82aec7730de09e8 +Subproject commit 566804348aa64de3a37a7ccb1700e4fef6c447d9 diff --git a/premake5.lua b/premake5.lua index b134360..d023b55 100644 --- a/premake5.lua +++ b/premake5.lua @@ -15,10 +15,10 @@ workspace "SakuraVNE" IncludeDir["ImGui"] = "/libs/imgui" IncludeDir["ImGuiNodeEditor"] = "/libs/imgui-node-editor" IncludeDir["SDL3"] = "/libs/sdl3" + IncludeDir["spdlog"] = "/libs/spdlog" include "libs/imgui" include "libs/imgui-node-editor" - --include "libs/sdl3" project "SakuraVNE" --project under solution --location "SakuraVNE" @@ -48,6 +48,14 @@ project "SakuraVNE" --project under solution "cmake --build \"" .. root_path .. "/build/bin-int/" .. outputdir .. "/SDL3\" --config Release -j" } + prebuildcommands{ + "echo ==== Building spdlog via CMake ====", + "mkdir -p \"" .. root_path .. "/build/bin/" ..outputdir .. "/spdlog\"", + "cmake -S libs/spdlog -B \"" .. root_path .. "/build/bin-int/" ..outputdir .. "/spdlog\" -DCMAKE_BUILD_TYPE=Release", + "cmake --build \"" .. root_path .. "/build/bin-int/" ..outputdir .. "/spdlog\"", + "cp \"" .. root_path .. "/build/bin-int/" .. outputdir .. "/spdlog/\"libspdlog* \"" .. root_path .. "/build/bin/" .. outputdir .. "/spdlog/\"" + } + files{ "%{prj.name}/src/**.h", "%{prj.name}/src/**.cpp" @@ -66,13 +74,15 @@ project "SakuraVNE" --project under solution libdirs{ "build/bin/" .. outputdir .. "/ImGui", "build/bin/" .. outputdir .. "/ImGuiNodeEditor", - "build/bin/" .. outputdir .. "/SDL3" + "build/bin/" .. outputdir .. "/SDL3", + "build/bin/" .. outputdir .. "/spdlog" } links{ "ImGui", "ImGuiNodeEditor", - "SDL3" + "SDL3", + "spdlog" } filter "system:windows" @@ -114,7 +124,6 @@ project "SakuraVNE" --project under solution -- TELL THE LINKER TO USE SYSTEM LIBS links { - --"GL", -- OpenGL is usually required for ImGui/SDL apps "dl", -- Dynamic linking loader (often needed) "pthread" -- POSIX threads (often needed) }