Update premake script for glview example. Fixes #39.

This commit is contained in:
Syoyo Fujita 2018-02-23 01:09:58 +09:00
parent c7ae1a3e76
commit b09d660c38
2 changed files with 7 additions and 6 deletions

View File

@ -2,7 +2,7 @@ Simple OpenGL viewer for glTF geometry.
## Requirements ## 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 * GLEW
* Ubuntu 16.04: sudo apt install libglew-dev * Ubuntu 16.04: sudo apt install libglew-dev
* glfw3 * glfw3
@ -19,7 +19,7 @@ Simple OpenGL viewer for glTF geometry.
### Windows(not tested well) ### 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 > premake5.exe vs2013

View File

@ -7,10 +7,10 @@ solution "glview"
kind "ConsoleApp" kind "ConsoleApp"
language "C++" language "C++"
cppdialect "C++11"
files { "glview.cc", "trackball.cc" } files { "glview.cc", "trackball.cc" }
includedirs { "./" } includedirs { "./" }
includedirs { "../../" } includedirs { "../../" }
flags "c++11"
configuration { "linux" } configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" } linkoptions { "`pkg-config --libs glfw3`" }
@ -34,9 +34,10 @@ solution "glview"
configuration "Debug" configuration "Debug"
defines { "DEBUG" } defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"} symbols "On"
warnings "Extra"
configuration "Release" configuration "Release"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"} optimize "On"
warnings "Extra"