2014-05-04 22:27:56 +02:00
|
|
|
#!/usr/bin/python
|
2016-10-04 23:41:29 +02:00
|
|
|
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():
|
2017-01-05 21:28:23 +01:00
|
|
|
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
|
|
|
|
2016-10-04 23:41:29 +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
|
|
|
])
|
2016-10-04 23:41:29 +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',
|
2016-10-06 01:28:56 +02:00
|
|
|
'enet/enet.cpp',
|
2016-01-18 22:22:50 +01:00
|
|
|
'enet/Udp.cpp',
|
|
|
|
'enet/Tcp.cpp',
|
2016-05-23 21:37:03 +02:00
|
|
|
'enet/TcpServer.cpp',
|
|
|
|
'enet/TcpClient.cpp',
|
2016-01-18 22:22:50 +01:00
|
|
|
'enet/Http.cpp',
|
|
|
|
'enet/Ftp.cpp',
|
2016-06-17 22:45:19 +02:00
|
|
|
'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
|
|
|
])
|
2016-10-06 01:28:56 +02:00
|
|
|
if "Windows" in target.get_type():
|
|
|
|
my_module.add_depend("ws2");
|
2016-10-04 23:41:29 +02:00
|
|
|
return True
|
2014-05-04 22:27:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|