2013-04-21 22:22:12 +02:00
|
|
|
#!/usr/bin/python
|
2016-10-04 23:41:29 +02:00
|
|
|
import lutin.debug as debug
|
2015-05-08 22:40:35 +02:00
|
|
|
import lutin.tools as tools
|
2013-04-21 22:22:12 +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():
|
2015-10-14 21:21:03 +02:00
|
|
|
return "Ewol tool kit"
|
|
|
|
|
|
|
|
def get_licence():
|
2017-01-05 21:28:23 +01:00
|
|
|
return "MPL-2"
|
2015-10-14 21:21:03 +02:00
|
|
|
|
|
|
|
def get_compagny_type():
|
|
|
|
return "com"
|
2013-12-23 22:38:46 +01:00
|
|
|
|
2015-10-14 21:21:03 +02:00
|
|
|
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):
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_extra_flags()
|
2013-04-21 22:22:12 +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
|
|
|
'etk/debug.cpp',
|
|
|
|
'etk/etk.cpp',
|
|
|
|
'etk/tool.cpp',
|
|
|
|
'etk/Noise.cpp',
|
|
|
|
'etk/Color.cpp',
|
2017-08-22 21:20:43 +02:00
|
|
|
'etk/RegEx.cpp',
|
2018-09-03 23:16:27 +02:00
|
|
|
'etk/fs/fileSystem.cpp',
|
|
|
|
'etk/fs/Path.cpp',
|
|
|
|
'etk/fs/Permissions.cpp',
|
|
|
|
'etk/fs/Type.cpp',
|
2018-09-02 03:43:32 +02:00
|
|
|
'etk/io/OpenMode.cpp',
|
|
|
|
'etk/io/SeekMode.cpp',
|
2018-09-03 22:29:14 +02:00
|
|
|
'etk/io/Interface.cpp',
|
2018-09-02 03:43:32 +02:00
|
|
|
'etk/io/File.cpp',
|
2018-09-03 22:29:14 +02:00
|
|
|
'etk/io/ZipFile.cpp',
|
2018-08-31 21:43:16 +02:00
|
|
|
'etk/theme/theme.cpp',
|
2017-05-16 21:17:16 +02:00
|
|
|
'etk/math/Matrix2x2.cpp',
|
|
|
|
'etk/math/Matrix2x3.cpp',
|
|
|
|
'etk/math/Matrix3x3.cpp',
|
|
|
|
'etk/math/Matrix4x4.cpp',
|
2016-10-04 23:41:29 +02:00
|
|
|
'etk/math/Vector2D.cpp',
|
|
|
|
'etk/math/Vector3D.cpp',
|
|
|
|
'etk/math/Vector4D.cpp',
|
2017-05-08 23:48:36 +00:00
|
|
|
'etk/math/Quaternion.cpp',
|
2017-05-16 21:17:16 +02:00
|
|
|
'etk/math/Transform3D.cpp',
|
2016-10-04 23:41:29 +02:00
|
|
|
'etk/os/FSNode.cpp',
|
|
|
|
'etk/os/FSNodeRight.cpp',
|
|
|
|
'etk/archive/Archive.cpp',
|
2018-08-31 21:43:16 +02:00
|
|
|
'etk/archive/Zip.cpp',
|
2018-09-06 21:52:19 +02:00
|
|
|
'etk/uri/Uri.cpp',
|
|
|
|
'etk/uri/Query.cpp',
|
2018-08-31 21:43:16 +02:00
|
|
|
])
|
2013-04-21 22:22:12 +02:00
|
|
|
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'etk/etk.hpp',
|
2017-03-11 22:10:25 +01:00
|
|
|
'etk/debug.hpp',
|
2016-10-04 23:41:29 +02:00
|
|
|
'etk/tool.hpp',
|
|
|
|
'etk/Noise.hpp',
|
|
|
|
'etk/Color.hpp',
|
2017-08-22 21:20:43 +02:00
|
|
|
'etk/RegEx.hpp',
|
2018-09-03 23:16:27 +02:00
|
|
|
'etk/fs/fileSystem.hpp',
|
|
|
|
'etk/fs/Path.hpp',
|
|
|
|
'etk/fs/Permissions.hpp',
|
|
|
|
'etk/fs/Type.hpp',
|
2018-09-03 22:29:14 +02:00
|
|
|
'etk/io/OpenMode.hpp',
|
|
|
|
'etk/io/SeekMode.hpp',
|
|
|
|
'etk/io/Interface.hpp',
|
|
|
|
'etk/io/File.hpp',
|
|
|
|
'etk/io/ZipFile.hpp',
|
2018-08-31 21:43:16 +02:00
|
|
|
'etk/theme/theme.hpp',
|
2017-05-16 21:17:16 +02:00
|
|
|
'etk/math/Matrix2x2.hpp',
|
|
|
|
'etk/math/Matrix2x3.hpp',
|
|
|
|
'etk/math/Matrix3x3.hpp',
|
|
|
|
'etk/math/Matrix4x4.hpp',
|
2016-10-04 23:41:29 +02:00
|
|
|
'etk/math/Vector2D.hpp',
|
|
|
|
'etk/math/Vector3D.hpp',
|
|
|
|
'etk/math/Vector4D.hpp',
|
2017-05-08 23:48:36 +00:00
|
|
|
'etk/math/Quaternion.hpp',
|
2017-05-16 21:17:16 +02:00
|
|
|
'etk/math/Transform3D.hpp',
|
2016-10-04 23:41:29 +02:00
|
|
|
'etk/os/Fifo.hpp',
|
|
|
|
'etk/os/FSNode.hpp',
|
|
|
|
'etk/os/FSNodeRight.hpp',
|
|
|
|
'etk/archive/Archive.hpp',
|
2018-08-19 22:55:04 +02:00
|
|
|
'etk/archive/Zip.hpp',
|
|
|
|
'etk/TreeNode.hpp',
|
|
|
|
'etk/FlatTree.hpp',
|
2018-09-06 21:52:19 +02:00
|
|
|
'etk/uri/Uri.hpp',
|
|
|
|
'etk/uri/Query.hpp',
|
2018-08-19 22:55:04 +02:00
|
|
|
])
|
2013-07-24 07:42:25 +02:00
|
|
|
|
2016-01-08 22:18:22 +01:00
|
|
|
# build in C++ mode
|
2018-08-20 21:29:31 +02:00
|
|
|
my_module.compile_version("c++", 2017)
|
2016-01-11 22:28:46 +01:00
|
|
|
# add dependency of the generic C++ library:
|
2016-10-04 23:41:29 +02:00
|
|
|
my_module.add_depend([
|
2017-08-23 22:05:29 +02:00
|
|
|
'c',
|
2016-10-04 23:41:29 +02:00
|
|
|
'm',
|
|
|
|
'elog',
|
2017-08-28 00:02:11 +02:00
|
|
|
'ememory',
|
2018-09-06 21:52:19 +02:00
|
|
|
'etk-core',
|
2016-10-04 23:41:29 +02:00
|
|
|
])
|
2017-09-17 00:12:49 +02:00
|
|
|
# TODO: Remove this ==> when ready to remove dependency with stl:
|
|
|
|
my_module.add_depend(['cxx'])
|
|
|
|
|
2016-01-11 22:28:46 +01:00
|
|
|
# add some optionnal libraries
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_optionnal_depend('minizip', ["c++", "-DETK_BUILD_MINIZIP"])
|
|
|
|
my_module.add_optionnal_depend('linearmath', ["c", "-DETK_BUILD_LINEARMATH"], export=True)
|
2015-02-20 21:40:03 +01:00
|
|
|
|
2016-09-16 21:11:44 +02:00
|
|
|
if "Android" in target.get_type():
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_depend("SDK")
|
2013-05-08 12:19:19 +02:00
|
|
|
|
2016-10-04 23:41:29 +02:00
|
|
|
my_module.add_path(".")
|
|
|
|
return True
|
2013-04-21 22:22:12 +02:00
|
|
|
|
|
|
|
|