2014-05-04 22:27:56 +02:00
|
|
|
#!/usr/bin/python
|
2015-05-08 22:37:50 +02:00
|
|
|
import lutin.module as module
|
|
|
|
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():
|
2015-10-14 21:21:03 +02:00
|
|
|
return "APACHE-2"
|
|
|
|
|
|
|
|
def get_compagny_type():
|
|
|
|
return "com"
|
|
|
|
|
|
|
|
def get_compagny_name():
|
|
|
|
return "atria-soft"
|
|
|
|
|
|
|
|
def get_maintainer():
|
|
|
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
|
|
|
|
|
|
|
def get_version():
|
|
|
|
return [0,0,0]
|
|
|
|
|
|
|
|
def create(target, module_name):
|
|
|
|
my_module = module.Module(__file__, module_name, get_type())
|
2016-06-20 22:08:34 +02:00
|
|
|
my_module.add_module_depend(['etk', 'ememory', 'algue'])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-01-18 22:22:50 +01:00
|
|
|
'enet/debug.cpp'
|
|
|
|
])
|
2015-10-14 21:21:03 +02:00
|
|
|
my_module.add_path(tools.get_current_path(__file__))
|
2016-01-18 22:22:50 +01:00
|
|
|
if target.name == "Windows":
|
|
|
|
return my_module
|
|
|
|
my_module.add_src_file([
|
|
|
|
'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([
|
|
|
|
'enet/debug.h',
|
|
|
|
'enet/Udp.h',
|
|
|
|
'enet/Tcp.h',
|
2016-05-23 21:37:03 +02:00
|
|
|
'enet/TcpServer.h',
|
|
|
|
'enet/TcpClient.h',
|
2016-01-18 22:22:50 +01:00
|
|
|
'enet/Http.h',
|
|
|
|
'enet/Ftp.h',
|
2016-06-17 22:45:19 +02:00
|
|
|
'enet/WebSocket.h',
|
2016-01-18 22:22:50 +01:00
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
return my_module
|
2014-05-04 22:27:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|