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():
|
|
|
|
return "APACHE-2"
|
|
|
|
|
|
|
|
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/stdTools.cpp',
|
|
|
|
'etk/tool.cpp',
|
|
|
|
'etk/Noise.cpp',
|
|
|
|
'etk/Color.cpp',
|
|
|
|
'etk/math/Matrix2.cpp',
|
|
|
|
'etk/math/Matrix4.cpp',
|
|
|
|
'etk/math/Vector2D.cpp',
|
|
|
|
'etk/math/Vector3D.cpp',
|
|
|
|
'etk/math/Vector4D.cpp',
|
|
|
|
'etk/os/FSNode.cpp',
|
|
|
|
'etk/os/FSNodeRight.cpp',
|
|
|
|
'etk/archive/Archive.cpp',
|
|
|
|
'etk/archive/Zip.cpp'])
|
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',
|
|
|
|
'etk/types.hpp',
|
|
|
|
'etk/stdTools.hpp',
|
|
|
|
'etk/tool.hpp',
|
|
|
|
'etk/Noise.hpp',
|
|
|
|
'etk/Color.hpp',
|
|
|
|
'etk/Hash.hpp',
|
|
|
|
'etk/math/Matrix2.hpp',
|
|
|
|
'etk/math/Matrix4.hpp',
|
|
|
|
'etk/math/Vector2D.hpp',
|
|
|
|
'etk/math/Vector3D.hpp',
|
|
|
|
'etk/math/Vector4D.hpp',
|
|
|
|
'etk/os/Fifo.hpp',
|
|
|
|
'etk/os/FSNode.hpp',
|
|
|
|
'etk/os/FSNodeRight.hpp',
|
|
|
|
'etk/archive/Archive.hpp',
|
|
|
|
'etk/archive/Zip.hpp'])
|
2013-07-24 07:42:25 +02:00
|
|
|
|
2016-01-08 22:18:22 +01:00
|
|
|
# build in C++ mode
|
2015-10-14 21:21:03 +02:00
|
|
|
my_module.compile_version("c++", 2011)
|
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([
|
|
|
|
'cxx',
|
|
|
|
'm',
|
|
|
|
'elog',
|
|
|
|
'ememory'
|
|
|
|
])
|
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
|
|
|
|
|
|
|
|