-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake4.lua
44 lines (34 loc) · 1.19 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
solution "Nemu"
configurations {"Debug", "Release"}
location ("build")
project "Nemu"
kind "ConsoleApp"
language "c++"
files {"src/**.cpp", "src/**.hpp", "src/**.c", "src/**.h"}
includedirs {"includes"}
libdirs {"libs"}
buildoptions "-std=c++11"
objdir "bin/obj"
targetdir "bin"
configuration "windows"
postbuildcommands { "copy $(TargetPath) $(TargetDir)..\\working\\Nemu.exe" }
defines "WIN32"
links { "glfw3", "opengl32", "glu32", "glew32" }
configuration "linux"
postbuildcommands { "cp $@ ../working/Nemu" }
defines "LINUX"
links { "GL", "GLU", "GLEW", "glfw3", "X11", "Xxf86vm", "Xrandr", "Xcursor", "pthread", "Xi", "m" }
configuration "macosx"
postbuildcommands { "cp $@ ../working/Nemu" }
defines "OSX"
links { "glfw3", "GLEW" }
linkoptions { "-stdlib=libc++" }
linkoptions { "-flto" }
linkoptions { "-framework Cocoa -framework CoreData -framework OpenGL -framework CoreVideo -framework AGL -framework IOKit" }
configuration "Debug"
targetsuffix "D"
defines "_DEBUG"
flags "Symbols"
configuration "Release"
defines "NDEBUG"
flags {"OptimizeSpeed", "NoFramePointer", "ExtraWarnings", "NoEditAndContinue"}