[DEV] update lutin naming

This commit is contained in:
Edouard DUPIN 2013-12-23 22:38:46 +01:00
parent a94d26ba5f
commit bf82bb3bbd
3 changed files with 32 additions and 23 deletions

View File

@ -1,15 +1,19 @@
#!/usr/bin/python #!/usr/bin/python
import lutinModule import lutinModule as module
import lutinTools import lutinTools as tools
def Create(target): def get_desc():
myModule = lutinModule.module(__file__, 'ejson', 'LIBRARY') return "e-json Json parser and genrator"
myModule.AddModuleDepend(['etk'])
def create(target):
myModule = module.Module(__file__, 'ejson', 'LIBRARY')
myModule.add_module_depend(['etk'])
# add extra compilation flags : # add extra compilation flags :
myModule.add_extra_compile_flags() myModule.add_extra_compile_flags()
myModule.AddSrcFile([ myModule.add_src_file([
'ejson/debug.cpp', 'ejson/debug.cpp',
'ejson/ejson.cpp', 'ejson/ejson.cpp',
'ejson/Array.cpp', 'ejson/Array.cpp',
@ -20,7 +24,7 @@ def Create(target):
'ejson/Object.cpp', 'ejson/Object.cpp',
'ejson/Value.cpp']) 'ejson/Value.cpp'])
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__)) myModule.add_export_path(tools.get_current_path(__file__))
# add the currrent module at the # add the currrent module at the
return myModule return myModule

View File

@ -1,30 +1,34 @@
#!/usr/bin/python #!/usr/bin/python
import lutinModule import lutinModule as module
import lutinTools import lutinTools as tools
import datetime import datetime
def Create(target): def get_desc():
return "e-json test application"
def create(target):
# module name is 'edn' and type binary. # module name is 'edn' and type binary.
myModule = lutinModule.module(__file__, 'ejsontest', 'BINARY') myModule = module.Module(__file__, 'ejsontest', 'BINARY')
# add the file to compile: # add the file to compile:
myModule.AddSrcFile([ myModule.add_src_file([
'ejson/test.cpp']) 'ejson/test.cpp'])
myModule.AddModuleDepend(['ejson']) myModule.add_module_depend(['ejson'])
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 :
myModule.pkgSet("VERSION", versionID) myModule.pkg_set("VERSION", versionID)
myModule.pkgSet("COMPAGNY_TYPE", "org") myModule.pkg_set("COMPAGNY_TYPE", "org")
myModule.pkgSet("COMPAGNY_NAME", "Edouard DUPIN") myModule.pkg_set("COMPAGNY_NAME", "Edouard DUPIN")
myModule.pkgSet("MAINTAINER", ["Mr DUPIN Edouard <yui.heero@gmail.com>"]) myModule.pkg_set("MAINTAINER", ["Mr DUPIN Edouard <yui.heero@gmail.com>"])
myModule.pkgSet("SECTION", ["Development"]) myModule.pkg_set("SECTION", ["Development"])
myModule.pkgSet("PRIORITY", "optional") myModule.pkg_set("PRIORITY", "optional")
myModule.pkgSet("DESCRIPTION", "e-json tester soft") myModule.pkg_set("DESCRIPTION", "e-json tester soft")
myModule.pkgSet("NAME", "exml_tester") myModule.pkg_set("NAME", "exml_tester")
# add the currrent module at the # add the currrent module at the
return myModule return myModule

View File

@ -2,6 +2,9 @@
import monkModule as module import monkModule as module
import monkTools as tools import monkTools as tools
def get_desc():
return "e-json Json parser and genrator"
def create(): def create():
# module name is 'edn' and type binary. # module name is 'edn' and type binary.
myModule = module.Module(__file__, 'ejson', 'LIBRARY') myModule = module.Module(__file__, 'ejson', 'LIBRARY')
@ -11,5 +14,3 @@ def create():
# add the currrent module at the # add the currrent module at the
return myModule return myModule
def get_desc():
return ""