This repository has been archived by the owner on Feb 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpremake4.lua
90 lines (80 loc) · 2.97 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
solution "NeoSFML"
--Uncomment next line to build a debug version.
--configurations { "Debug" }
configurations { "Release", "macosx", "windows", "linux" }
--For debug, remember to remove -O2 build option.
--Also uncomment Symbols flag.
location("build_"..os.get())
targetdir("build_"..os.get())
project "neosfml"
kind "ConsoleApp"
language "C++"
files
{
"src/**.h",
"src/**.hpp",
"src/**.inl",
"src/**.cpp"
}
libdirs {}
includedirs { "lib/SFML/"..os.get().."/include",
"lib/Python33/include",
"src/",
"src/**" }
libdirs { "lib/SFML/"..os.get().."/lib", "lib/Python33" }
linkoptions { "-m32" }
buildoptions { "-m32", "-O2", "-std=c++11", "-Wall", "-pedantic"}
--pedantic-errors flag broke things very badly
--without giving much (useful) info on why it did so.
--Changing it for pedantic does not cause a single warning.
--, "-pedantic-errors"
configuration "windows"
includedirs { "D:/Boost/boost_1_60_0" }
libdirs { "D:/Boost/boost_1_60_0/stage/lib" }
defines "SFML_STATIC"
--flags { "Symbols" } --for Debug
links
{
"sfml-network-s-d",
"sfml-graphics-s-d",
"sfml-window-s-d",
"sfml-system-s-d",
"opengl32",
"winmm",
"gdi32",
"freetype",
"jpeg",
--"ws2_32", --for the network module
"boost_locale-mgw49-mt-1_60",
"python33"
}
excludes { "src/**/linux/**", "src/**/macosx/**" }
--WARNING: Not up to date
configuration "macosx"
files { "src/**.mm" }
flags { "Symbols" }
buildoptions { "-stdlib=libc++" }
linkoptions { "-stdlib=libc++" }
links
{
"cocoa.framework",
"ApplicationServices.framework",
"Foundation.framework",
"IOKit.framework",
"sfml-graphics.framework",
"sfml-window.framework",
"sfml-system.framework"
}
excludes { "src/**/linux/**", "src/**/windows/**" }
--WARNING: Not up to date
configuration "linux"
flags { "Symbols" }
linkoptions { "-Wl,-rpath=\\$$ORIGIN/../lib/SFML/linux/lib" }
links
{
"sfml-graphics",
"sfml-window",
"sfml-system",
"X11"
}
excludes { "src/**/macosx/**", "src/**/windows/**" }