-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake4.lua
47 lines (40 loc) · 1.15 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
local action = _ACTION or ""
solution "nanovg"
configurations { "Debug", "Release" }
location ( "build" )
libdirs { "../nanovg/build" }
platforms { "native", "x32", "x64" }
project "repl"
files { "src/replmain.c", "src/repl.c" }
includedirs { "src", "../nanovg/src" }
kind "ConsoleApp"
language "C"
links { "nanovg" }
targetdir("build")
configuration { "linux" }
defines { "NANOVG_GLEW" }
linkoptions { "`pkg-config --libs glfw3`" }
links { "GL", "GLEW", "GLU", "m" }
configuration { "windows" }
defines { "_CRT_SECURE_NO_WARNINGS", "NANOVG_GLEW" }
links { "gdi32",
"GLEW",
"glfw3",
"glu32",
"kernel32",
"opengl32",
"user32",
"winmm" }
configuration { "macosx" }
linkoptions { "-framework Carbon",
"-framework Cocoa",
"-framework CoreVideo",
"-framework IOKit",
"-framework OpenGL" }
links { "glfw" }
configuration "Debug"
defines { "DEBUG" }
flags { "ExtraWarnings", "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "ExtraWarnings", "Optimize" }