[DEV] update lutin naming
This commit is contained in:
parent
f702b2de77
commit
0061e5e7e9
@ -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/")
|
||||
|
@ -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 <yui.heero@gmail.com>"])
|
||||
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 <yui.heero@gmail.com>"])
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user