-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
61 lines (48 loc) · 1.63 KB
/
premake5.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
48
49
50
51
52
53
54
55
56
57
58
59
60
-- Copper premake script file by Nicolaus Anderson
-- Copyright 2017, Nicolaus Anderson
-- Usage: premake5 --file=premake5.lua [gmake, vs2015, ..]
-- The make config=[some configuration] requires that the configuration be in lowercase letters.
workspace "Copper"
configurations { "ConsoleApp", "DebugAll", "DebugFe" }
location "build"
filter { "configurations:ConsoleApp" }
targetdir "bin/ConsoleApp"
optimize "On"
filter { "configurations:DebugAll or DebugFe" }
targetdir "bin/debug"
-- optimize "Debug"
filter { "configurations:DebugAll" }
warnings "Extra"
filter { "configurations:DebugAll", "action:gmake" }
buildoptions " -rdynamic -g -ggdb -O0 -pg"
--buildoptions " -rdynamic -g -O0 -Wall -static -pg"
linkoptions " -pg "
filter { "configurations:DebugFe or DebugAll" }
flags { "FatalWarnings" }
filter { "configurations:DebugFe", "action:gmake" }
buildoptions " -Wfatal-errors -g "
project "Copper"
targetname "copper"
language "C++"
kind "ConsoleApp"
includedirs { "src", "stdlib" }
files
{
"console.cpp",
"Copper/src/*.h", "Copper/src/*.cpp",
"Copper/stdlib/*.h", "Copper/stdlib/*.cpp",
"exts/**.*"
--"exts/Math/basicmath.h", "exts/Math/cu_basicmath.cpp",
--"exts/Time/systime.h", "exts/Time/cu_systime.cpp",
--"exts/String/cu_stringmap.h", "exts/String/cu_stringmap.cpp",
--"exts/String/cu_stringbasics.h", "exts/String/cu_stringbasics.cpp",
--"exts/System/cu_info.h", "exts/System/cu_info.cpp",
--"exts/Byte/cu_bytebasics.h", "exts/Byte/cu_bytebasics.cpp",
}
excludes
{
"debug/**.*",
"exts/excludes/**.*"
}
filter { "system:linux or bsd or hurd" }
linkoptions { " -rdynamic " }