Support reading .obj from ZStd compressed format.

This commit is contained in:
Syoyo Fujita
2016-09-04 19:34:05 +09:00
parent b3feefafdf
commit 1b88a1e3c7
2 changed files with 92 additions and 0 deletions

View File

@@ -3,6 +3,11 @@ newoption {
description = "Build with zlib."
}
newoption {
trigger = "with-zstd",
description = "Build with ZStandard compression."
}
solution "objview"
-- location ( "build" )
configurations { "Release", "Debug" }
@@ -23,6 +28,11 @@ solution "objview"
links { 'z' }
end
if _OPTIONS['with-zstd'] then
defines { 'ENABLE_ZSTD' }
links { 'zstd' }
end
-- Uncomment if you want address sanitizer(gcc/clang only)
--buildoptions { "-fsanitize=address" }
--linkoptions { "-fsanitize=address" }