2013-04-21 22:29:27 +02:00
|
|
|
#!/usr/bin/python
|
2015-05-08 22:40:53 +02:00
|
|
|
import lutin.debug as debug
|
2016-10-04 23:41:29 +02:00
|
|
|
import lutin.tools as tools
|
2013-04-21 22:29:27 +02:00
|
|
|
|
2015-10-14 21:21:03 +02:00
|
|
|
|
|
|
|
def get_type():
|
|
|
|
return "LIBRARY"
|
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
def get_desc():
|
2016-02-11 21:45:21 +01:00
|
|
|
return "ewol is a widget management library"
|
2013-12-23 22:38:46 +01:00
|
|
|
|
2015-10-14 21:21:03 +02:00
|
|
|
def get_licence():
|
|
|
|
return "APACHE-2"
|
|
|
|
|
|
|
|
def get_compagny_type():
|
|
|
|
return "com"
|
|
|
|
|
|
|
|
def get_compagny_name():
|
|
|
|
return "atria-soft"
|
2013-12-23 22:38:46 +01:00
|
|
|
|
2015-10-14 21:21:03 +02:00
|
|
|
def get_maintainer():
|
2016-09-12 21:06:37 +02:00
|
|
|
return "authors.txt"
|
2015-10-14 21:21:03 +02:00
|
|
|
|
|
|
|
def get_version():
|
2016-09-12 21:06:37 +02:00
|
|
|
return "version.txt"
|
2015-10-14 21:21:03 +02:00
|
|
|
|
2016-10-04 23:41:29 +02:00
|
|
|
def configure(target, my_module):
|
2015-09-10 21:32:50 +02:00
|
|
|
# add extra compilation flags:
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_extra_flags()
|
2013-04-21 22:29:27 +02:00
|
|
|
# add the file to compile:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/ewol.cpp',
|
|
|
|
'ewol/debug.cpp',
|
|
|
|
'ewol/Padding.cpp',
|
|
|
|
'ewol/translate.cpp',
|
|
|
|
'ewol/DrawProperty.cpp',
|
|
|
|
'ewol/gravity.cpp'
|
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/debug.hpp', # TODO : Remove this ...
|
|
|
|
'ewol/ewol.hpp',
|
|
|
|
'ewol/Padding.hpp',
|
|
|
|
'ewol/translate.hpp',
|
|
|
|
'ewol/DrawProperty.hpp',
|
|
|
|
'ewol/gravity.hpp'
|
|
|
|
])
|
2013-04-21 22:29:27 +02:00
|
|
|
|
2015-09-10 21:32:50 +02:00
|
|
|
# compositing:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/compositing/Compositing.cpp',
|
|
|
|
'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-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/compositing/Text.hpp',
|
|
|
|
'ewol/compositing/Drawing.hpp',
|
|
|
|
'ewol/compositing/Sprite.hpp',
|
|
|
|
'ewol/compositing/Area.hpp',
|
|
|
|
'ewol/compositing/Shaper.hpp',
|
|
|
|
'ewol/compositing/TextDF.hpp',
|
|
|
|
'ewol/compositing/TextBase.hpp',
|
|
|
|
'ewol/compositing/Compositing.hpp',
|
|
|
|
'ewol/compositing/Image.hpp'
|
|
|
|
])
|
2013-08-29 21:50:41 +02:00
|
|
|
|
2015-09-10 21:32:50 +02:00
|
|
|
# context:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/context/ConfigFont.cpp',
|
|
|
|
'ewol/context/Context.cpp',
|
|
|
|
'ewol/context/Application.cpp',
|
|
|
|
'ewol/context/InputManager.cpp'
|
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/context/ConfigFont.hpp',
|
|
|
|
'ewol/context/Context.hpp',
|
|
|
|
'ewol/context/Application.hpp',
|
|
|
|
'ewol/context/InputManager.hpp'
|
|
|
|
])
|
2013-04-21 22:29:27 +02:00
|
|
|
|
2015-09-10 21:32:50 +02:00
|
|
|
# event properties:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/event/Entry.cpp',
|
|
|
|
'ewol/event/Time.cpp',
|
|
|
|
'ewol/event/Input.cpp'
|
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/event/Time.hpp',
|
|
|
|
'ewol/event/Input.hpp',
|
|
|
|
'ewol/event/Entry.hpp'
|
|
|
|
])
|
2013-12-13 21:58:20 +01:00
|
|
|
|
2015-09-10 21:32:50 +02:00
|
|
|
# object:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/object/Manager.cpp',
|
|
|
|
'ewol/object/Object.cpp',
|
|
|
|
'ewol/object/Worker.cpp'
|
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/object/Worker.hpp',
|
|
|
|
'ewol/object/Manager.hpp',
|
|
|
|
'ewol/object/Object.hpp'
|
|
|
|
])
|
2015-09-10 21:32:50 +02:00
|
|
|
|
|
|
|
# resources:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'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',
|
|
|
|
'ewol/resource/DistanceFieldFont.cpp'
|
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/resource/FontFreeType.hpp',
|
|
|
|
'ewol/resource/TexturedFont.hpp',
|
|
|
|
'ewol/resource/ColorFile.hpp',
|
|
|
|
'ewol/resource/font/FontBase.hpp',
|
|
|
|
'ewol/resource/font/Kerning.hpp',
|
|
|
|
'ewol/resource/font/GlyphProperty.hpp',
|
|
|
|
'ewol/resource/DistanceFieldFont.hpp',
|
|
|
|
'ewol/resource/ImageDF.hpp',
|
|
|
|
'ewol/resource/Colored3DObject.hpp',
|
|
|
|
'ewol/resource/ConfigFile.hpp',
|
|
|
|
'ewol/resource/Texture.hpp',
|
|
|
|
'ewol/resource/Image.hpp'
|
|
|
|
])
|
2013-12-12 22:18:56 +01:00
|
|
|
|
2015-09-10 21:32:50 +02:00
|
|
|
# widget:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/widget/ButtonColor.cpp',
|
|
|
|
'ewol/widget/Button.cpp',
|
|
|
|
'ewol/widget/CheckBox.cpp',
|
|
|
|
'ewol/widget/ColorBar.cpp',
|
|
|
|
'ewol/widget/Composer.cpp',
|
|
|
|
'ewol/widget/Container.cpp',
|
|
|
|
'ewol/widget/Container2.cpp',
|
|
|
|
'ewol/widget/ContainerN.cpp',
|
|
|
|
'ewol/widget/ContextMenu.cpp',
|
|
|
|
'ewol/widget/Entry.cpp',
|
|
|
|
'ewol/widget/Gird.cpp',
|
|
|
|
'ewol/widget/Image.cpp',
|
|
|
|
'ewol/widget/Joystick.cpp',
|
|
|
|
'ewol/widget/Label.cpp',
|
|
|
|
'ewol/widget/Layer.cpp',
|
|
|
|
'ewol/widget/List.cpp',
|
|
|
|
'ewol/widget/ListFileSystem.cpp',
|
|
|
|
'ewol/widget/Manager.cpp',
|
|
|
|
'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',
|
|
|
|
'ewol/widget/meta/SpinBase.cpp',
|
|
|
|
'ewol/widget/PopUp.cpp',
|
|
|
|
'ewol/widget/ProgressBar.cpp',
|
|
|
|
'ewol/widget/Scroll.cpp',
|
|
|
|
'ewol/widget/Select.cpp',
|
|
|
|
'ewol/widget/Sizer.cpp',
|
|
|
|
'ewol/widget/Slider.cpp',
|
|
|
|
'ewol/widget/Spacer.cpp',
|
|
|
|
'ewol/widget/Widget.cpp',
|
|
|
|
'ewol/widget/WidgetScrolled.cpp',
|
|
|
|
'ewol/widget/Windows.cpp',
|
|
|
|
'ewol/widget/WSlider.cpp',
|
|
|
|
'ewol/widget/Spin.cpp',
|
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/widget/Menu.hpp',
|
|
|
|
'ewol/widget/Slider.hpp',
|
|
|
|
'ewol/widget/WidgetScrolled.hpp',
|
|
|
|
'ewol/widget/ListFileSystem.hpp',
|
|
|
|
'ewol/widget/Panned.hpp',
|
|
|
|
'ewol/widget/WSlider.hpp',
|
|
|
|
'ewol/widget/Container2.hpp',
|
|
|
|
'ewol/widget/Windows.hpp',
|
|
|
|
'ewol/widget/CheckBox.hpp',
|
|
|
|
'ewol/widget/Container.hpp',
|
|
|
|
'ewol/widget/PopUp.hpp',
|
|
|
|
'ewol/widget/Label.hpp',
|
|
|
|
'ewol/widget/Composer.hpp',
|
|
|
|
'ewol/widget/Sizer.hpp',
|
|
|
|
'ewol/widget/Scroll.hpp',
|
|
|
|
'ewol/widget/ContainerN.hpp',
|
|
|
|
'ewol/widget/Spacer.hpp',
|
|
|
|
'ewol/widget/Button.hpp',
|
|
|
|
'ewol/widget/Manager.hpp',
|
|
|
|
'ewol/widget/Entry.hpp',
|
|
|
|
'ewol/widget/ContextMenu.hpp',
|
|
|
|
'ewol/widget/Gird.hpp',
|
|
|
|
'ewol/widget/ProgressBar.hpp',
|
|
|
|
'ewol/widget/ColorBar.hpp',
|
|
|
|
'ewol/widget/ButtonColor.hpp',
|
|
|
|
'ewol/widget/Layer.hpp',
|
|
|
|
'ewol/widget/Joystick.hpp',
|
|
|
|
'ewol/widget/Widget.hpp',
|
|
|
|
'ewol/widget/meta/StdPopUp.hpp',
|
|
|
|
'ewol/widget/meta/SpinBase.hpp',
|
|
|
|
'ewol/widget/meta/ParameterList.hpp',
|
|
|
|
'ewol/widget/meta/ColorChooser.hpp',
|
|
|
|
'ewol/widget/meta/Parameter.hpp',
|
|
|
|
'ewol/widget/meta/FileChooser.hpp',
|
|
|
|
'ewol/widget/Image.hpp',
|
|
|
|
'ewol/widget/List.hpp',
|
|
|
|
'ewol/widget/Select.hpp',
|
|
|
|
'ewol/widget/Spin.hpp'
|
|
|
|
])
|
2013-04-21 22:29:27 +02:00
|
|
|
|
2016-03-16 21:42:49 +01:00
|
|
|
# tools:
|
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/tools/message.cpp'
|
|
|
|
])
|
2016-03-16 21:42:49 +01:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'ewol/tools/message.hpp'
|
|
|
|
])
|
2016-03-16 21:42:49 +01:00
|
|
|
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.copy_path('data/theme/shape/square/*','theme/shape/square')
|
|
|
|
my_module.copy_path('data/theme/shape/round/*','theme/shape/round')
|
|
|
|
my_module.copy_path('data/theme/color/black/*','theme/color/black')
|
|
|
|
my_module.copy_path('data/theme/color/white/*','theme/color/white')
|
|
|
|
my_module.copy_path('data/textured.*','')
|
|
|
|
my_module.copy_path('data/texturedNoMaterial.*','')
|
|
|
|
my_module.copy_path('data/text.*','')
|
|
|
|
my_module.copy_path('data/simple3D.*','')
|
|
|
|
my_module.copy_path('data/color.*','')
|
|
|
|
my_module.copy_path('data/color3.*','')
|
|
|
|
my_module.copy_path('data/textured3D2.*','')
|
|
|
|
my_module.copy_path('data/textured3D.*','')
|
|
|
|
my_module.copy_path('data/texturedDF.*','')
|
|
|
|
my_module.copy_path('data/fontDistanceField/*','fontDistanceField')
|
|
|
|
my_module.copy_path('data/translate/*','translate/ewol')
|
2013-04-21 22:29:27 +02:00
|
|
|
|
|
|
|
# name of the dependency
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_depend([
|
2016-03-10 22:15:55 +01:00
|
|
|
'elog',
|
2016-02-11 21:45:21 +01:00
|
|
|
'etk',
|
|
|
|
'esignal',
|
|
|
|
'eproperty',
|
2016-03-10 22:15:55 +01:00
|
|
|
'ememory',
|
2016-02-11 21:45:21 +01:00
|
|
|
'gale',
|
|
|
|
'freetype',
|
|
|
|
'exml',
|
|
|
|
'ejson',
|
|
|
|
'egami',
|
|
|
|
'edtaa3'])
|
2013-04-21 22:29:27 +02:00
|
|
|
|
2016-10-04 23:41:29 +02:00
|
|
|
my_module.add_path(".")
|
2015-10-14 21:21:03 +02:00
|
|
|
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_flag('c++', [
|
2016-10-06 21:42:40 +02:00
|
|
|
"-DEWOL_VERSION=\"\\\"" + tools.version_to_string(my_module.get_pkg("VERSION")) + "\\\"\""
|
2016-10-04 23:41:29 +02:00
|
|
|
])
|
2013-11-28 22:06:53 +01:00
|
|
|
|
2016-10-04 23:41:29 +02:00
|
|
|
return True
|
2013-04-22 21:21:36 +02:00
|
|
|
|