diff --git a/examples/glview/README.md b/examples/glview/README.md index 747c367..34a0c3b 100644 --- a/examples/glview/README.md +++ b/examples/glview/README.md @@ -2,7 +2,7 @@ Simple OpenGL viewer for glTF geometry. ## Requirements -* premake4 : Requires recent `premake4` for macosx and linux, `premake5` for windows. +* premake5 : Requires recent `premake5`(alpha12 or later) for macosx and linux. `premake5` for windows is included in `$tinygltf/tools/window` directory. * GLEW * Ubuntu 16.04: sudo apt install libglew-dev * glfw3 @@ -19,7 +19,7 @@ Simple OpenGL viewer for glTF geometry. ### Windows(not tested well) -Edit glew and glfw path in `premake4.lua`, then +Edit glew and glfw path in `premake5.lua`, then > premake5.exe vs2013 diff --git a/examples/glview/premake4.lua b/examples/glview/premake5.lua similarity index 92% rename from examples/glview/premake4.lua rename to examples/glview/premake5.lua index b43be97..98bffc8 100644 --- a/examples/glview/premake4.lua +++ b/examples/glview/premake5.lua @@ -7,10 +7,10 @@ solution "glview" kind "ConsoleApp" language "C++" + cppdialect "C++11" files { "glview.cc", "trackball.cc" } includedirs { "./" } includedirs { "../../" } - flags "c++11" configuration { "linux" } linkoptions { "`pkg-config --libs glfw3`" } @@ -34,9 +34,10 @@ solution "glview" configuration "Debug" defines { "DEBUG" } - flags { "Symbols", "ExtraWarnings"} + symbols "On" + warnings "Extra" configuration "Release" defines { "NDEBUG" } - flags { "Optimize", "ExtraWarnings"} - + optimize "On" + warnings "Extra"