2014-12-04 23:30:36 +01:00
#!/usr/bin/python
2015-05-08 22:40:53 +02:00
import lutin . module as module
import lutin . tools as tools
2014-12-04 23:30:36 +01:00
import datetime
2015-10-14 21:21:03 +02:00
def get_type ( ) :
return " BINARY "
def get_name ( ) :
return " ewol Wallpaper sample "
def get_sub_type ( ) :
return " SAMPLE "
2014-12-04 23:30:36 +01:00
def get_desc ( ) :
return " Tutorial xxx example wallpaper "
2015-10-14 21:21:03 +02:00
def get_licence ( ) :
return " APACHE-2 "
2014-12-04 23:30:36 +01:00
2015-10-14 21:21:03 +02:00
def get_compagny_type ( ) :
return " com "
def get_compagny_name ( ) :
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 ( ) )
2015-09-24 21:44:04 +02:00
my_module . add_src_file ( [
2014-12-04 23:30:36 +01:00
' appl/Main.cpp ' ,
' appl/debug.cpp ' ,
' appl/WidgetDisplay.cpp ' ,
' appl/Windows.cpp ' ,
] )
2015-09-24 21:44:04 +02:00
my_module . add_module_depend ( [ ' ewol ' ] )
my_module . compile_flags ( ' c++ ' , [
2015-10-14 21:21:03 +02:00
" -DPROJECT_NAME= \" \\ \" " + my_module . name + " \\ \" \" "
] )
2015-09-24 21:44:04 +02:00
my_module . copy_path ( ' data/SnowFlake.svg ' , ' ' )
my_module . add_path ( tools . get_current_path ( __file__ ) )
2014-12-04 23:30:36 +01:00
now = datetime . datetime . now ( )
versionID = str ( now . year - 2013 ) + " . " + str ( now . month ) + " . " + str ( now . day )
# set the package properties :
2015-09-24 21:44:04 +02:00
my_module . pkg_set ( " VERSION " , versionID )
2015-10-14 21:21:03 +02:00
my_module . pkg_set ( " COMPAGNY_TYPE " , get_compagny_type ( ) )
my_module . pkg_set ( " COMPAGNY_NAME " , get_compagny_name ( ) )
my_module . pkg_set ( " MAINTAINER " , get_maintainer ( ) )
2015-09-24 21:44:04 +02:00
my_module . pkg_set ( " ICON " , tools . get_current_path ( __file__ ) + " /../data/icon.png " )
my_module . pkg_set ( " SECTION " , " example " )
my_module . pkg_set ( " PRIORITY " , " extra " )
2015-10-14 21:21:03 +02:00
my_module . pkg_set ( " DESCRIPTION " , get_desc ( ) )
my_module . pkg_set ( " NAME " , get_name ( ) )
2015-09-24 21:44:04 +02:00
my_module . pkg_set ( " ANDROID_APPL_TYPE " , " WALLPAPER " )
2014-12-04 23:30:36 +01:00
#for the exemple :
2015-09-24 21:44:04 +02:00
my_module . pkg_add ( " ANDROID_WALLPAPER_PROPERTIES " , [ " list " , " testpattern " , " Select test pattern " , " Choose which test pattern to display " , \
2014-12-04 23:30:36 +01:00
[ [ " key " , " value display " ] , \
[ " key2 " , " value display 2 " ] \
] \
] )
2015-09-24 21:44:04 +02:00
my_module . pkg_add ( " ANDROID_WALLPAPER_PROPERTIES " , [ " bool " , " movement " , " Motion " , " Apply movement to test pattern " , [ " Moving test pattern " , " Still test pattern " ] ] )
2014-12-04 23:30:36 +01:00
# add the currrent module at the
2015-09-24 21:44:04 +02:00
return my_module
2014-12-04 23:30:36 +01:00