|
@@ -5,13 +5,14 @@ solution "nanovg" |
|
|
location ( "build" ) |
|
|
location ( "build" ) |
|
|
configurations { "Debug", "Release" } |
|
|
configurations { "Debug", "Release" } |
|
|
platforms {"native", "x64", "x32"} |
|
|
platforms {"native", "x64", "x32"} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
project "nanovg" |
|
|
project "nanovg" |
|
|
language "C" |
|
|
language "C" |
|
|
kind "StaticLib" |
|
|
kind "StaticLib" |
|
|
includedirs { "src" } |
|
|
includedirs { "src" } |
|
|
files { "src/*.c" } |
|
|
files { "src/*.c" } |
|
|
targetdir("build") |
|
|
targetdir("build") |
|
|
|
|
|
--defines { "FONS_USE_FREETYPE" } -- Uncomment to compile with FreeType support |
|
|
|
|
|
|
|
|
configuration "Debug" |
|
|
configuration "Debug" |
|
|
defines { "DEBUG" } |
|
|
defines { "DEBUG" } |
|
@@ -19,7 +20,7 @@ solution "nanovg" |
|
|
|
|
|
|
|
|
configuration "Release" |
|
|
configuration "Release" |
|
|
defines { "NDEBUG" } |
|
|
defines { "NDEBUG" } |
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
project "example_gl2" |
|
|
project "example_gl2" |
|
|
kind "ConsoleApp" |
|
|
kind "ConsoleApp" |
|
@@ -28,7 +29,7 @@ solution "nanovg" |
|
|
includedirs { "src", "example" } |
|
|
includedirs { "src", "example" } |
|
|
targetdir("build") |
|
|
targetdir("build") |
|
|
links { "nanovg" } |
|
|
links { "nanovg" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration { "linux" } |
|
|
configuration { "linux" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
@@ -48,7 +49,7 @@ solution "nanovg" |
|
|
|
|
|
|
|
|
configuration "Release" |
|
|
configuration "Release" |
|
|
defines { "NDEBUG" } |
|
|
defines { "NDEBUG" } |
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
project "example_gl3" |
|
|
project "example_gl3" |
|
|
kind "ConsoleApp" |
|
|
kind "ConsoleApp" |
|
@@ -57,7 +58,7 @@ solution "nanovg" |
|
|
includedirs { "src", "example" } |
|
|
includedirs { "src", "example" } |
|
|
targetdir("build") |
|
|
targetdir("build") |
|
|
links { "nanovg" } |
|
|
links { "nanovg" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration { "linux" } |
|
|
configuration { "linux" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
@@ -77,7 +78,7 @@ solution "nanovg" |
|
|
|
|
|
|
|
|
configuration "Release" |
|
|
configuration "Release" |
|
|
defines { "NDEBUG" } |
|
|
defines { "NDEBUG" } |
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
project "example_gl2_msaa" |
|
|
project "example_gl2_msaa" |
|
|
kind "ConsoleApp" |
|
|
kind "ConsoleApp" |
|
@@ -87,7 +88,7 @@ solution "nanovg" |
|
|
includedirs { "src", "example" } |
|
|
includedirs { "src", "example" } |
|
|
targetdir("build") |
|
|
targetdir("build") |
|
|
links { "nanovg" } |
|
|
links { "nanovg" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration { "linux" } |
|
|
configuration { "linux" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
@@ -107,7 +108,7 @@ solution "nanovg" |
|
|
|
|
|
|
|
|
configuration "Release" |
|
|
configuration "Release" |
|
|
defines { "NDEBUG" } |
|
|
defines { "NDEBUG" } |
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
project "example_gl3_msaa" |
|
|
project "example_gl3_msaa" |
|
|
kind "ConsoleApp" |
|
|
kind "ConsoleApp" |
|
@@ -117,7 +118,7 @@ solution "nanovg" |
|
|
includedirs { "src", "example" } |
|
|
includedirs { "src", "example" } |
|
|
targetdir("build") |
|
|
targetdir("build") |
|
|
links { "nanovg" } |
|
|
links { "nanovg" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration { "linux" } |
|
|
configuration { "linux" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
@@ -137,7 +138,7 @@ solution "nanovg" |
|
|
|
|
|
|
|
|
configuration "Release" |
|
|
configuration "Release" |
|
|
defines { "NDEBUG" } |
|
|
defines { "NDEBUG" } |
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
project "example_gles2" |
|
|
project "example_gles2" |
|
|
kind "ConsoleApp" |
|
|
kind "ConsoleApp" |
|
@@ -146,7 +147,7 @@ solution "nanovg" |
|
|
includedirs { "src", "example" } |
|
|
includedirs { "src", "example" } |
|
|
targetdir("build") |
|
|
targetdir("build") |
|
|
links { "nanovg" } |
|
|
links { "nanovg" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration { "linux" } |
|
|
configuration { "linux" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
@@ -174,7 +175,7 @@ solution "nanovg" |
|
|
includedirs { "src", "example" } |
|
|
includedirs { "src", "example" } |
|
|
targetdir("build") |
|
|
targetdir("build") |
|
|
links { "nanovg" } |
|
|
links { "nanovg" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration { "linux" } |
|
|
configuration { "linux" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
linkoptions { "`pkg-config --libs glfw3`" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
|
links { "GL", "GLU", "m", "GLEW" } |
|
@@ -193,4 +194,4 @@ solution "nanovg" |
|
|
|
|
|
|
|
|
configuration "Release" |
|
|
configuration "Release" |
|
|
defines { "NDEBUG" } |
|
|
defines { "NDEBUG" } |
|
|
flags { "Optimize", "ExtraWarnings"} |
|
|
|
|
|
|
|
|
flags { "Optimize", "ExtraWarnings"} |