-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
85 lines (65 loc) · 1.95 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
workspace "test"
configurations { "Debug","Debug.DLL", "Release", "Release.DLL" }
platforms { "x64"}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Debug.DLL"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter "configurations:Release.DLL"
defines { "NDEBUG" }
optimize "On"
filter { "platforms:x64" }
architecture "x86_64"
targetdir "bin/%{cfg.buildcfg}/"
defines{"PLATFORM_DESKTOP", "GRAPHICS_API_OPENGL_33"}
project "raylib"
filter "configurations:Debug.DLL OR Release.DLL"
kind "SharedLib"
defines {"BUILD_LIBTYPE_SHARED"}
filter "configurations:Debug OR Release"
kind "StaticLib"
filter "action:vs*"
defines{"_WINSOCK_DEPRECATED_NO_WARNINGS", "_CRT_SECURE_NO_WARNINGS", "_WIN32"}
links {"winmm"}
filter "action:gmake*"
links {"pthread", "GL", "m", "dl", "rt", "X11"}
filter{}
location "build"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
cppdialect "C++17"
includedirs { "raylib/src", "raylib/src/external/glfw/include"}
vpaths
{
["Header Files"] = { "raylib/src/**.h"},
["Source Files/*"] = {"raylib/src/**.c"},
}
files {"raylib/src/*.h", "raylib/src/*.c"}
project "test"
kind "ConsoleApp"
location "%{wks.name}"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
cppdialect "C++17"
includedirs {"src"}
vpaths
{
["Header Files"] = { "**.h"},
["Source Files"] = {"**.c", "**.cpp"},
}
files {"%{wks.name}/**.c", "%{wks.name}/**.cpp", "%{wks.name}/**.h"}
links {"raylib"}
includedirs { "%{wks.name}", "raylib/src" }
defines{"PLATFORM_DESKTOP", "GRAPHICS_API_OPENGL_33"}
filter "action:vs*"
defines{"_WINSOCK_DEPRECATED_NO_WARNINGS", "_CRT_SECURE_NO_WARNINGS", "_WIN32"}
dependson {"raylib"}
links {"winmm", "raylib.lib", "kernel32"}
libdirs {"bin/%{cfg.buildcfg}"}
filter "action:gmake*"
links {"pthread", "GL", "m", "dl", "rt", "X11"}