forked from Palm-Studios/sh3redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
93 lines (74 loc) · 4.1 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
-- premake5.lua for SILENT HILL 3: Redux
-- Based on the example one found on Github
workspace "silenthill3"
architecture "x86_64"
configurations {"Debug", "Release", "Distro"}
language "C++"
project "sh3r"
kind "ConsoleApp"
targetdir ("build/sh3r/%{cfg.buildcfg}_%{cfg.architecture}")
objdir ("obj/sh3r/%{cfg.buildcfg}_%{cfg.architecture}")
files {"source/SH3/**.cpp", "source/main.cpp", "include/SH3/**.hpp"}
includedirs {"include", "third_party/debugbreak"}
filter {"system:windows"}
libdirs {"libs/SDL2-2.0.9/build", "libs/zlib-1.2.11/build", "libs/glew-2.1.0/build/lib"}
links {"zlibstatic", "glew32", "mingw32", "SDL2main", "SDL2"}
sysincludedirs {"libs/SDL2-2.0.9/include", "libs/glew-2.1.0/include", "libs/boost_1_69_0", "libs/glm/include"}
links{"OpenGL32"}
filter {"system:not windows"}
libdirs {"libs/SDL2-2.0.9/build", "libs/zlib-1.2.11/build", "libs/glew-2.1.0/build/lib"}
sysincludedirs {"libs/SDL2-2.0.9/include", "libs/glew-2.1.0/include", "libs/boost_1_69_0", "libs/glm/include"}
links {"z", "SDL2", "GLEW"}
links {"GL"}
filter "configurations:Debug"
defines {"SH3_DEBUG"}
symbols "On"
cppdialect "C++17"
staticruntime "On"
buildoptions {"-Wall", "-Wextra", "-pedantic", "-Wsign-compare", "-Wold-style-cast", "-Wdeprecated", "-Wconversion", "-Wnon-virtual-dtor", "-Wundef", "-Wfloat-equal", "-Wunreachable-code"}
filter "configurations:Release"
defines {""}
symbols "Off"
cppdialect "C++17"
staticruntime "On"
buildoptions {"-Wall", "-Wextra", "-pedantic", "-Wsign-compare", "-Wold-style-cast", "-Wdeprecated", "-Wconversion", "-Wnon-virtual-dtor", "-Wundef", "-Wfloat-equal", "-Wunreachable-code"}
filter "configurations:Distro"
defines {""}
symbols "Off"
cppdialect "C++17"
staticruntime "On"
buildoptions {"-Wall", "-Wextra", "-pedantic", "-Wsign-compare", "-Wold-style-cast", "-Wdeprecated", "-Wconversion", "-Wnon-virtual-dtor", "-Wundef", "-Wfloat-equal", "-Wunreachable-code"}
project "tex"
kind "ConsoleApp"
targetdir ("build/sh3r/%{cfg.buildcfg}_%{cfg.architecture}")
objdir ("obj/sh3r/%{cfg.buildcfg}_%{cfg.architecture}")
files {"source/SH3/**.cpp", "tests/tex.cpp", "include/SH3/**.hpp"}
includedirs {"include", "third_party/debugbreak"}
filter {"system:windows"}
libdirs {"libs/SDL2-2.0.9/build", "libs/zlib-1.2.11/build", "libs/glew-2.1.0/build/lib", }
links {"zlibstatic", "glew32", "mingw32", "SDL2main", "SDL2"}
sysincludedirs {"libs/SDL2-2.0.9/include", "libs/glew-2.1.0/include", "libs/boost_1_69_0", "libs/glm/include"}
links{"OpenGL32"}
filter {"system:not windows"}
libdirs {"libs/SDL2-2.0.9/build", "libs/zlib-1.2.11/build", "libs/glew-2.1.0/build/lib"}
sysincludedirs {"libs/SDL2-2.0.9/include", "libs/glew-2.1.0/include", "libs/boost_1_69_0", "libs/glm/include"}
links {"z", "SDL2", "GLEW"}
links {"GL"}
filter "configurations:Debug"
defines {"SH3_DEBUG"}
symbols "On"
cppdialect "C++17"
staticruntime "On"
buildoptions {"-Wall", "-Wextra", "-pedantic", "-Wsign-compare", "-Wold-style-cast", "-Wdeprecated", "-Wconversion", "-Wnon-virtual-dtor", "-Wundef", "-Wfloat-equal", "-Wunreachable-code"}
filter "configurations:Release"
defines {""}
symbols "Off"
cppdialect "C++17"
staticruntime "On"
buildoptions {"-Wall", "-Wextra", "-pedantic", "-Wsign-compare", "-Wold-style-cast", "-Wdeprecated", "-Wconversion", "-Wnon-virtual-dtor", "-Wundef", "-Wfloat-equal", "-Wunreachable-code"}
filter "configurations:Distro"
defines {""}
symbols "Off"
cppdialect "C++17"
staticruntime "On"
buildoptions {"-Wall", "-Wextra", "-pedantic", "-Wsign-compare", "-Wold-style-cast", "-Wdeprecated", "-Wconversion", "-Wnon-virtual-dtor", "-Wundef", "-Wfloat-equal", "-Wunreachable-code"}