Skip to content
Myr

premake4.lua

This file

Path

3rd-party/nanosvg/premake4.lua

56 lines · 1.4 KiB

Last changed by

Not known.

History of this file

Take it

12local action = _ACTION or ""34solution "nanosvg"5	location ( "build" )6	configurations { "Debug", "Release" }7	platforms {"native", "x64", "x32"}8  9	project "example1"10		kind "ConsoleApp"11		language "C++"12		files { "example/example1.c", "example/*.h", "src/*.h" }13		includedirs { "example", "src" }14		targetdir("build")15	 16		configuration { "linux" }17			 links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "glfw" }1819		configuration { "windows" }20			 links { "glu32","opengl32", "gdi32", "winmm", "user32" }2122		configuration { "macosx" }23			links { "glfw3" }24			linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }2526		configuration "Debug"27			defines { "DEBUG" }28			flags { "Symbols", "ExtraWarnings"}2930		configuration "Release"31			defines { "NDEBUG" }32			flags { "Optimize", "ExtraWarnings"}    3334	project "example2"35		kind "ConsoleApp"36		language "C++"37		files { "example/example2.c", "example/*.h", "src/*.h" }38		includedirs { "example", "src" }39		targetdir("build")40	 41		configuration { "linux" }42			 links { "X11","Xrandr", "rt", "pthread" }4344		configuration { "windows" }45			 links { "winmm", "user32" }4647		configuration { "macosx" }48			linkoptions { "-framework Cocoa", "-framework IOKit" }4950		configuration "Debug"51			defines { "DEBUG" }52			flags { "Symbols", "ExtraWarnings"}5354		configuration "Release"55			defines { "NDEBUG" }56			flags { "Optimize", "ExtraWarnings"}