-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild-Utopia-Networking.lua
73 lines (59 loc) · 2 KB
/
Build-Utopia-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
71
72
73
project "Utopia-Networking"
kind "StaticLib"
language "C++"
cppdialect "C++20"
targetdir "bin/%{cfg.buildcfg}"
staticruntime "off"
files { "Source/**.h", "Source/**.hpp", "Source/**.cpp" }
includedirs
{
"Source",
"vendor/GameNetworkingSockets/include",
--------------------------------------------------------
-- Utopia includes
-- Assumes we are in Utopia-Modules/Utopia-Networking
"../../Utopia/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 { "UT_PLATFORM_WINDOWS" }
files { "Platform/Windows/**.h", "Platform/Windows/**.hpp", "Platform/Windows/**.cpp" }
includedirs { "Platform/Windows" }
links { "Ws2_32.lib" }
-- Add UTF-8 compiler flag for Windows
buildoptions { "/utf-8" }
filter "system:linux"
defines { "UT_PLATFORM_LINUX" }
files { "Platform/Linux/**.h", "Platform/Linux/**.hpp", "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 { "UT_DEBUG" }
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines { "UT_RELEASE" }
runtime "Release"
optimize "On"
symbols "On"
filter "configurations:Dist"
defines { "UT_DIST" }
runtime "Release"
optimize "On"
symbols "Off"