49 lines
1.1 KiB
Lua
Executable File
49 lines
1.1 KiB
Lua
Executable File
project "enet"
|
|
kind "StaticLib"
|
|
language "C"
|
|
staticruntime "on"
|
|
|
|
targetdir ("../../../bin/" .. OutputDir .. "/%{prj.name}")
|
|
objdir ("../../../bin/int/" .. OutputDir .. "/%{prj.name}")
|
|
|
|
includedirs {
|
|
"include"
|
|
}
|
|
|
|
-- Core source files
|
|
files {
|
|
"callbacks.c",
|
|
"compress.c",
|
|
"host.c",
|
|
"list.c",
|
|
"packet.c",
|
|
"peer.c",
|
|
"protocol.c",
|
|
"unix.c", -- Only Unix/Linux file
|
|
"include/enet/**.h"
|
|
}
|
|
|
|
-- Platform-specific defines for Linux/Debian
|
|
filter "system:linux"
|
|
defines {
|
|
"HAS_FCNTL=1",
|
|
"HAS_POLL=1",
|
|
"HAS_GETADDRINFO=1",
|
|
"HAS_GETNAMEINFO=1",
|
|
"HAS_GETHOSTBYNAME_R=1",
|
|
"HAS_GETHOSTBYADDR_R=1",
|
|
"HAS_INET_PTON=1",
|
|
"HAS_INET_NTOP=1",
|
|
"HAS_MSGHDR_FLAGS=1",
|
|
"HAS_SOCKLEN_T=1"
|
|
}
|
|
|
|
-- Build configurations
|
|
filter "configurations:Debug"
|
|
symbols "On"
|
|
|
|
filter "configurations:Release"
|
|
optimize "On"
|
|
|
|
filter {} -- clear filter
|