[DEV] Update new lutin 2.2.0 (no legacy support)

This commit is contained in:
Edouard DUPIN 2016-10-04 23:41:29 +02:00
parent d89531189e
commit 5cb8ea40e3
8 changed files with 59 additions and 42 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,14 +24,17 @@ def get_compagny_name():
def get_maintainer():
return "authors.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_path(tools.get_current_path(__file__), export=True)
my_module.add_depend(['enet', 'gtest', 'test-debug'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'enet',
'gtest',
'test-debug'
])
my_module.add_src_file([
'test/main-client-http.cpp'
])
return my_module
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,14 +24,17 @@ def get_compagny_name():
def get_maintainer():
return "authors.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_path(tools.get_current_path(__file__), export=True)
my_module.add_depend(['enet', 'gtest', 'test-debug'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'enet',
'gtest',
'test-debug'
])
my_module.add_src_file([
'test/main-client-websocket.cpp'
])
return my_module
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,14 +24,17 @@ def get_compagny_name():
def get_maintainer():
return "authors.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_path(tools.get_current_path(__file__), export=True)
my_module.add_depend(['enet', 'gtest', 'test-debug'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'enet',
'gtest',
'test-debug'
])
my_module.add_src_file([
'test/main-client.cpp'
])
return my_module
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,14 +24,17 @@ def get_compagny_name():
def get_maintainer():
return "authors.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_path(tools.get_current_path(__file__), export=True)
my_module.add_depend(['enet', 'gtest', 'test-debug'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'enet',
'gtest',
'test-debug'
])
my_module.add_src_file([
'test/main-server-http.cpp'
])
return my_module
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,14 +24,17 @@ def get_compagny_name():
def get_maintainer():
return "authors.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_path(tools.get_current_path(__file__), export=True)
my_module.add_depend(['enet', 'gtest', 'test-debug'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'enet',
'gtest',
'test-debug'
])
my_module.add_src_file([
'test/main-server-websocket.cpp'
])
return my_module
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,14 +24,17 @@ def get_compagny_name():
def get_maintainer():
return "authors.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_path(tools.get_current_path(__file__), export=True)
my_module.add_depend(['enet', 'gtest', 'test-debug'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'enet',
'gtest',
'test-debug'
])
my_module.add_src_file([
'test/main-server.cpp'
])
return my_module
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,14 +24,13 @@ def get_maintainer():
def get_version():
return "version.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_depend([
'etk',
'ememory',
'algue'
])
my_module.add_path(tools.get_current_path(__file__))
my_module.add_path(".")
my_module.add_src_file([
'enet/debug.cpp',
'enet/Udp.cpp',
@ -52,7 +51,7 @@ def create(target, module_name):
'enet/Ftp.hpp',
'enet/WebSocket.hpp',
])
return my_module
return True

View File

@ -10,7 +10,7 @@
#include <enet/TcpServer.hpp>
#include <etk/etk.hpp>
#include <unistd.hpp>
#include <unistd.h>
#include <etk/stdTools.hpp>
namespace appl {
void onReceiveData(enet::HttpServer* _interface, std::vector<uint8_t>& _data) {