-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
107 lines (83 loc) · 2.16 KB
/
premake5.lua
File metadata and controls
107 lines (83 loc) · 2.16 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
newoption {
trigger = "location",
description = "sets build directory.",
default = "build",
}
workspace "tobas"
language "C++"
cppdialect "C++20"
configurations { "Debug", "Release" }
location (_OPTIONS["location"])
includedirs {
"vendor/luau/Compiler/include",
"vendor/luau/VM/include",
"vendor/raylib/src",
"vendor/raygui/src",
"vendor/ode/include",
--"vendor/enet/include",
"sources",
}
links {
"luaucompiler", "luauast", "luauvm",
"luaucommon", "luaucodegen",
"raylib",
"ode",
}
files {
"sources/luau.h", "sources/luau.cpp",
"sources/api.h", "sources/api.cpp",
"sources/api_net.cpp",
"sources/api_game.cpp",
"sources/api_raylib.cpp",
"sources/api_raygui.cpp",
"sources/api_raymath.cpp",
"sources/game.h", "sources/game.cpp",
"sources/camera.h", "sources/camera.cpp",
"sources/player.h", "sources/player.cpp",
"sources/body.h", "sources/body.cpp",
"sources/mem.h", "sources/mem.cpp",
}
filter { "configurations:Debug" }
defines { "DEBUG" }
symbols "On"
filter { "configurations:Release" }
defines { "NDEBUG" }
optimize "On"
filter { "system:Windows" }
libdirs { "libs-windows" }
filter { "not system:Windows" }
libdirs { "libs-linux" }
project "multiaxis_sp"
kind "WindowedApp"
files { "sources/tobas_sp.cpp" }
links { "X11" }
defines { "OFFLINE" }
filter { "system:Windows" }
links {"winmm", "gdi32", "opengl32"}
defines{"_WIN32"}
--[[
project "tobas"
kind "WindowedApp"
files {
"sources/tobas.cpp",
"sources/netcode_common.h", "sources/netcode_common.cpp",
"sources/netcode_client.h", "sources/netcode_client.cpp",
"sources/netcode_server.h", "sources/netcode_server.cpp",
}
filter { "system:Windows" }
links {"winmm", "gdi32", "opengl32"}
links { "kernel32", "ws2_32" }
defines{"_WIN32"}
project "tobas_server"
kind "ConsoleApp"
files {
"sources/tobas_server.cpp",
"sources/netcode_common.h", "sources/netcode_common.cpp",
"sources/netcode_client.h", "sources/netcode_client.cpp",
"sources/netcode_server.h", "sources/netcode_server.cpp",
}
filter { "system:Windows" }
links {"winmm", "gdi32", "opengl32"}
links { "kernel32", "ws2_32" }
defines{"_WIN32"}
]]