diff --git a/lutin_exml.py b/lutin_exml.py index 57aef64..128cb55 100644 --- a/lutin_exml.py +++ b/lutin_exml.py @@ -1,16 +1,20 @@ #!/usr/bin/python -import lutinModule -import lutinTools +import lutinModule as module +import lutinTools as tools -def Create(target): - myModule = lutinModule.module(__file__, 'exml', 'LIBRARY') +def get_desc(): + return "e-xml XML parser and generator" + + +def create(target): + myModule = module.Module(__file__, 'exml', 'LIBRARY') - myModule.AddModuleDepend(['etk']) + myModule.add_module_depend(['etk']) # add extra compilation flags : myModule.add_extra_compile_flags() # add sources files - myModule.AddSrcFile([ + myModule.add_src_file([ 'exml/debug.cpp', 'exml/Attribute.cpp', 'exml/AttributeList.cpp', @@ -21,7 +25,7 @@ def Create(target): 'exml/Node.cpp', 'exml/Text.cpp']) - myModule.AddExportPath(lutinTools.GetCurrentPath(__file__)) + myModule.add_export_path(tools.get_current_path(__file__)) # add the currrent module at the return myModule diff --git a/lutin_exmltest.py b/lutin_exmltest.py index a457047..7e58325 100644 --- a/lutin_exmltest.py +++ b/lutin_exmltest.py @@ -1,30 +1,34 @@ #!/usr/bin/python -import lutinModule -import lutinTools +import lutinModule as module +import lutinTools as tools import datetime -def Create(target): +def get_desc(): + return "e-xml test software" + + +def create(target): # module name is 'edn' and type binary. - myModule = lutinModule.module(__file__, 'exmltest', 'BINARY') + myModule = module.Module(__file__, 'exmltest', 'BINARY') # add the file to compile: - myModule.AddSrcFile([ + myModule.add_src_file([ 'exml/test.cpp']) - myModule.AddModuleDepend(['exml']) + myModule.add_module_depend(['exml']) now = datetime.datetime.now() versionID=str(now.year-2012)+"."+str(now.month)+"."+str(now.day) # set the package properties : - myModule.pkgSet("VERSION", versionID) - myModule.pkgSet("COMPAGNY_TYPE", "org") - myModule.pkgSet("COMPAGNY_NAME", "Edouard DUPIN") - myModule.pkgSet("MAINTAINER", ["Mr DUPIN Edouard "]) - myModule.pkgSet("SECTION", ["Development"]) - myModule.pkgSet("PRIORITY", "optional") - myModule.pkgSet("DESCRIPTION", "E_xml tester soft") - myModule.pkgSet("NAME", "exml_tester") + myModule.pkg_set("VERSION", versionID) + myModule.pkg_set("COMPAGNY_TYPE", "org") + myModule.pkg_set("COMPAGNY_NAME", "Edouard DUPIN") + myModule.pkg_set("MAINTAINER", ["Mr DUPIN Edouard "]) + myModule.pkg_set("SECTION", ["Development"]) + myModule.pkg_set("PRIORITY", "optional") + myModule.pkg_set("DESCRIPTION", "E_xml tester soft") + myModule.pkg_set("NAME", "exml_tester") # add the currrent module at the return myModule diff --git a/monk_exml.py b/monk_exml.py index eab967c..b54a8d4 100644 --- a/monk_exml.py +++ b/monk_exml.py @@ -2,6 +2,9 @@ import monkModule as module import monkTools as tools +def get_desc(): + return "e-xml XML parser and generator" + def create(): # module name is 'edn' and type binary. myModule = module.Module(__file__, 'exml', 'LIBRARY') @@ -11,5 +14,3 @@ def create(): # add the currrent module at the return myModule -def get_desc(): - return ""