-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
96 lines (91 loc) · 1.84 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
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
location("build");
workspace("bs2pc");
configurations({
"Debug",
"Release",
});
startproject("bs2pc");
filter("configurations:Debug");
optimize("Off");
symbols("On");
filter("configurations:Release");
defines({
"NDEBUG",
});
flags({
"LinkTimeOptimization",
});
optimize("Speed");
symbols("Off");
filter({});
project("zlib");
files({
-- Source files.
"zlib/adler32.c",
"zlib/compress.c",
"zlib/crc32.c",
"zlib/deflate.c",
"zlib/gzclose.c",
"zlib/gzlib.c",
"zlib/gzread.c",
"zlib/gzwrite.c",
"zlib/infback.c",
"zlib/inffast.c",
"zlib/inflate.c",
"zlib/inftrees.c",
"zlib/trees.c",
"zlib/uncompr.c",
"zlib/zutil.c",
-- Header files.
"zlib/deflate.h",
"zlib/infblock.h",
"zlib/infcodes.h",
"zlib/inffast.h",
"zlib/inftrees.h",
"zlib/infutil.h",
"zlib/zconf.h",
"zlib/zlib.h",
"zlib/zutil.h",
});
kind("StaticLib");
language("C");
project("bs2pclib");
characterset("Unicode");
cppdialect("C++17");
files({
"bs2pclib/bs2pc_convert.cpp",
"bs2pclib/bs2pc_compress.cpp",
"bs2pclib/bs2pc_entities.cpp",
"bs2pclib/bs2pc_gbx_map.cpp",
"bs2pclib/bs2pc_id_map.cpp",
"bs2pclib/bs2pc_parse_token.cpp",
"bs2pclib/bs2pc_polygons.cpp",
"bs2pclib/bs2pc_textures.cpp",
"bs2pclib/bs2pclib.hpp",
});
flags({
"FatalWarnings",
});
kind("StaticLib");
language("C++");
links({
"zlib",
});
strictaliasing("Level3");
project("bs2pc");
characterset("Unicode");
cppdialect("C++17");
files({
"bs2pc.cpp",
});
flags({
"FatalWarnings",
});
kind("ConsoleApp");
language("C++");
links({
"bs2pclib",
-- For the gmake2 action, which doesn't support transitive linkage.
"zlib",
});
strictaliasing("Level3");