light/Sandbox/build.lua

88 lines
1.4 KiB
Lua
Raw Normal View History

2021-05-20 11:49:24 +04:30
project "Sandbox"
-- Output Directories --
2021-05-21 15:00:29 +04:30
location "%{wks.location}/Sandbox/"
2021-05-20 11:49:24 +04:30
2021-08-21 15:53:36 +04:30
targetdir (target_dir)
objdir (object_dir)
2021-05-20 11:49:24 +04:30
-- Compiler --
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
-- Project Files ---
files
{
2021-08-21 15:53:36 +04:30
-- src
2021-05-20 11:49:24 +04:30
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp",
2021-05-27 10:41:32 +04:30
2021-08-21 15:53:36 +04:30
-- res
"%{prj.location}/res/**",
-- build.lua
"%{prj.location}/build.lua",
2021-05-20 11:49:24 +04:30
}
2021-08-21 15:53:36 +04:30
-- Includes --
2021-05-20 11:49:24 +04:30
includedirs
{
2021-08-21 15:53:36 +04:30
-- engine
"%{include_dirs.engine}",
"%{include_dirs.engine_platform_graphics}",
"%{include_dirs.engine_platform_os}",
2021-05-21 10:55:39 +04:30
-- 3rd party
2021-08-21 15:53:36 +04:30
"%{include_dirs.entt}",
"%{include_dirs.glm}",
"%{include_dirs.imgui}",
"%{include_dirs.imgui_backends}",
"%{include_dirs.spdlog}",
"%{include_dirs.stb_image}",
2021-05-20 11:49:24 +04:30
}
2021-08-21 15:53:36 +04:30
-- Links --
2021-05-20 11:49:24 +04:30
links
{
"Engine",
2021-05-27 10:41:32 +04:30
"GLFW",
"GLAD",
"ImGui",
"stb_image" ,
"entt",
2021-05-20 11:49:24 +04:30
}
--- Filters ---
-- windows
filter "system:windows"
2021-05-27 18:55:30 +04:30
defines "LIGHT_PLATFORM_WINDOWS"
2021-05-20 11:49:24 +04:30
systemversion "latest"
2021-05-25 21:22:01 +04:30
staticruntime "On"
2021-05-20 11:49:24 +04:30
flags { "MultiProcessorCompile" }
2021-06-26 13:09:11 +04:30
-- linux
filter "system:linux"
defines "LIGHT_PLATFORM_LINUX"
links
{
"dl",
"pthread",
}
2021-05-20 11:49:24 +04:30
-- debug
filter "configurations:Debug"
2021-06-15 09:39:11 +04:30
defines "LIGHT_DEBUG"
2021-05-20 11:49:24 +04:30
symbols "on"
2021-05-27 10:41:32 +04:30
-- release
2021-05-20 11:49:24 +04:30
filter "configurations:Release"
2021-06-15 09:39:11 +04:30
defines "LIGHT_RELEASE"
2021-05-20 11:49:24 +04:30
optimize "on"
-- distribution
filter "configurations:Distribution"
2021-06-15 09:39:11 +04:30
defines "LIGHT_DIST"
2021-08-21 15:53:36 +04:30
optimize "full"