This repository has been archived on 2026-03-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SakuraVNE_old/premake5.lua

120 lines
3.4 KiB
Lua
Raw Normal View History

require "plugins/ecc"
workspace "SakuraVNE"
architecture "x64"
2024-06-24 10:57:20 +02:00
startproject "SakuraVNE"
configurations{
"Debug",
"Release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["ImGui"] = "/libs/imgui"
2026-02-25 11:29:39 +01:00
IncludeDir["ImGuiNodeEditor"] = "/libs/imgui-node-editor"
IncludeDir["SDL3"] = "/libs/sdl3"
2026-02-26 16:17:50 +01:00
IncludeDir["spdlog"] = "/libs/spdlog"
include "libs/imgui"
2026-02-25 18:51:34 +01:00
include "libs/imgui-node-editor"
project "SakuraVNE"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
2024-06-24 19:53:47 +02:00
ignoredefaultlibraries { "MSVCRT" }
2026-02-15 20:02:54 +01:00
targetdir ("build/bin/" .. outputdir .. "/%{prj.name}")
objdir ("build/bin-int/" ..outputdir .. "/%{prj.name}")
local root_path = os.getcwd():gsub("\\", "/")
prebuildcommands {
"echo ==== Building SDL3 via CMake ====",
"cmake -E make_directory \"" .. root_path .. "/build/bin/" .. outputdir .. "/SDL3\"",
"cmake -S libs/sdl3 -B \"" .. root_path .. "/build/bin-int/" .. outputdir .. "/SDL3\" -DCMAKE_BUILD_TYPE=Release " ..
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=\"" .. root_path .. "/build/bin/" .. outputdir .. "/SDL3\" " ..
"-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=\"" .. root_path .. "/build/bin/" .. outputdir .. "/SDL3\" " ..
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=\"" .. root_path .. "/build/bin/" .. outputdir .. "/SDL3\"",
"cmake --build \"" .. root_path .. "/build/bin-int/" .. outputdir .. "/SDL3\" --config Release -j"
}
2026-02-26 16:17:50 +01:00
prebuildcommands{
"echo ==== Building spdlog via CMake ====",
"cmake -E make_directory \"" .. root_path .. "/build/bin/" ..outputdir .. "/spdlog\"",
2026-02-26 16:17:50 +01:00
"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\"",
"cmake -E copy \"" .. root_path .. "/build/bin-int/" .. outputdir .. "/spdlog/\"libspdlog* \"" .. root_path .. "/build/bin/" .. outputdir .. "/spdlog/\""
2026-02-26 16:17:50 +01:00
}
files{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
includedirs{
"%{prj.name}/src",
"libs/spdlog/include",
"libs/imgui",
"libs/imgui/misc",
2026-02-25 18:51:34 +01:00
"libs/imgui/backends",
"libs/imgui-node-editor",
"libs/sdl3/include"
}
libdirs{
2026-02-25 18:51:34 +01:00
"build/bin/" .. outputdir .. "/ImGui",
"build/bin/" .. outputdir .. "/ImGuiNodeEditor",
"build/bin/" .. outputdir .. "/SDL3",
2026-02-26 16:17:50 +01:00
"build/bin/" .. outputdir .. "/spdlog"
}
links{
2026-02-25 18:51:34 +01:00
"ImGui",
"ImGuiNodeEditor",
2026-02-26 16:17:50 +01:00
"SDL3",
"spdlog"
}
filter "system:windows"
system "windows"
cppdialect "C++20"
staticruntime "off"
runtime "Release"
systemversion "latest"
defines{
"PLATFORM_WINDOWS"
}
filter "system:linux"
system "linux"
cppdialect "C++20"
staticruntime "off"
runtime "Release"
systemversion "latest"
defines{
"PLATFORM_LINUX"
}
links {
"dl",
"pthread"
}
filter "configurations:Debug"
defines "DEBUG"
symbols "On"
filter "configurations:Release"
defines "RELEASE"
optimize "On"
symbols "off"