zeus/lutin_zeus.py

111 lines
2.5 KiB
Python

#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import lutin.macro as macro
def get_type():
return "LIBRARY"
def get_desc():
return "Zeus ewol micro-service"
def get_licence():
return "APACHE-2"
def get_compagny_type():
return "com"
def get_compagny_name():
return "atria-soft"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
def configure(target, my_module):
my_module.add_depend([
'etk',
'enet',
'ememory',
'eproperty',
'echrono'
])
my_module.add_src_file([
'zeus/debug.cpp'
])
my_module.add_path(".")
my_module.add_src_file([
'zeus/zeus.cpp',
'zeus/AbstractFunction.cpp',
'zeus/FutureBase.cpp',
'zeus/Future.cpp',
'zeus/Raw.cpp',
'zeus/FileImpl.cpp',
'zeus/Buffer.cpp',
'zeus/BufferParameter.cpp',
'zeus/BufferCall.cpp',
'zeus/BufferCtrl.cpp',
'zeus/BufferAnswer.cpp',
'zeus/BufferData.cpp',
'zeus/BufferEvent.cpp',
'zeus/BufferFlow.cpp',
'zeus/BufferParameter_addParameter.cpp',
'zeus/BufferParameter_getParameter.cpp',
'zeus/ParamType.cpp',
'zeus/Client.cpp',
'zeus/Object.cpp',
'zeus/ObjectRemote.cpp',
'zeus/RemoteProcessCall.cpp',
'zeus/WebServer.cpp',
'zeus/mineType.cpp',
'zeus/BaseProxy.cpp',
'zeus/SystemProxy.cpp',
'zeus/RemoteProperty.cpp',
])
my_module.add_header_file([
'zeus/zeus.hpp',
'zeus/AbstractFunction.hpp',
'zeus/AbstractFunctionTypeDirect.hpp',
'zeus/AbstractFunctionTypeClass.hpp',
'zeus/FutureData.hpp',
'zeus/FutureBase.hpp',
'zeus/Future.hpp',
'zeus/Raw.hpp',
'zeus/FileImpl.hpp',
'zeus/Buffer.hpp',
'zeus/BufferParameter.hpp',
'zeus/BufferCall.hpp',
'zeus/BufferCtrl.hpp',
'zeus/BufferAnswer.hpp',
'zeus/BufferData.hpp',
'zeus/BufferEvent.hpp',
'zeus/BufferFlow.hpp',
'zeus/ParamType.hpp',
'zeus/debug.hpp',
'zeus/Client.hpp',
'zeus/Object.hpp',
'zeus/ObjectRemote.hpp',
'zeus/RemoteProcessCall.hpp',
'zeus/WebObj.hpp',
'zeus/WebServer.hpp',
'zeus/mineType.hpp',
'zeus/BaseProxy.hpp',
'zeus/RemoteProperty.hpp',
'zeus/SystemProxy.hpp',
])
# add basic object:
zeus_macro = macro.load_macro('zeus')
zeus_macro.parse_object_idl(my_module, 'zeus/zeus-File.obj.zeus.idl')
if target.config["compilator"] == "clang":
my_module.add_flag('c++', "-Wno-unsequenced", export=True)
# build in C++ mode
my_module.compile_version("c++", 2011)
return True