ewol/sample/001_HelloWord/lutin_001_HelloWord.py

33 lines
786 B
Python
Raw Normal View History

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
# optionnal : Describe in the "lutin.py --help"
def get_desc():
return "Tutorial 001 : Hello Word"
# Module creation instance (not optionnal)
def create(target):
# module name is '001_HelloWord' and type binary.
myModule = module.Module(__file__, '001_HelloWord', 'BINARY')
# add the file to compile:
myModule.add_src_file([
'appl/Main.cpp',
'appl/debug.cpp',
'appl/Windows.cpp',
])
# add Library dependency name
myModule.add_module_depend(['ewol'])
# add application C flags
2015-05-08 22:40:53 +02:00
myModule.compile_flags('c++', [
2014-12-04 23:30:36 +01:00
"-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""])
# Add current include Path
myModule.add_path(tools.get_current_path(__file__))
# return the created module
return myModule