2023-03-07 17:12:53 +08:00
|
|
|
-- outputdir = "%{wks.location}/bin/%{cfg.buildcfg}"
|
|
|
|
-- interdir = "%{wks.location}/bin_int"
|
|
|
|
-- workspace "ModelCompile"
|
|
|
|
-- architecture "x64"
|
|
|
|
-- configurations
|
|
|
|
-- {
|
|
|
|
-- "Release",
|
|
|
|
-- "Debug"
|
|
|
|
-- }
|
2022-11-02 21:10:44 +08:00
|
|
|
|
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",
|
2023-02-27 21:57:24 +08:00
|
|
|
"%{prj.location}/src/**.hpp"
|
2022-11-01 13:49:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
includedirs
|
|
|
|
{
|
2023-03-07 16:16:38 +08:00
|
|
|
"%{prj.location}/src"
|
2022-11-01 13:49:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
externalwarnings "Off"
|
|
|
|
|
2022-10-19 18:37:27 +08:00
|
|
|
flags
|
|
|
|
{
|
2022-11-01 13:49:45 +08:00
|
|
|
"MultiProcessorCompile"
|
2022-10-19 18:37:27 +08:00
|
|
|
}
|
2022-11-01 13:49:45 +08:00
|
|
|
|
|
|
|
warnings 'Extra'
|
2023-03-07 16:16:38 +08:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
2022-11-01 13:49:45 +08:00
|
|
|
|
|
|
|
filter "configurations:Debug"
|
|
|
|
symbols "On"
|
|
|
|
defines {"_DEBUG"}
|
2022-10-19 18:37:27 +08:00
|
|
|
|
2022-11-01 13:49:45 +08:00
|
|
|
filter "configurations:Release"
|
|
|
|
optimize "On"
|
|
|
|
defines{"_RELEASE"}
|
2022-10-19 18:37:27 +08:00
|
|
|
|
2022-11-01 13:49:45 +08:00
|
|
|
filter "configurations:Publish"
|
|
|
|
optimize "On"
|
2023-03-07 16:16:38 +08:00
|
|
|
defines{"_RELEASE, _PUBLISH"}
|