2013-11-11 23:34:27 -08:00
|
|
|
|
|
|
|
local action = _ACTION or ""
|
|
|
|
|
|
|
|
solution "nanovg"
|
|
|
|
location ( "build" )
|
|
|
|
configurations { "Debug", "Release" }
|
|
|
|
platforms {"native", "x64", "x32"}
|
2017-02-23 06:52:02 -08:00
|
|
|
|
2014-02-09 07:33:31 -08:00
|
|
|
project "nanovg"
|
2013-11-11 23:34:27 -08:00
|
|
|
language "C"
|
2014-02-09 07:33:31 -08:00
|
|
|
kind "StaticLib"
|
2013-11-11 23:34:27 -08:00
|
|
|
includedirs { "src" }
|
2014-02-09 07:33:31 -08:00
|
|
|
files { "src/*.c" }
|
|
|
|
targetdir("build")
|
2014-06-21 02:22:49 -07:00
|
|
|
defines { "_CRT_SECURE_NO_WARNINGS" } --,"FONS_USE_FREETYPE" } Uncomment to compile with FreeType support
|
2017-02-23 06:52:02 -08:00
|
|
|
|
2014-04-13 09:01:25 -07:00
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
2014-05-22 06:53:02 -07:00
|
|
|
flags { "Optimize", "ExtraWarnings"}
|
2014-04-13 09:01:25 -07:00
|
|
|
|
2014-02-09 07:33:31 -08:00
|
|
|
project "example_gl2"
|
2014-06-21 02:22:49 -07:00
|
|
|
|
2014-02-09 07:33:31 -08:00
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C"
|
2014-02-18 11:40:52 -08:00
|
|
|
files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
|
2014-02-09 07:33:31 -08:00
|
|
|
includedirs { "src", "example" }
|
|
|
|
targetdir("build")
|
|
|
|
links { "nanovg" }
|
2014-05-22 06:53:02 -07:00
|
|
|
|
2014-02-09 07:33:31 -08:00
|
|
|
configuration { "linux" }
|
2014-04-24 08:15:06 -07:00
|
|
|
linkoptions { "`pkg-config --libs glfw3`" }
|
|
|
|
links { "GL", "GLU", "m", "GLEW" }
|
2014-02-09 07:33:31 -08:00
|
|
|
defines { "NANOVG_GLEW" }
|
|
|
|
|
|
|
|
configuration { "windows" }
|
2014-06-21 02:22:49 -07:00
|
|
|
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
|
|
|
|
defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
|
2014-02-09 07:33:31 -08:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
|
|
|
links { "glfw3" }
|
2017-02-23 06:52:02 -08:00
|
|
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
|
2014-02-09 07:33:31 -08:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
2014-05-22 06:53:02 -07:00
|
|
|
flags { "Optimize", "ExtraWarnings"}
|
2014-02-09 07:33:31 -08:00
|
|
|
|
|
|
|
project "example_gl3"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C"
|
2014-02-18 11:40:52 -08:00
|
|
|
files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
|
2014-02-09 07:33:31 -08:00
|
|
|
includedirs { "src", "example" }
|
2013-11-11 23:34:27 -08:00
|
|
|
targetdir("build")
|
2014-02-09 07:33:31 -08:00
|
|
|
links { "nanovg" }
|
2014-05-22 06:53:02 -07:00
|
|
|
|
2013-11-11 23:34:27 -08:00
|
|
|
configuration { "linux" }
|
2014-04-24 08:15:06 -07:00
|
|
|
linkoptions { "`pkg-config --libs glfw3`" }
|
|
|
|
links { "GL", "GLU", "m", "GLEW" }
|
2014-02-02 04:23:55 -08:00
|
|
|
defines { "NANOVG_GLEW" }
|
2013-11-11 23:34:27 -08:00
|
|
|
|
|
|
|
configuration { "windows" }
|
2014-06-21 02:22:49 -07:00
|
|
|
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
|
|
|
|
defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
|
2013-11-11 23:34:27 -08:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
|
|
|
links { "glfw3" }
|
2017-02-23 06:52:02 -08:00
|
|
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
|
2014-02-14 03:11:32 -08:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
2014-05-22 06:53:02 -07:00
|
|
|
flags { "Optimize", "ExtraWarnings"}
|
2014-02-14 03:11:32 -08:00
|
|
|
|
|
|
|
project "example_gl2_msaa"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C"
|
|
|
|
defines { "DEMO_MSAA" }
|
2014-02-18 11:40:52 -08:00
|
|
|
files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
|
2014-02-14 03:11:32 -08:00
|
|
|
includedirs { "src", "example" }
|
|
|
|
targetdir("build")
|
|
|
|
links { "nanovg" }
|
2014-05-22 06:53:02 -07:00
|
|
|
|
2014-02-14 03:11:32 -08:00
|
|
|
configuration { "linux" }
|
2014-04-24 08:15:06 -07:00
|
|
|
linkoptions { "`pkg-config --libs glfw3`" }
|
|
|
|
links { "GL", "GLU", "m", "GLEW" }
|
2014-02-14 03:11:32 -08:00
|
|
|
defines { "NANOVG_GLEW" }
|
|
|
|
|
|
|
|
configuration { "windows" }
|
2014-06-21 02:22:49 -07:00
|
|
|
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
|
|
|
|
defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
|
2014-02-14 03:11:32 -08:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
|
|
|
links { "glfw3" }
|
2017-02-23 06:52:02 -08:00
|
|
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
|
2014-02-14 03:11:32 -08:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
2014-05-22 06:53:02 -07:00
|
|
|
flags { "Optimize", "ExtraWarnings"}
|
2014-02-14 03:11:32 -08:00
|
|
|
|
|
|
|
project "example_gl3_msaa"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C"
|
|
|
|
defines { "DEMO_MSAA" }
|
2014-02-18 11:40:52 -08:00
|
|
|
files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
|
2014-02-14 03:11:32 -08:00
|
|
|
includedirs { "src", "example" }
|
|
|
|
targetdir("build")
|
|
|
|
links { "nanovg" }
|
2014-05-22 06:53:02 -07:00
|
|
|
|
2014-02-14 03:11:32 -08:00
|
|
|
configuration { "linux" }
|
2014-04-24 08:15:06 -07:00
|
|
|
linkoptions { "`pkg-config --libs glfw3`" }
|
|
|
|
links { "GL", "GLU", "m", "GLEW" }
|
2014-02-14 03:11:32 -08:00
|
|
|
defines { "NANOVG_GLEW" }
|
|
|
|
|
|
|
|
configuration { "windows" }
|
2014-06-21 02:22:49 -07:00
|
|
|
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
|
|
|
|
defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
|
2014-06-15 01:08:12 -07:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
|
|
|
links { "glfw3" }
|
2017-02-23 06:52:02 -08:00
|
|
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
|
2014-06-15 01:08:12 -07:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
|
|
|
flags { "Optimize", "ExtraWarnings"}
|
|
|
|
|
|
|
|
project "example_fbo"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C"
|
|
|
|
files { "example/example_fbo.c", "example/perf.c" }
|
|
|
|
includedirs { "src", "example" }
|
|
|
|
targetdir("build")
|
|
|
|
links { "nanovg" }
|
|
|
|
|
|
|
|
configuration { "linux" }
|
|
|
|
linkoptions { "`pkg-config --libs glfw3`" }
|
|
|
|
links { "GL", "GLU", "m", "GLEW" }
|
|
|
|
|
|
|
|
configuration { "windows" }
|
2014-06-21 02:22:49 -07:00
|
|
|
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
|
|
|
|
defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
|
2014-02-14 03:11:32 -08:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
|
|
|
links { "glfw3" }
|
2017-02-23 06:52:02 -08:00
|
|
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
|
2013-11-11 23:34:27 -08:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
2014-05-22 06:53:02 -07:00
|
|
|
flags { "Optimize", "ExtraWarnings"}
|
2014-02-14 01:26:01 -08:00
|
|
|
|
|
|
|
project "example_gles2"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C"
|
2014-02-18 11:40:52 -08:00
|
|
|
files { "example/example_gles2.c", "example/demo.c", "example/perf.c" }
|
2014-02-14 01:26:01 -08:00
|
|
|
includedirs { "src", "example" }
|
|
|
|
targetdir("build")
|
|
|
|
links { "nanovg" }
|
2014-05-22 06:53:02 -07:00
|
|
|
|
2014-02-14 01:26:01 -08:00
|
|
|
configuration { "linux" }
|
2014-04-24 08:15:06 -07:00
|
|
|
linkoptions { "`pkg-config --libs glfw3`" }
|
|
|
|
links { "GL", "GLU", "m", "GLEW" }
|
2014-02-14 05:54:04 -08:00
|
|
|
|
|
|
|
configuration { "windows" }
|
2014-06-21 02:22:49 -07:00
|
|
|
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
|
|
|
|
defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
|
2014-02-14 05:54:04 -08:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
|
|
|
links { "glfw3" }
|
2017-02-23 06:52:02 -08:00
|
|
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
|
2014-02-14 05:54:04 -08:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
|
|
|
flags { "Optimize", "ExtraWarnings"}
|
|
|
|
|
|
|
|
project "example_gles3"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C"
|
2014-02-18 11:40:52 -08:00
|
|
|
files { "example/example_gles3.c", "example/demo.c", "example/perf.c" }
|
2014-02-14 05:54:04 -08:00
|
|
|
includedirs { "src", "example" }
|
|
|
|
targetdir("build")
|
|
|
|
links { "nanovg" }
|
2014-05-22 06:53:02 -07:00
|
|
|
|
2014-02-14 05:54:04 -08:00
|
|
|
configuration { "linux" }
|
2014-04-24 08:15:06 -07:00
|
|
|
linkoptions { "`pkg-config --libs glfw3`" }
|
|
|
|
links { "GL", "GLU", "m", "GLEW" }
|
2014-02-14 01:26:01 -08:00
|
|
|
|
|
|
|
configuration { "windows" }
|
2014-06-21 02:22:49 -07:00
|
|
|
links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
|
|
|
|
defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
|
2014-02-14 01:26:01 -08:00
|
|
|
|
|
|
|
configuration { "macosx" }
|
|
|
|
links { "glfw3" }
|
2017-02-23 06:52:02 -08:00
|
|
|
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
|
2014-02-14 01:26:01 -08:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
defines { "DEBUG" }
|
|
|
|
flags { "Symbols", "ExtraWarnings"}
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
defines { "NDEBUG" }
|
2014-05-22 06:53:02 -07:00
|
|
|
flags { "Optimize", "ExtraWarnings"}
|