sm-ext-AsyncSocket/extension/AMBuilder
BotoX 7b10708a20 Added TCP server functionality
Fixed a bunch of leaks + race conditions
Still in development, hence all the printfs
2017-01-08 16:36:28 +01:00

31 lines
688 B
Python

# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
binary = builder.compiler.Library('AsyncSocket.ext')
AsyncSocket.ConfigureForExtension(builder, binary.compiler)
binary.compiler.includes += [
os.path.join(builder.sourcePath, 'extension', 'libuv', 'include')
]
binary.sources += [
'extension.cpp',
'context.cpp',
os.path.join(AsyncSocket.sm_root, 'public', 'smsdk_ext.cpp')
]
binary.compiler.defines += [
'SOURCEMOD_BUILD'
]
binary.compiler.postlink += [
os.path.join(builder.sourcePath, 'extension', 'libuv', 'libuv.a')
]
if builder.target_platform == 'windows':
binary.compiler.linkflags += ['ws2_32.lib']
AsyncSocket.extensions += [
builder.Add(binary)
]