enet/lutin_enet.py

67 lines
1.1 KiB
Python
Raw Normal View History

2014-05-04 22:27:56 +02:00
#!/usr/bin/python
import lutin.debug as debug
2015-05-08 22:37:50 +02:00
import lutin.tools as tools
2014-05-04 22:27:56 +02:00
2015-10-14 21:21:03 +02:00
def get_type():
return "LIBRARY"
2014-05-04 22:27:56 +02:00
def get_desc():
2015-10-14 21:21:03 +02:00
return "TCP/UDP/HTTP/FTP interface"
2014-05-04 22:27:56 +02:00
def get_licence():
return "MPL-2"
2015-10-14 21:21:03 +02:00
def get_compagny_type():
return "com"
def get_compagny_name():
return "atria-soft"
def get_maintainer():
2016-09-12 21:06:37 +02:00
return "authors.txt"
2015-10-14 21:21:03 +02:00
def get_version():
2016-09-12 21:06:37 +02:00
return "version.txt"
2015-10-14 21:21:03 +02:00
def configure(target, my_module):
2016-09-13 22:20:58 +02:00
my_module.add_depend([
'etk',
'ememory',
2016-10-24 22:25:37 +02:00
'algue',
'ethread'
2016-09-13 22:20:58 +02:00
])
my_module.add_path(".")
2016-01-18 22:22:50 +01:00
my_module.add_src_file([
2016-09-28 21:52:50 +02:00
'enet/debug.cpp',
'enet/enet.cpp',
2016-01-18 22:22:50 +01:00
'enet/Udp.cpp',
'enet/Tcp.cpp',
'enet/TcpServer.cpp',
'enet/TcpClient.cpp',
2016-01-18 22:22:50 +01:00
'enet/Http.cpp',
'enet/Ftp.cpp',
'enet/WebSocket.cpp',
2016-01-18 22:22:50 +01:00
])
my_module.add_header_file([
2016-10-07 22:29:04 +02:00
'enet/enet.hpp',
2016-09-30 22:28:36 +02:00
'enet/debug.hpp',
'enet/Udp.hpp',
'enet/Tcp.hpp',
'enet/TcpServer.hpp',
'enet/TcpClient.hpp',
'enet/Http.hpp',
'enet/Ftp.hpp',
'enet/WebSocket.hpp',
2016-01-18 22:22:50 +01:00
])
if "Windows" in target.get_type():
my_module.add_depend("ws2");
return True
2014-05-04 22:27:56 +02:00