ewol/lutin_ewol.py

249 lines
6.6 KiB
Python
Raw Normal View History

2013-04-21 22:29:27 +02:00
#!/usr/bin/python
2015-05-08 22:40:53 +02:00
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
2015-05-08 22:40:53 +02:00
import lutin.multiprocess as lutinMultiprocess
2013-04-21 22:29:27 +02:00
2013-12-23 22:38:46 +01:00
def get_desc():
return "ewol is a main library to use widget in the openGl environement and manage all the wraping os"
2014-11-25 22:07:48 +01:00
def get_license():
return "APACHE v2.0"
2013-12-23 22:38:46 +01:00
def create(target):
2013-04-21 22:29:27 +02:00
# module name is 'edn' and type binary.
2013-12-23 22:38:46 +01:00
myModule = module.Module(__file__, 'ewol', 'LIBRARY')
2013-12-22 19:05:43 +01:00
2015-09-10 21:32:50 +02:00
# add extra compilation flags:
myModule.add_extra_compile_flags()
2013-04-21 22:29:27 +02:00
# add the file to compile:
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
2013-04-21 22:29:27 +02:00
'ewol/ewol.cpp',
2013-12-12 22:59:31 +01:00
'ewol/debug.cpp',
'ewol/Padding.cpp',
2014-05-07 23:30:15 +02:00
'ewol/translate.cpp'
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/ewol.h',
'ewol/Padding.h',
'ewol/translate.h'
])
2013-04-21 22:29:27 +02:00
2015-09-10 21:32:50 +02:00
# compositing:
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
'ewol/compositing/Compositing.cpp',
2014-01-14 21:50:21 +01:00
'ewol/compositing/TextBase.cpp',
'ewol/compositing/Text.cpp',
'ewol/compositing/TextDF.cpp',
'ewol/compositing/Drawing.cpp',
'ewol/compositing/Image.cpp',
'ewol/compositing/Sprite.cpp',
'ewol/compositing/Shaper.cpp',
'ewol/compositing/Area.cpp'
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/compositing/Text.h',
'ewol/compositing/Drawing.h',
'ewol/compositing/Sprite.h',
'ewol/compositing/Area.h',
'ewol/compositing/Shaper.h',
'ewol/compositing/TextDF.h',
'ewol/compositing/TextBase.h',
'ewol/compositing/Compositing.h',
'ewol/compositing/Image.h'
])
2015-09-10 21:32:50 +02:00
# context:
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
'ewol/context/ConfigFont.cpp',
'ewol/context/Context.cpp',
'ewol/context/InputManager.cpp'
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/context/ConfigFont.h',
'ewol/context/Context.h',
'ewol/context/Application.h',
'ewol/context/InputManager.h'
])
2013-04-21 22:29:27 +02:00
2015-09-10 21:32:50 +02:00
# event properties:
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
2013-12-13 21:58:20 +01:00
'ewol/event/Entry.cpp',
'ewol/event/Time.cpp',
'ewol/event/Input.cpp'
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/event/Time.h',
'ewol/event/Input.h',
'ewol/event/Entry.h'
])
2013-12-13 21:58:20 +01:00
2015-09-10 21:32:50 +02:00
# object:
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
'ewol/object/Manager.cpp',
'ewol/object/Object.cpp',
'ewol/object/Worker.cpp'
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/object/Worker.h',
'ewol/object/Manager.h',
'ewol/object/Object.h'
])
# parameter:
myModule.add_src_file([
'ewol/parameter/Parameter.cpp',
'ewol/parameter/Interface.cpp',
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/parameter/Value.h',
'ewol/parameter/Interface.h',
'ewol/parameter/Parameter.h',
'ewol/parameter/Range.h',
'ewol/parameter/List.h'
])
# Signal:
myModule.add_src_file([
'ewol/signal/Interface.cpp',
'ewol/signal/Base.cpp'
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/signal/Interface.h',
'ewol/signal/Base.h',
'ewol/signal/Signal.h'
])
2013-04-21 22:29:27 +02:00
2015-09-10 21:32:50 +02:00
# resources:
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
'ewol/resource/Colored3DObject.cpp',
'ewol/resource/ColorFile.cpp',
'ewol/resource/ConfigFile.cpp',
'ewol/resource/FontFreeType.cpp',
'ewol/resource/Image.cpp',
'ewol/resource/ImageDF.cpp',
'ewol/resource/Texture.cpp',
'ewol/resource/TexturedFont.cpp',
2015-07-21 21:00:40 +02:00
'ewol/resource/DistanceFieldFont.cpp'
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/resource/FontFreeType.h',
'ewol/resource/TexturedFont.h',
'ewol/resource/ColorFile.h',
'ewol/resource/font/FontBase.h',
'ewol/resource/font/Kerning.h',
'ewol/resource/font/GlyphProperty.h',
'ewol/resource/DistanceFieldFont.h',
'ewol/resource/ImageDF.h',
'ewol/resource/Colored3DObject.h',
'ewol/resource/ConfigFile.h',
'ewol/resource/Texture.h',
'ewol/resource/Image.h'
])
2015-09-10 21:32:50 +02:00
# widget:
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
2013-04-21 22:29:27 +02:00
'ewol/widget/ButtonColor.cpp',
'ewol/widget/Button.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/CheckBox.cpp',
'ewol/widget/ColorBar.cpp',
'ewol/widget/Composer.cpp',
'ewol/widget/Container.cpp',
2014-01-23 21:12:54 +01:00
'ewol/widget/Container2.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/ContainerN.cpp',
'ewol/widget/ContextMenu.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/Entry.cpp',
'ewol/widget/Gird.cpp',
'ewol/widget/Image.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/Joystick.cpp',
'ewol/widget/Label.cpp',
'ewol/widget/Layer.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/List.cpp',
'ewol/widget/ListFileSystem.cpp',
'ewol/widget/Manager.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/Menu.cpp',
'ewol/widget/meta/ColorChooser.cpp',
'ewol/widget/meta/FileChooser.cpp',
'ewol/widget/meta/Parameter.cpp',
'ewol/widget/meta/ParameterList.cpp',
'ewol/widget/meta/StdPopUp.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/PopUp.cpp',
'ewol/widget/ProgressBar.cpp',
'ewol/widget/Scroll.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/Sizer.cpp',
'ewol/widget/Slider.cpp',
'ewol/widget/Spacer.cpp',
2013-12-13 21:58:20 +01:00
'ewol/widget/Widget.cpp',
2013-04-21 22:29:27 +02:00
'ewol/widget/WidgetScrolled.cpp',
'ewol/widget/Windows.cpp',
'ewol/widget/WSlider.cpp',
])
2015-09-10 21:32:50 +02:00
myModule.add_header_file([
'ewol/widget/Menu.h',
'ewol/widget/Slider.h',
'ewol/widget/WidgetScrolled.h',
'ewol/widget/ListFileSystem.h',
'ewol/widget/Panned.h',
'ewol/widget/WSlider.h',
'ewol/widget/Container2.h',
'ewol/widget/Windows.h',
'ewol/widget/CheckBox.h',
'ewol/widget/Container.h',
'ewol/widget/PopUp.h',
'ewol/widget/Label.h',
'ewol/widget/Composer.h',
'ewol/widget/Sizer.h',
'ewol/widget/Scroll.h',
'ewol/widget/ContainerN.h',
'ewol/widget/Spacer.h',
'ewol/widget/Button.h',
'ewol/widget/Manager.h',
'ewol/widget/Entry.h',
'ewol/widget/ContextMenu.h',
'ewol/widget/Gird.h',
'ewol/widget/ProgressBar.h',
'ewol/widget/ColorBar.h',
'ewol/widget/ButtonColor.h',
'ewol/widget/Layer.h',
'ewol/widget/Joystick.h',
'ewol/widget/Widget.h',
'ewol/widget/meta/StdPopUp.h',
'ewol/widget/meta/ParameterList.h',
'ewol/widget/meta/ColorChooser.h',
'ewol/widget/meta/Parameter.h',
'ewol/widget/meta/FileChooser.h',
'ewol/widget/Image.h',
'ewol/widget/List.h'
])
2013-04-21 22:29:27 +02:00
2015-09-10 21:32:50 +02:00
myModule.copy_path('data/theme/shape/square/*','theme/shape/square')
myModule.copy_path('data/theme/shape/round/*','theme/shape/round')
myModule.copy_path('data/theme/color/black/*','theme/color/black')
myModule.copy_path('data/theme/color/white/*','theme/color/white')
myModule.copy_path('data/textured.*','')
myModule.copy_path('data/texturedNoMaterial.*','')
myModule.copy_path('data/text.*','')
myModule.copy_path('data/simple3D.*','')
myModule.copy_path('data/color.*','')
myModule.copy_path('data/color3.*','')
myModule.copy_path('data/textured3D2.*','')
myModule.copy_path('data/textured3D.*','')
myModule.copy_path('data/texturedDF.*','')
myModule.copy_path('data/fontDistanceField/*','fontDistanceField')
myModule.copy_path('data/translate/*','translate/ewol/')
2013-04-21 22:29:27 +02:00
# name of the dependency
2015-09-10 21:32:50 +02:00
myModule.add_module_depend(['etk', 'gale', 'freetype', 'exml', 'ejson', 'egami', 'edtaa3'])
2013-04-21 22:29:27 +02:00
2013-12-23 22:38:46 +01:00
myModule.add_export_path(tools.get_current_path(__file__))
2013-12-23 22:38:46 +01:00
tagFile = tools.get_current_path(__file__) + "/tag"
ewolVersionID = tools.file_read_data(tagFile)
2015-05-08 22:40:53 +02:00
myModule.compile_flags('c++', [
2013-11-28 22:06:53 +01:00
"-DEWOL_VERSION=\"\\\""+ewolVersionID+"\\\"\""
])
return myModule