-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake4.lua
102 lines (76 loc) · 2.14 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
-- *************************** --
-- Grammar-based PCG --
-- *************************** --
-- Instructions:
--
-- Open a command line app and run
-- premake4 one_of_these__gmake__vs2010__xcode__codeblocks
_ACTION = _ACTION or 'gmake'
-- _ _
-- | | (_)
-- ___ _ __ | |_ _ ___ _ __ ___
-- / _ \| '_ \| __| |/ _ \| '_ \/ __|
-- | (_) | |_) | |_| | (_) | | | \__ \
-- \___/| .__/ \__|_|\___/|_| |_|___/
-- | |
-- |_|
-- No options for now...
-- _ _ _
-- | | | | (_)
-- ___ ___ | |_ _| |_ _ ___ _ __ ___
-- / __|/ _ \| | | | | __| |/ _ \| '_ \/ __|
-- \__ \ (_) | | |_| | |_| | (_) | | | \__ \
-- |___/\___/|_|\__,_|\__|_|\___/|_| |_|___/
solution "PCG-Gram"
configurations { "Debug", "Release" }
location "./build"
targetdir "./build"
project "PCG-GramLib"
kind "SharedLib"
language "C++"
location "./build/library"
includedirs {
path.getabsolute("./include/")
}
files {
"source/Ruleset.cpp",
"source/Generator.cpp"
}
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
configuration { "windows", "codelite" }
buildoptions { "-std=c++11" }
configuration { "linux", "gmake" }
buildoptions { "-std=c++11" }
project "PCG-GramDemo"
kind "ConsoleApp"
language "C++"
location "./build/demo"
includedirs {
path.getabsolute("./include/"),
path.getabsolute("./source_demo/")
}
files {
"source_demo/Main.cpp",
"source_demo/DemoQuests.cpp",
"source_demo/DemoWeapons.cpp"
} -- dot cpp files here
links {
"PCG-GramLib"
}
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
configuration { "windows" }
defines { "WINDOWS_PLATFORM" }
configuration { "windows", "codelite" }
buildoptions { "-std=c++11" }
configuration { "linux", "gmake" }
buildoptions { "-std=c++11" }