ModelCompiler/premake5.lua

60 lines
1.1 KiB
Lua
Raw Normal View History

2023-03-15 19:26:39 +08:00
outputdir = "%{wks.location}/bin/%{cfg.buildcfg}"
interdir = "%{wks.location}/bin_int"
workspace "ModelCompile"
architecture "x64"
configurations
{
"Release",
"Debug"
}
2022-11-04 14:41:07 +08:00
project "ModelCompiler"
2022-11-01 13:49:45 +08:00
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
targetdir (outputdir)
objdir (interdir)
systemversion "latest"
files
{
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp",
"%{prj.location}/src/**.hpp"
2022-11-01 13:49:45 +08:00
}
includedirs
{
"%{prj.location}/src"
2022-11-01 13:49:45 +08:00
}
externalwarnings "Off"
flags
{
2022-11-01 13:49:45 +08:00
"MultiProcessorCompile"
}
2022-11-01 13:49:45 +08:00
warnings 'Extra'
defines {
"TINYGLTF_IMPLEMENTATION",
"TINYGLTF_NO_EXTERNAL_IMAGE",
"TINYGLTF_NO_INCLUDE_STB_IMAGE",
"TINYGLTF_NO_INCLUDE_STB_IMAGE_WRITE",
"TINYGLTF_NO_STB_IMAGE_WRITE",
"TINYGLTF_NO_STB_IMAGE",
"TINYGLTF_USE_CPP14"
}
2022-11-01 13:49:45 +08:00
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
2022-11-01 13:49:45 +08:00
filter "configurations:Release"
optimize "On"
defines{"_RELEASE"}
2022-11-01 13:49:45 +08:00
filter "configurations:Publish"
optimize "On"
defines{"_RELEASE, _PUBLISH"}