-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake4.lua
More file actions
68 lines (58 loc) · 2.12 KB
/
premake4.lua
File metadata and controls
68 lines (58 loc) · 2.12 KB
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
-- this premake file is quite bad, because I just start with premake and lua.
-- This file is written to build on archlinux and windows8 (with codeblocks).
solution "Color-Project"
configurations {"Release"}
-- engine --
project "engine"
kind "StaticLib"
language "c++"
files {"src/Engine/**.h", "src/Engine/**.cpp"}
configuration "Release"
flags { "Optimize" }
buildoptions "-std=gnu++11"
-- game --
project "game"
kind "WindowedApp"
language "c++"
files {"src/Game/**.h", "src/Game/**.cpp"}
configuration "Release"
flags { "Optimize" }
buildoptions "-std=gnu++11"
links { "engine", "jsoncpp", "sfml-graphics", "sfml-window", "sfml-system", "sfml-audio", "physfs" }
-- editor --
project "editor"
kind "WindowedApp"
language "c++"
files {"src/Editor/**.h", "src/Editor/**.cpp", "src/Game/gametypes.cpp"}
configuration "Release"
flags { "Optimize" }
buildoptions "-std=gnu++11"
links { "engine", "jsoncpp", "sfml-graphics", "sfml-window", "sfml-system", "sfml-audio", "physfs" }
-- wx windows flags --
if os.get() == "windows" then
files { "src/Editor/resources.rc" }
buildoptions { "`wx-config.exe --cxxflags --prefix=c:/wxWidgets-2.8.12 --wxcfg=gcc_lib/mswu`" }
linkoptions { "`wx-config.exe --libs --prefix=c:/wxWidgets-2.8.12 --wxcfg=gcc_lib/mswu`" }
resincludedirs { "c:/wxWidgets-2.8.12/include" }
-- wx linux flags --
elseif os.get() == "linux" then
buildoptions { "`wx-config --cxxflags`" }
includedirs
{
"/usr/include/gtk-2.0/",
"/usr/include/glib-2.0",
"/usr/lib/glib-2.0/include",
"/usr/include/cairo",
"/usr/include/pango-1.0",
"/usr/lib/gtk-2.0/include",
"/usr/include/gdk-pixbuf-2.0",
"/usr/include/atk-1.0"
}
linkoptions {
"`wx-config --libs`",
"/usr/lib/libgdk-x11-2.0.so.0",
"/usr/lib/libgtk-x11-2.0.so.0",
"/usr/lib/libgobject-2.0.so.0",
"/usr/lib/libX11.so.6"
}
end