[DEV] add optinnal dependency of eproperty and esignal

This commit is contained in:
Edouard DUPIN 2016-03-22 22:18:16 +01:00
parent 073ae904c6
commit f43a5a7341
2 changed files with 16 additions and 0 deletions

View File

@ -314,3 +314,17 @@ namespace etk {
return from_string(_variableRet, etk::to_string(_value)); return from_string(_variableRet, etk::to_string(_value));
} }
}; };
#ifdef GALE_BUILD_ESIGNAL
#include <esignal/details/Signal.hxx>
#include <esignal/details/ISignal.hxx>
template class esignal::Signal<gale::Dimension>;
template class esignal::ISignal<gale::Dimension>;
#endif
#ifdef GALE_BUILD_EPROPERTY
//#include <eproperty/details/Range.hxx>
#include <eproperty/details/Value.hxx>
//template class eproperty::Range<gale::Dimension>;
template class eproperty::Value<gale::Dimension>;
#endif

View File

@ -135,6 +135,8 @@ def create(target, module_name):
'gale/resource/VirtualBufferObject.h' 'gale/resource/VirtualBufferObject.h'
]) ])
my_module.add_module_depend(['etk']) my_module.add_module_depend(['etk'])
my_module.add_optionnal_module_depend('esignal', ["c++", "-DGALE_BUILD_ESIGNAL"])
my_module.add_optionnal_module_depend('eproperty', ["c++", "-DGALE_BUILD_EPROPERTY"])
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(tools.get_current_path(__file__))
my_module.compile_flags('c++', [ my_module.compile_flags('c++', [