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

98 lines
1.9 KiB
Lua
Raw Normal View History

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"
include "libs/imgui"
--engine project
project "SakuraVNE" --project under solution
location "SakuraVNE"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
2024-06-24 19:53:47 +02:00
ignoredefaultlibraries { "MSVCRT" }
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" ..outputdir .. "/%{prj.name}")
files{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
includedirs{
"%{prj.name}/src",
"libs/spdlog/include",
"libs/imgui",
"libs/imgui/misc",
"libs/imgui/backends"
}
libdirs{
"libs/imgui/bin/" .. outputdir .. "/ImGui"
}
links{ --reference
"ImGui"
}
links{
"ImGui.lib"
}
filter "system:windows"
system "windows"
cppdialect "C++20"
staticruntime "off"
runtime "Release"
systemversion "latest"
defines{
"PLATFORM_WINDOWS"
}
includedirs{
"libs/sdl/windows/include"
}
links {
"SDL2",
"SDL2main"
}
libdirs{
"libs/sdl/windows/lib/x64/"
}
postbuildcommands{
("{COPY} ../libs/sdl/windows/lib/x64/SDL2.dll ../bin/" .. outputdir .. "/SakuraVNE")
}
filter "system:linux"
system "linux"
cppdialect "C++20"
staticruntime "off"
runtime "Release"
systemversion "latest"
defines{
"PLATFORM_LINUX"
}
filter "configurations:Debug"
defines "DEBUG"
symbols "On"
filter "configurations:Release"
defines "RELEASE"
optimize "On"
2024-06-24 10:57:20 +02:00
symbols "off"