building spdlog from source
This commit is contained in:
17
premake5.lua
17
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user