-
Notifications
You must be signed in to change notification settings - Fork 5
/
premake4.lua
42 lines (37 loc) · 1.17 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
-- A solution contains projects, and defines the available configurations
solution "kge"
configurations { "Debug", "Release" }
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols"}
targetdir "bin/debug"
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
targetdir "bin/release"
-- KGE
project "kge"
kind "SharedLib"
language "C++"
files { "Source/**.cpp", "Libs/stb_image.c" }
excludes {"Source/sn/fmod/*.cpp", "Source/sn/bass/*.cpp", "Source/av/**.cpp"}
includedirs { "Libs/SDL/include" }
buildoptions { "-fpermissive" }
links { "SDL2", "IL", "ILU"}
libdirs { ".", "LIBDIR" }
-- OpenGL
project "Renderer_ogl"
kind "SharedLib"
language "C++"
files { "plugins/Renderer_ogl/*.cpp" }
includedirs { "Libs/SDL/include" }
buildoptions { "-fpermissive" }
links { "kge", "Cg", "CgGL", "GLEW" }
libdirs { ".", "./Libs" }
-- 01HelloWorld
project "01HelloWorld"
kind "ConsoleApp"
language "C++"
files { "tutorials/tut01/main.cpp" }
buildoptions { "-fpermissive" }
links { "kge" }