comparison irccd-test/main.cpp @ 701:2007a37d7e1a

CMake: prefix options with IRCCD_, #closes 800 @2h
author David Demelier <markand@malikania.fr>
date Wed, 16 May 2018 12:25:51 +0200
parents c0c2926a35df
children e08bfc940c54
comparison
equal deleted inserted replaced
700:91bc29e87399 701:2007a37d7e1a
25 #include <unordered_map> 25 #include <unordered_map>
26 26
27 #include <boost/algorithm/string/trim.hpp> 27 #include <boost/algorithm/string/trim.hpp>
28 #include <boost/filesystem.hpp> 28 #include <boost/filesystem.hpp>
29 29
30 #if defined(HAVE_LIBEDIT) 30 #if defined(IRCCD_HAVE_LIBEDIT)
31 # include <histedit.h> 31 # include <histedit.h>
32 #endif 32 #endif
33 33
34 #include <irccd/options.hpp> 34 #include <irccd/options.hpp>
35 #include <irccd/string_util.hpp> 35 #include <irccd/string_util.hpp>
40 #include <irccd/daemon/service/plugin_service.hpp> 40 #include <irccd/daemon/service/plugin_service.hpp>
41 #include <irccd/daemon/service/server_service.hpp> 41 #include <irccd/daemon/service/server_service.hpp>
42 42
43 #include <irccd/test/debug_server.hpp> 43 #include <irccd/test/debug_server.hpp>
44 44
45 #if defined(HAVE_JS) 45 #if defined(IRCCD_HAVE_JS)
46 # include <irccd/js/js_plugin.hpp> 46 # include <irccd/js/js_plugin.hpp>
47 #endif 47 #endif
48 48
49 namespace irccd { 49 namespace irccd {
50 50
470 it->second(pos == std::string::npos ? "" : line.substr(pos + 1)); 470 it->second(pos == std::string::npos ? "" : line.substr(pos + 1));
471 } 471 }
472 472
473 // }}} 473 // }}}
474 474
475 #if defined(HAVE_LIBEDIT) 475 #if defined(IRCCD_HAVE_LIBEDIT)
476 476
477 // {{{ prompt (libedit version) 477 // {{{ prompt (libedit version)
478 478
479 const char* prompt(EditLine*) 479 const char* prompt(EditLine*)
480 { 480 {
618 618
619 void load(int argc, char** argv) 619 void load(int argc, char** argv)
620 { 620 {
621 daemon = std::make_unique<irccd>(io); 621 daemon = std::make_unique<irccd>(io);
622 622
623 #if defined(HAVE_JS) 623 #if defined(IRCCD_HAVE_JS)
624 daemon->plugins().add_loader(js_plugin_loader::defaults(*daemon)); 624 daemon->plugins().add_loader(js_plugin_loader::defaults(*daemon));
625 #endif 625 #endif
626 626
627 load_options(argc, argv); 627 load_options(argc, argv);
628 load_plugins(argc, argv); 628 load_plugins(argc, argv);