diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-31 21:05:47 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-31 21:05:47 (GMT) |
commit | a61ef07b5eb3dacfc596a26cb1373356e5673dbb (patch) | |
tree | 484f4c1952c493032f8ca42709e001d7cc25be6a /apps | |
parent | eab5c12b2a1b9cfee94e8d0cbe41fb5d78594bb5 (diff) | |
download | uscxml-a61ef07b5eb3dacfc596a26cb1373356e5673dbb.zip uscxml-a61ef07b5eb3dacfc596a26cb1373356e5673dbb.tar.gz uscxml-a61ef07b5eb3dacfc596a26cb1373356e5673dbb.tar.bz2 |
Support for ignoring libraries when building and minimal builds
Diffstat (limited to 'apps')
-rw-r--r-- | apps/uscxml-browser.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/uscxml-browser.cpp b/apps/uscxml-browser.cpp index f9a06bb..4e21ec6 100644 --- a/apps/uscxml-browser.cpp +++ b/apps/uscxml-browser.cpp @@ -1,7 +1,10 @@ #include "uscxml/config.h" #include "uscxml/Interpreter.h" #include "uscxml/DOMUtils.h" -#include "uscxml/debug/DebuggerServlet.h" + +#ifndef BUILD_MINIMAL +# include "uscxml/debug/DebuggerServlet.h" +#endif #include <glog/logging.h> #include "uscxml/Factory.h" @@ -159,11 +162,13 @@ int main(int argc, char** argv) { } HTTPServer::getInstance(options.httpPort, options.wsPort, sslConf); +#ifndef BUILD_MINIMAL DebuggerServlet* debugger; if (options.withDebugger) { debugger = new DebuggerServlet(); HTTPServer::getInstance()->registerServlet("/debug", debugger); } +#endif // instantiate and configure interpreters std::list<Interpreter> interpreters; @@ -184,9 +189,12 @@ int main(int argc, char** argv) { VerboseMonitor* vm = new VerboseMonitor(); interpreter.addMonitor(vm); } + +#ifndef BUILD_MINIMAL if (options.withDebugger) { interpreter.addMonitor(debugger); } +#endif interpreters.push_back(interpreter); @@ -220,11 +228,13 @@ int main(int argc, char** argv) { } } +#ifndef BUILD_MINIMAL if (options.withDebugger) { // idle and wait for CTRL+C or debugging events while(true) tthread::this_thread::sleep_for(tthread::chrono::seconds(1)); } +#endif } catch (Event e) { std::cout << e << std::endl; } |