diff --git a/DEPS.txt b/DEPS.txt new file mode 100644 index 0000000000000000000000000000000000000000..c16656dc33a6b8376ad2c77916628a5d204e0d60 --- /dev/null +++ b/DEPS.txt @@ -0,0 +1,3 @@ +REQUIRED="rsb" +OPTIONAL="" + diff --git a/ipaacalib/cpp/src/ipaaca.cc b/ipaacalib/cpp/src/ipaaca.cc index d92e9f12f91293efb0a1746c396d5370fac4693d..06ef34c9a73933f1e56537d7039e59a243c07d9d 100644 --- a/ipaacalib/cpp/src/ipaaca.cc +++ b/ipaacalib/cpp/src/ipaaca.cc @@ -8,6 +8,8 @@ using namespace rsb::filter; using namespace rsb::converter; using namespace rsb::patterns; +#define VERBOSE_HANDLERS 0 + // util and init//{{{ bool Initializer::_initialized = false; @@ -238,7 +240,13 @@ void IUEventHandler::call(Buffer* buffer, boost::shared_ptr<IUInterface> iu, boo if (_condition_met(event_type, category)) { //IUInterface::ptr iu = buffer->get(uid); //if (iu) { +#if VERBOSE_HANDLERS == 1 + std::cout << "[" << pthread_self() << " handler ENTER]" << std::endl; +#endif _function(iu, event_type, local); +#if VERBOSE_HANDLERS == 1 + std::cout << "[" << pthread_self() << " handler EXIT]" << std::endl; +#endif //} } } diff --git a/resolve.sh b/resolve.sh index ae425de258cd379e69d427b2a1b2583b9347ac5c..8a145de568dbc29304b1cedff832c944b05acb10 100755 --- a/resolve.sh +++ b/resolve.sh @@ -1,6 +1,11 @@ #!/bin/bash -PACKAGES="rsb" +# This file is deprecated. +# Resolution is performed automatically in the soa script. + +eval "`grep '^REQUIRED=\|^OPTIONAL=' DEPS.txt`" +REQ="$REQUIRED" +OPT="$OPTIONAL" shopt -q nullglob || resetnullglob=1 shopt -s nullglob @@ -12,7 +17,8 @@ mkdir -p deps/lib mkdir -p deps/include mkdir -p deps/scripts mkdir -p deps/python -for P in $PACKAGES; do +for P in $REQ $OPT; do + echo "Importing from $P ..." files=(../$P/dist/bin/*); [ "$files" ] && cp -a ../$P/dist/bin/* deps/bin/ files=(../$P/dist/lib/*); @@ -25,7 +31,12 @@ for P in $PACKAGES; do [ "$files" ] && for zipfile in ../$P/dist/python/*.zip; do unzip -oqq $zipfile -d deps/python done + files=(../$P/dist/*.py.zip); + [ "$files" ] && for zipfile in ../$P/dist/*.py.zip; do + unzip -oqq $zipfile -d deps/python + done done +echo "Done." [ "$resetdotglob" ] && shopt -u dotglob [ "$resetnullglob" ] && shopt -u nullglob