mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-22 14:09:55 +08:00
Update premake script for glview example. Fixes #39.
This commit is contained in:
parent
c7ae1a3e76
commit
b09d660c38
@ -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
|
||||||
|
|
||||||
|
@ -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"
|
Loading…
x
Reference in New Issue
Block a user