-
Notifications
You must be signed in to change notification settings - Fork 18
/
Build-Walnut-Networking.lua
70 lines (57 loc) · 1.85 KB
/
Build-Walnut-Networking.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
project "Walnut-Networking"
kind "StaticLib"
language "C++"
cppdialect "C++20"
targetdir "bin/%{cfg.buildcfg}"
staticruntime "off"
files { "Source/**.h", "Source/**.cpp" }
includedirs
{
"Source",
"vendor/GameNetworkingSockets/include",
--------------------------------------------------------
-- Walnut includes
-- Assumes we are in Walnut-Modules/Walnut-Networking
"../../Walnut/Source",
"../../vendor/imgui",
"../../vendor/glfw/include",
"../../vendor/glm",
"../../vendor/spdlog/include",
--------------------------------------------------------
}
targetdir ("../../bin/" .. outputdir .. "/%{prj.name}")
objdir ("../../bin-int/" .. outputdir .. "/%{prj.name}")
filter "system:windows"
systemversion "latest"
defines { "WL_PLATFORM_WINDOWS" }
files { "Platform/Windows/**.h", "Platform/Windows/**.cpp" }
includedirs { "Platform/Windows" }
links { "Ws2_32.lib" }
filter "system:linux"
defines { "WL_PLATFORM_LINUX" }
files { "Platform/Linux/**.h", "Platform/Linux/**.cpp" }
includedirs { "Platform/Linux" }
filter { "system:windows", "configurations:Debug" }
links
{
"vendor/GameNetworkingSockets/bin/Windows/Debug/GameNetworkingSockets.lib"
}
filter { "system:windows", "configurations:Release or configurations:Dist" }
links
{
"vendor/GameNetworkingSockets/bin/Windows/Release/GameNetworkingSockets.lib"
}
filter "configurations:Debug"
defines { "WL_DEBUG" }
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines { "WL_RELEASE" }
runtime "Release"
optimize "On"
symbols "On"
filter "configurations:Dist"
defines { "WL_DIST" }
runtime "Release"
optimize "On"
symbols "Off"