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
|
|
|
|
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():
|
|
|
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
|
|
|
|
|
|
|
def get_version():
|
2016-08-30 22:54:57 +02:00
|
|
|
return [0,9,"dev"]
|
2015-10-14 21:21:03 +02:00
|
|
|
|
|
|
|
def create(target, module_name):
|
2013-04-21 22:29:27 +02:00
|
|
|
# module name is 'edn' and type binary.
|
2015-10-14 21:21:03 +02:00
|
|
|
my_module = module.Module(__file__, module_name, get_type())
|
2013-12-22 19:05:43 +01:00
|
|
|
|
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([
|
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',
|
2016-02-04 23:12:36 +01:00
|
|
|
'ewol/translate.cpp',
|
|
|
|
'ewol/DrawProperty.cpp',
|
|
|
|
'ewol/gravity.cpp'
|
2013-12-12 22:18:56 +01:00
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2015-09-14 21:11:04 +02:00
|
|
|
'ewol/debug.h', # TODO : Remove this ...
|
2015-09-10 21:32:50 +02:00
|
|
|
'ewol/ewol.h',
|
|
|
|
'ewol/Padding.h',
|
2016-02-04 23:12:36 +01:00
|
|
|
'ewol/translate.h',
|
|
|
|
'ewol/DrawProperty.h',
|
2016-03-10 22:15:55 +01:00
|
|
|
'ewol/gravity.h'
|
2015-09-10 21:32:50 +02:00
|
|
|
])
|
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([
|
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-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2015-09-10 21:32:50 +02:00
|
|
|
'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:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/context/ConfigFont.cpp',
|
|
|
|
'ewol/context/Context.cpp',
|
2016-03-16 21:42:49 +01:00
|
|
|
'ewol/context/Application.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
'ewol/context/InputManager.cpp'
|
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2015-09-10 21:32:50 +02:00
|
|
|
'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:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.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-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2015-09-10 21:32:50 +02:00
|
|
|
'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:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.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-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2015-09-10 21:32:50 +02:00
|
|
|
'ewol/object/Worker.h',
|
|
|
|
'ewol/object/Manager.h',
|
|
|
|
'ewol/object/Object.h'
|
|
|
|
])
|
|
|
|
|
|
|
|
# resources:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.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-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2015-09-10 21:32:50 +02:00
|
|
|
'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:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.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',
|
2016-02-08 21:15:02 +01:00
|
|
|
'ewol/widget/meta/SpinBase.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',
|
2016-02-08 21:15:02 +01:00
|
|
|
'ewol/widget/Select.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',
|
2016-02-10 21:12:48 +01:00
|
|
|
'ewol/widget/Spin.cpp',
|
2013-12-12 22:18:56 +01:00
|
|
|
])
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2015-09-10 21:32:50 +02:00
|
|
|
'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',
|
2016-02-08 21:15:02 +01:00
|
|
|
'ewol/widget/meta/SpinBase.h',
|
2015-09-10 21:32:50 +02:00
|
|
|
'ewol/widget/meta/ParameterList.h',
|
|
|
|
'ewol/widget/meta/ColorChooser.h',
|
|
|
|
'ewol/widget/meta/Parameter.h',
|
|
|
|
'ewol/widget/meta/FileChooser.h',
|
|
|
|
'ewol/widget/Image.h',
|
2016-02-08 21:15:02 +01:00
|
|
|
'ewol/widget/List.h',
|
2016-02-10 21:12:48 +01:00
|
|
|
'ewol/widget/Select.h',
|
|
|
|
'ewol/widget/Spin.h'
|
2015-09-10 21:32:50 +02:00
|
|
|
])
|
2013-04-21 22:29:27 +02:00
|
|
|
|
2016-03-16 21:42:49 +01:00
|
|
|
# tools:
|
|
|
|
my_module.add_src_file([
|
|
|
|
'ewol/tools/message.cpp'
|
|
|
|
])
|
|
|
|
my_module.add_header_file([
|
|
|
|
'ewol/tools/message.h'
|
|
|
|
])
|
|
|
|
|
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
|
|
|
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_path(tools.get_current_path(__file__))
|
2015-10-14 21:21:03 +02:00
|
|
|
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_flag('c++', [
|
2015-12-03 21:47:54 +01:00
|
|
|
"-DEWOL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
|
2013-11-28 22:06:53 +01:00
|
|
|
])
|
|
|
|
|
2015-09-24 21:44:04 +02:00
|
|
|
return my_module
|
2013-04-22 21:21:36 +02:00
|
|
|
|