-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake4.lua
68 lines (54 loc) · 1.52 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
if _ACTION then
local BUILD_PATH = "build/" .. _ACTION
solution "Mooball"
location ( BUILD_PATH )
configurations { "Debug", "Release" }
platforms { "Native", "x32", "x64" }
targetdir "bin"
local EXTLIBS = "extlibs"
local DLLName = "MooballDLL"
local WIN_SDK_DIR = "$(WindowsSdkDir)"
local MEDIA = "bin/Media"
project (DLLName)
uuid "bf47d341-0a8d-4de3-a363-443648bf21af"
kind "WindowedApp"
language "C++"
location ( BUILD_PATH )
defines { "_MOOBALL_DLL", "WIN32", "__WIN32" }
files { project().name .. "/include/**.h", project().name .. "/include/**.hpp", project().name .. "/src/**.cpp" }
includedirs( project().name .. "/include" )
includedirs( WIN_SDK_DIR .. "Include" )
implibdir ( project().name .. "/lib" )
libdirs { WIN_SDK_DIR .. "Lib" }
vpaths
{
["Headers/*"] =
{
project().name .. "/include/**.h",
project().name .. "/include/**.hpp"
},
["Source/*"] =
{
project().name .. "/src/**.c",
project().name .. "/src/**.cpp"
}
}
configuration { "Debug" }
debugdir "bin"
targetname ( project().name .. "_d" )
flags { "Symbols" }
defines { "_DEBUG" }
links { "OpenGL32", "glu32" }
configuration { "Native" }
configuration { "x32" }
configuration { "x64" }
configuration { "Release" }
debugdir "bin"
targetname ( project().name )
flags { "Optimize" }
defines { "_RELEASE" }
links { "OpenGL32", "glu32" }
configuration { "Native" }
configuration { "x32" }
configuration { "x64" }
end