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
|
2013-04-22 21:21:36 +02:00
|
|
|
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:
|
2014-05-27 21:26:40 +02:00
|
|
|
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',
|
2014-03-23 08:33:04 +01:00
|
|
|
'ewol/Padding.cpp',
|
2014-05-07 23:30:15 +02:00
|
|
|
'ewol/translate.cpp'
|
2013-12-12 22:18:56 +01:00
|
|
|
])
|
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([
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/compositing/Compositing.cpp',
|
2014-01-14 21:50:21 +01:00
|
|
|
'ewol/compositing/TextBase.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/compositing/Text.cpp',
|
2014-01-09 21:40:39 +01:00
|
|
|
'ewol/compositing/TextDF.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'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'
|
|
|
|
])
|
2013-08-29 21:50:41 +02:00
|
|
|
|
2015-09-10 21:32:50 +02:00
|
|
|
# context:
|
2013-12-23 22:38:46 +01:00
|
|
|
myModule.add_src_file([
|
2013-12-12 22:18:56 +01:00
|
|
|
'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([
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/object/Manager.cpp',
|
2014-05-23 12:33:49 +02:00
|
|
|
'ewol/object/Object.cpp',
|
2014-10-29 22:34:06 +01:00
|
|
|
'ewol/object/Worker.cpp'
|
2014-10-29 21:05:49 +01:00
|
|
|
])
|
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:
|
2014-10-29 22:34:06 +01:00
|
|
|
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:
|
2014-10-29 21:05:49 +01:00
|
|
|
myModule.add_src_file([
|
2014-10-30 21:12:15 +01:00
|
|
|
'ewol/signal/Interface.cpp',
|
2014-10-29 21:05:49 +01:00
|
|
|
'ewol/signal/Base.cpp'
|
2013-12-12 22:18:56 +01:00
|
|
|
])
|
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([
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/resource/Colored3DObject.cpp',
|
2014-01-17 22:49:11 +01:00
|
|
|
'ewol/resource/ColorFile.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/resource/ConfigFile.cpp',
|
|
|
|
'ewol/resource/FontFreeType.cpp',
|
|
|
|
'ewol/resource/Image.cpp',
|
2014-01-19 19:16:51 +01:00
|
|
|
'ewol/resource/ImageDF.cpp',
|
2015-08-04 23:24:28 +02:00
|
|
|
'ewol/resource/Texture.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/resource/TexturedFont.cpp',
|
2015-07-21 21:00:40 +02:00
|
|
|
'ewol/resource/DistanceFieldFont.cpp'
|
2013-12-12 22:18:56 +01:00
|
|
|
])
|
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'
|
|
|
|
])
|
2013-12-12 22:18:56 +01:00
|
|
|
|
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',
|
2013-12-12 22:18:56 +01:00
|
|
|
'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',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/widget/ContextMenu.cpp',
|
2013-04-21 22:29:27 +02:00
|
|
|
'ewol/widget/Entry.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/widget/Gird.cpp',
|
|
|
|
'ewol/widget/Image.cpp',
|
2013-04-21 22:29:27 +02:00
|
|
|
'ewol/widget/Joystick.cpp',
|
|
|
|
'ewol/widget/Label.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/widget/Layer.cpp',
|
2013-04-21 22:29:27 +02:00
|
|
|
'ewol/widget/List.cpp',
|
|
|
|
'ewol/widget/ListFileSystem.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/widget/Manager.cpp',
|
2013-04-21 22:29:27 +02:00
|
|
|
'ewol/widget/Menu.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'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',
|
2013-05-08 12:20:47 +02:00
|
|
|
'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',
|
2013-12-12 22:18:56 +01:00
|
|
|
'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__))
|
2014-01-05 17:30:08 +01:00
|
|
|
|
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+"\\\"\""
|
|
|
|
])
|
|
|
|
|
2013-04-22 21:21:36 +02:00
|
|
|
return myModule
|
|
|
|
|