-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake4.lua
More file actions
40 lines (30 loc) · 835 Bytes
/
premake4.lua
File metadata and controls
40 lines (30 loc) · 835 Bytes
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
solution "john"
-- release first so it is the default option
configurations { "release", "debug" }
platforms { "x64" }
location "build"
buildflags = { "-Wall", "-pedantic" }
configuration { "debug" }
defines { "DEBUG" }
flags { "Symbols" }
targetdir "bin/debug"
configuration { "release" }
defines { "NDEBUG" }
flags { "Optimize" }
targetdir "bin/release"
configuration "macosx"
linkoptions { "-std=c++11", "-stdlib=libc++" }
buildoptions { "-std=c++11", "-stdlib=libc++" }
configuration "vs*"
defines { "__VS" }
project "john"
kind "ConsoleApp"
language "C++"
files { "src/**.cpp", "inc/**.h" }
excludes { "src/test.cpp", "inc/test.h" }
includedirs { "./inc" }
-- a nice cleanup
if _ACTION == "clean" then
os.rmdir("bin")
os.rmdir("build")
end