From 0061e5e7e9bafd8d4543988f3f51048f44b0c128 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 23 Dec 2013 22:38:46 +0100 Subject: [PATCH] [DEV] update lutin naming --- lutinBase.py | 4 +-- sources/lutin_test_ewol.py | 58 ++++++++++++++++++++------------------ 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/lutinBase.py b/lutinBase.py index fc93b11..66fc5f2 100755 --- a/lutinBase.py +++ b/lutinBase.py @@ -2,5 +2,5 @@ import lutinModule import lutinTools -lutinModule.ImportPath(lutinTools.GetCurrentPath(__file__) + "/sources/") -lutinModule.ImportPath(lutinTools.GetCurrentPath(__file__) + "/../ewol/") +lutinModule.import_path(lutinTools.get_current_path(__file__) + "/sources/") +lutinModule.import_path(lutinTools.get_current_path(__file__) + "/../ewol/") diff --git a/sources/lutin_test_ewol.py b/sources/lutin_test_ewol.py index 6e2e264..948c9e8 100755 --- a/sources/lutin_test_ewol.py +++ b/sources/lutin_test_ewol.py @@ -1,13 +1,17 @@ #!/usr/bin/python -import lutinModule -import lutinTools +import lutinModule as module +import lutinTools as tools import datetime -def Create(target): +def get_desc(): + return "EWOL test software" + + +def create(target): # module name is 'edn' and type binary. - myModule = lutinModule.module(__file__, 'test_ewol', 'PACKAGE') + myModule = module.Module(__file__, 'test_ewol', 'PACKAGE') # add the file to compile: - myModule.AddSrcFile([ + myModule.add_src_file([ 'appl/debug.cpp', 'appl/init.cpp', 'appl/MainWindows.cpp', @@ -17,44 +21,44 @@ def Create(target): 'appl/TestLabel.cpp']) # 'appl/TestScene.cpp' - myModule.AddModuleDepend(['ewol']) + myModule.add_module_depend(['ewol']) now = datetime.datetime.now() versionID=str(now.year-2013)+"."+str(now.month)+"."+str(now.day) - myModule.CompileFlags_CC([ + myModule.compile_flags_CC([ "-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\"", "-DAPPL_VERSION_TAG_NAME=\"\\\""+versionID+"\\\"\"", "-DBUILD_TIME=\"\\\""+str(now.day)+"/"+str(now.month)+"/"+str(now.year)+"\\\"\""]) - myModule.CopyFile('../data/icon.png','icon.png') + myModule.copy_file('../data/icon.png','icon.png') - myModule.CopyFolder('../data/icon.*','') - myModule.CopyFolder('../data/cube.*','') - myModule.CopyFolder('../data/grass.*','') - myModule.CopyFolder('../data/stone*','') - myModule.CopyFolder('../data/sphere.png','') - myModule.CopyFolder('../data/sphere.obj','') + myModule.copy_folder('../data/icon.*','') + myModule.copy_folder('../data/cube.*','') + myModule.copy_folder('../data/grass.*','') + myModule.copy_folder('../data/stone*','') + myModule.copy_folder('../data/sphere.png','') + myModule.copy_folder('../data/sphere.obj','') - myModule.AddPath(lutinTools.GetCurrentPath(__file__)) + myModule.add_path(tools.get_current_path(__file__)) - myModule.CopyFolder("../data/FreeSerif*","fonts/") + myModule.copy_folder("../data/FreeSerif*","fonts/") # 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("ICON", lutinTools.GetCurrentPath(__file__) + "/../data/icon.png") - myModule.pkgSet("SECTION", ["Development"]) - myModule.pkgSet("PRIORITY", "optional") - myModule.pkgSet("DESCRIPTION", "ewol test software") - myModule.pkgSet("NAME", "test software") + 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("ICON", tools.get_current_path(__file__) + "/../data/icon.png") + myModule.pkg_set("SECTION", ["Development"]) + myModule.pkg_set("PRIORITY", "optional") + myModule.pkg_set("DESCRIPTION", "ewol test software") + myModule.pkg_set("NAME", "test software") - myModule.pkgAdd("RIGHT", "SET_ORIENTATION") - myModule.pkgAdd("RIGHT", "VIBRATE") + myModule.pkg_add("RIGHT", "SET_ORIENTATION") + myModule.pkg_add("RIGHT", "VIBRATE") # add the currrent module at the return myModule