[DEV] update new lutin 0.8.0
This commit is contained in:
parent
21c05e60a8
commit
c75b597eca
@ -3,33 +3,42 @@ import lutin.module as module
|
|||||||
import lutin.tools as tools
|
import lutin.tools as tools
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
|
||||||
|
def get_type():
|
||||||
|
return "BINARY"
|
||||||
|
|
||||||
|
def get_name():
|
||||||
|
return "exml_tester"
|
||||||
|
|
||||||
|
def get_sub_type():
|
||||||
|
return "TEST"
|
||||||
|
|
||||||
def get_desc():
|
def get_desc():
|
||||||
return "e-xml test software"
|
return "e-xml test software"
|
||||||
|
|
||||||
|
def get_licence():
|
||||||
|
return "APACHE-2"
|
||||||
|
|
||||||
def create(target):
|
def get_compagny_type():
|
||||||
# module name is 'edn' and type binary.
|
return "com"
|
||||||
my_module = module.Module(__file__, 'exml-test', 'BINARY')
|
|
||||||
|
def get_compagny_name():
|
||||||
# add the file to compile:
|
return "atria-soft"
|
||||||
|
|
||||||
|
def get_maintainer():
|
||||||
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
def create(target, module_name):
|
||||||
|
my_module = module.Module(__file__, module_name, get_type())
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'test/main.cpp'])
|
'test/main.cpp'
|
||||||
|
])
|
||||||
my_module.add_module_depend(['exml', 'gtest'])
|
my_module.add_module_depend(['exml', 'gtest', 'test-debug'])
|
||||||
|
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
versionID=str(now.year-2012)+"."+str(now.month)+"."+str(now.day)
|
versionID=str(now.year-2012)+"."+str(now.month)+"."+str(now.day)
|
||||||
|
|
||||||
# set the package properties :
|
# set the package properties :
|
||||||
my_module.pkg_set("VERSION", versionID)
|
my_module.pkg_set("VERSION", versionID)
|
||||||
my_module.pkg_set("COMPAGNY_TYPE", "org")
|
|
||||||
my_module.pkg_set("COMPAGNY_NAME", "Edouard DUPIN")
|
|
||||||
my_module.pkg_set("MAINTAINER", ["Mr DUPIN Edouard <yui.heero@gmail.com>"])
|
|
||||||
my_module.pkg_set("SECTION", ["Development"])
|
my_module.pkg_set("SECTION", ["Development"])
|
||||||
my_module.pkg_set("PRIORITY", "optional")
|
my_module.pkg_set("PRIORITY", "optional")
|
||||||
my_module.pkg_set("DESCRIPTION", "E_xml tester soft")
|
|
||||||
my_module.pkg_set("NAME", "exml_tester")
|
|
||||||
|
|
||||||
# add the currrent module at the
|
|
||||||
return my_module
|
return my_module
|
||||||
|
|
||||||
|
@ -2,18 +2,32 @@
|
|||||||
import lutin.module as module
|
import lutin.module as module
|
||||||
import lutin.tools as tools
|
import lutin.tools as tools
|
||||||
|
|
||||||
|
|
||||||
|
def get_type():
|
||||||
|
return "LIBRARY"
|
||||||
|
|
||||||
def get_desc():
|
def get_desc():
|
||||||
return "e-xml XML parser and generator"
|
return "XML parser and generator"
|
||||||
|
|
||||||
|
def get_licence():
|
||||||
|
return "APACHE-2"
|
||||||
|
|
||||||
def create(target):
|
def get_compagny_type():
|
||||||
my_module = module.Module(__file__, 'exml', 'LIBRARY')
|
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())
|
||||||
my_module.add_module_depend(['etk'])
|
my_module.add_module_depend(['etk'])
|
||||||
|
|
||||||
# add extra compilation flags :
|
|
||||||
my_module.add_extra_compile_flags()
|
my_module.add_extra_compile_flags()
|
||||||
# add sources files
|
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'exml/debug.cpp',
|
'exml/debug.cpp',
|
||||||
'exml/Attribute.cpp',
|
'exml/Attribute.cpp',
|
||||||
@ -25,7 +39,6 @@ def create(target):
|
|||||||
'exml/Node.cpp',
|
'exml/Node.cpp',
|
||||||
'exml/Text.cpp'
|
'exml/Text.cpp'
|
||||||
])
|
])
|
||||||
|
|
||||||
my_module.add_header_file([
|
my_module.add_header_file([
|
||||||
'exml/exml.h',
|
'exml/exml.h',
|
||||||
'exml/Attribute.h',
|
'exml/Attribute.h',
|
||||||
@ -37,10 +50,7 @@ def create(target):
|
|||||||
'exml/Node.h',
|
'exml/Node.h',
|
||||||
'exml/Text.h'
|
'exml/Text.h'
|
||||||
])
|
])
|
||||||
|
|
||||||
my_module.add_path(tools.get_current_path(__file__))
|
my_module.add_path(tools.get_current_path(__file__))
|
||||||
|
|
||||||
# add the currrent module at the
|
|
||||||
return my_module
|
return my_module
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#define __EXML_TEST_COMMON_H__
|
#define __EXML_TEST_COMMON_H__
|
||||||
|
|
||||||
#include <etk/types.h>
|
#include <etk/types.h>
|
||||||
#include <exml/debug.h>
|
#include <test-debug/debug.h>
|
||||||
#include <exml/exml.h>
|
#include <exml/exml.h>
|
||||||
|
|
||||||
// _errorPos : -1 : no error , 1 : parsing error, 2 generation error, 3 comparaison error ????
|
// _errorPos : -1 : no error , 1 : parsing error, 2 generation error, 3 comparaison error ????
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <exml/debug.h>
|
#include <test-debug/debug.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <etk/os/FSNode.h>
|
#include <etk/os/FSNode.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user