2016-05-12 22:45:40 +02:00
|
|
|
#!/usr/bin/python
|
2019-05-03 10:18:22 +02:00
|
|
|
import realog.debug as debug
|
2016-05-12 22:45:40 +02:00
|
|
|
import lutin.tools as tools
|
2016-12-02 23:05:29 +01:00
|
|
|
import lutin.macro as macro
|
2016-05-12 22:45:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
def get_type():
|
|
|
|
return "LIBRARY"
|
|
|
|
|
|
|
|
def get_desc():
|
2016-06-20 23:07:25 +02:00
|
|
|
return "Zeus ewol micro-service"
|
2016-05-12 22:45:40 +02:00
|
|
|
|
|
|
|
def get_licence():
|
2017-01-05 21:28:23 +01:00
|
|
|
return "MPL-2"
|
2016-05-12 22:45:40 +02:00
|
|
|
|
|
|
|
def get_compagny_type():
|
|
|
|
return "com"
|
|
|
|
|
|
|
|
def get_compagny_name():
|
|
|
|
return "atria-soft"
|
|
|
|
|
|
|
|
def get_maintainer():
|
2016-09-12 21:06:37 +02:00
|
|
|
return "authors.txt"
|
2016-05-12 22:45:40 +02:00
|
|
|
|
|
|
|
def get_version():
|
2016-09-15 21:46:39 +02:00
|
|
|
return "version.txt"
|
2016-05-12 22:45:40 +02:00
|
|
|
|
2016-10-04 23:41:29 +02:00
|
|
|
def configure(target, my_module):
|
|
|
|
my_module.add_depend([
|
|
|
|
'etk',
|
|
|
|
'enet',
|
|
|
|
'ememory',
|
2016-11-25 22:02:05 +01:00
|
|
|
'eproperty',
|
|
|
|
'echrono'
|
|
|
|
])
|
2016-05-12 22:45:40 +02:00
|
|
|
my_module.add_src_file([
|
2016-06-20 23:07:25 +02:00
|
|
|
'zeus/debug.cpp'
|
2016-05-12 22:45:40 +02:00
|
|
|
])
|
2016-10-04 23:41:29 +02:00
|
|
|
my_module.add_path(".")
|
2016-12-07 22:18:34 +01:00
|
|
|
# Future and promise interface
|
2016-05-12 22:45:40 +02:00
|
|
|
my_module.add_src_file([
|
2016-06-20 23:07:25 +02:00
|
|
|
'zeus/FutureBase.cpp',
|
|
|
|
'zeus/Future.cpp',
|
2016-12-07 22:18:34 +01:00
|
|
|
'zeus/Promise.cpp',
|
2016-12-28 15:34:05 +01:00
|
|
|
'zeus/FutureGroup.cpp',
|
2016-12-07 22:18:34 +01:00
|
|
|
])
|
|
|
|
my_module.add_header_file([
|
|
|
|
'zeus/Promise.hpp',
|
|
|
|
'zeus/FutureBase.hpp',
|
|
|
|
'zeus/Future.hpp',
|
2016-12-28 15:34:05 +01:00
|
|
|
'zeus/FutureGroup.hpp',
|
2016-12-07 22:18:34 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
# messaging interface
|
|
|
|
my_module.add_src_file([
|
|
|
|
'zeus/message/Message.cpp',
|
|
|
|
'zeus/message/Parameter.cpp',
|
|
|
|
'zeus/message/Call.cpp',
|
|
|
|
'zeus/message/Answer.cpp',
|
|
|
|
'zeus/message/Data.cpp',
|
|
|
|
'zeus/message/Event.cpp',
|
|
|
|
'zeus/message/Flow.cpp',
|
|
|
|
'zeus/message/Parameter_addParameter.cpp',
|
|
|
|
'zeus/message/Parameter_getParameter.cpp',
|
|
|
|
'zeus/message/ParamType.cpp',
|
|
|
|
'zeus/message/type.cpp',
|
|
|
|
])
|
|
|
|
my_module.add_header_file([
|
|
|
|
'zeus/message/Message.hpp',
|
|
|
|
'zeus/message/Parameter.hpp',
|
|
|
|
'zeus/message/Call.hpp',
|
|
|
|
'zeus/message/Answer.hpp',
|
|
|
|
'zeus/message/Data.hpp',
|
|
|
|
'zeus/message/Event.hpp',
|
|
|
|
'zeus/message/Flow.hpp',
|
|
|
|
'zeus/message/ParamType.hpp',
|
|
|
|
'zeus/message/type.hpp',
|
|
|
|
])
|
|
|
|
# complexe object interface
|
|
|
|
my_module.add_src_file([
|
2016-11-29 21:39:39 +01:00
|
|
|
'zeus/Object.cpp',
|
2016-12-07 22:18:34 +01:00
|
|
|
'zeus/ObjectIntrospect.cpp',
|
2016-12-02 22:36:06 +01:00
|
|
|
'zeus/ObjectRemote.cpp',
|
2016-12-07 22:18:34 +01:00
|
|
|
'zeus/Proxy.cpp',
|
|
|
|
])
|
|
|
|
my_module.add_header_file([
|
|
|
|
'zeus/Object.hpp',
|
|
|
|
'zeus/ObjectIntrospect.hpp',
|
|
|
|
'zeus/ObjectRemote.hpp',
|
|
|
|
'zeus/Proxy.hpp',
|
|
|
|
])
|
|
|
|
# other ...
|
|
|
|
my_module.add_src_file([
|
|
|
|
'zeus/zeus.cpp',
|
|
|
|
'zeus/AbstractFunction.cpp',
|
|
|
|
'zeus/Raw.cpp',
|
|
|
|
'zeus/Client.cpp',
|
2016-06-20 23:07:25 +02:00
|
|
|
'zeus/RemoteProcessCall.cpp',
|
2016-12-09 21:23:11 +01:00
|
|
|
'zeus/WebObj.cpp',
|
2016-06-23 22:08:11 +02:00
|
|
|
'zeus/WebServer.cpp',
|
2016-06-20 23:07:25 +02:00
|
|
|
'zeus/mineType.cpp',
|
2016-05-12 22:45:40 +02:00
|
|
|
])
|
|
|
|
my_module.add_header_file([
|
2016-12-07 22:18:34 +01:00
|
|
|
'zeus/Raw.hpp',
|
2016-10-07 23:22:57 +02:00
|
|
|
'zeus/zeus.hpp',
|
2017-05-29 00:42:05 +02:00
|
|
|
'zeus/ActionNotification.hpp',
|
2016-10-02 17:01:22 +02:00
|
|
|
'zeus/AbstractFunction.hpp',
|
|
|
|
'zeus/AbstractFunctionTypeDirect.hpp',
|
|
|
|
'zeus/AbstractFunctionTypeClass.hpp',
|
|
|
|
'zeus/debug.hpp',
|
|
|
|
'zeus/Client.hpp',
|
|
|
|
'zeus/RemoteProcessCall.hpp',
|
2016-12-01 21:06:35 +01:00
|
|
|
'zeus/WebObj.hpp',
|
2016-10-02 17:01:22 +02:00
|
|
|
'zeus/WebServer.hpp',
|
|
|
|
'zeus/mineType.hpp',
|
2016-12-02 22:36:06 +01:00
|
|
|
'zeus/RemoteProperty.hpp',
|
2016-05-12 22:45:40 +02:00
|
|
|
])
|
2016-12-02 23:05:29 +01:00
|
|
|
|
|
|
|
# add basic object:
|
|
|
|
zeus_macro = macro.load_macro('zeus')
|
|
|
|
zeus_macro.parse_object_idl(my_module, 'zeus/zeus-File.obj.zeus.idl')
|
2016-12-07 22:18:34 +01:00
|
|
|
my_module.add_src_file([
|
|
|
|
'zeus/zeus-File.impl.cpp',
|
|
|
|
])
|
|
|
|
my_module.add_header_file([
|
|
|
|
'zeus/zeus-File.impl.hpp',
|
|
|
|
])
|
2016-12-02 23:05:29 +01:00
|
|
|
|
2017-04-14 21:19:19 +02:00
|
|
|
my_module.add_depend('ejson')
|
|
|
|
zeus_macro.parse_object_idl(my_module, 'zeus/zeus-Media.obj.zeus.idl')
|
|
|
|
my_module.add_src_file([
|
|
|
|
'zeus/zeus-Media.impl.cpp',
|
|
|
|
])
|
|
|
|
my_module.add_header_file([
|
|
|
|
'zeus/zeus-Media.impl.hpp',
|
|
|
|
])
|
|
|
|
|
2016-05-20 21:55:10 +02:00
|
|
|
if target.config["compilator"] == "clang":
|
2016-09-15 21:46:39 +02:00
|
|
|
my_module.add_flag('c++', "-Wno-unsequenced", export=True)
|
2016-05-17 22:14:02 +02:00
|
|
|
# build in C++ mode
|
|
|
|
my_module.compile_version("c++", 2011)
|
2016-10-04 23:41:29 +02:00
|
|
|
return True
|
2016-05-12 22:45:40 +02:00
|
|
|
|
|
|
|
|