| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- local action = _ACTION or ""
- solution "nanovg"
- location ( "build" )
- configurations { "Debug", "Release" }
- platforms {"native", "x64", "x32"}
- project "nanovg"
- language "C"
- kind "StaticLib"
- includedirs { "src" }
- files { "src/*.c" }
- targetdir("build")
- defines { "_CRT_SECURE_NO_WARNINGS" } --,"FONS_USE_FREETYPE" } Uncomment to compile with FreeType support
- configuration "Debug"
- defines { "DEBUG" }
- flags { "Symbols", "ExtraWarnings"}
- configuration "Release"
- defines { "NDEBUG" }
- flags { "Optimize", "ExtraWarnings"}
- project "example_gl2"
- kind "ConsoleApp"
- language "C"
- files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
- includedirs { "src", "example" }
- targetdir("build")
- links { "nanovg" }
- configuration { "linux" }
- linkoptions { "`pkg-config --libs glfw3`" }
- links { "GL", "GLU", "m", "GLEW" }
- defines { "NANOVG_GLEW" }
- configuration { "windows" }
- links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
- defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
- configuration { "macosx" }
- links { "glfw3" }
- linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
- configuration "Debug"
- defines { "DEBUG" }
- flags { "Symbols", "ExtraWarnings"}
- configuration "Release"
- defines { "NDEBUG" }
- flags { "Optimize", "ExtraWarnings"}
- project "example_gl3"
- kind "ConsoleApp"
- language "C"
- files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
- includedirs { "src", "example" }
- targetdir("build")
- links { "nanovg" }
- configuration { "linux" }
- linkoptions { "`pkg-config --libs glfw3`" }
- links { "GL", "GLU", "m", "GLEW" }
- defines { "NANOVG_GLEW" }
- configuration { "windows" }
- links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
- defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
- configuration { "macosx" }
- links { "glfw3" }
- linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
- configuration "Debug"
- defines { "DEBUG" }
- flags { "Symbols", "ExtraWarnings"}
- configuration "Release"
- defines { "NDEBUG" }
- flags { "Optimize", "ExtraWarnings"}
- project "example_gl2_msaa"
- kind "ConsoleApp"
- language "C"
- defines { "DEMO_MSAA" }
- files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
- includedirs { "src", "example" }
- targetdir("build")
- links { "nanovg" }
- configuration { "linux" }
- linkoptions { "`pkg-config --libs glfw3`" }
- links { "GL", "GLU", "m", "GLEW" }
- defines { "NANOVG_GLEW" }
- configuration { "windows" }
- links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
- defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
- configuration { "macosx" }
- links { "glfw3" }
- linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
- configuration "Debug"
- defines { "DEBUG" }
- flags { "Symbols", "ExtraWarnings"}
- configuration "Release"
- defines { "NDEBUG" }
- flags { "Optimize", "ExtraWarnings"}
- project "example_gl3_msaa"
- kind "ConsoleApp"
- language "C"
- defines { "DEMO_MSAA" }
- files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
- includedirs { "src", "example" }
- targetdir("build")
- links { "nanovg" }
- configuration { "linux" }
- linkoptions { "`pkg-config --libs glfw3`" }
- links { "GL", "GLU", "m", "GLEW" }
- defines { "NANOVG_GLEW" }
- configuration { "windows" }
- links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
- defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
- configuration { "macosx" }
- links { "glfw3" }
- linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
- 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" }
- links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
- defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
- configuration { "macosx" }
- links { "glfw3" }
- linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
- configuration "Debug"
- defines { "DEBUG" }
- flags { "Symbols", "ExtraWarnings"}
- configuration "Release"
- defines { "NDEBUG" }
- flags { "Optimize", "ExtraWarnings"}
- project "example_gles2"
- kind "ConsoleApp"
- language "C"
- files { "example/example_gles2.c", "example/demo.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" }
- links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
- defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
- configuration { "macosx" }
- links { "glfw3" }
- linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
- configuration "Debug"
- defines { "DEBUG" }
- flags { "Symbols", "ExtraWarnings"}
- configuration "Release"
- defines { "NDEBUG" }
- flags { "Optimize", "ExtraWarnings"}
- project "example_gles3"
- kind "ConsoleApp"
- language "C"
- files { "example/example_gles3.c", "example/demo.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" }
- links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
- defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
- configuration { "macosx" }
- links { "glfw3" }
- linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
- configuration "Debug"
- defines { "DEBUG" }
- flags { "Symbols", "ExtraWarnings"}
- configuration "Release"
- defines { "NDEBUG" }
- flags { "Optimize", "ExtraWarnings"}
|