forked from memononen/SDF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
33 lines (25 loc) · 845 Bytes
/
premake4.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
local action = _ACTION or ""
solution "distancefield"
location ( "build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
project "example"
kind "ConsoleApp"
language "C"
files { "example/example.c" }
includedirs { "src", "example" }
targetdir("build")
configuration { "linux" }
linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLU", "m" }
configuration { "windows" }
links { "glfw3", "gdi32", "winmm", "user32", "glu32","opengl32" }
configuration { "macosx" }
links { "glfw3" }
linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"}
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}