diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-15 16:40:14 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-15 16:40:14 +0300 |
commit | acfde068698184249e50e0781a22bb38ba87cf3f (patch) | |
tree | eef3bdf99293fcd6fcff58ac1d44655b7b13325c | |
parent | 2f31b8c66a8f3931e1c9ee0c5b9adebf341bee9a (diff) |
codelite projects
-rw-r--r-- | client-qt/udm-client-qt/udm_main.cpp | 1 | ||||
-rw-r--r-- | server/include/server.h | 39 | ||||
-rw-r--r-- | server/include/server_session.h | 57 | ||||
-rw-r--r-- | server/include/socket_wraper.h | 86 | ||||
-rw-r--r-- | server/modules/downloaders/curl/curl.project | 131 | ||||
-rw-r--r-- | server/modules/downloaders/curl/main.cpp | 2 | ||||
-rw-r--r-- | server/modules/metadata/flat_files/module_metadata_flat_files.project | 129 | ||||
-rw-r--r-- | server/udm-server.project | 172 | ||||
-rw-r--r-- | udm.workspace | 29 |
9 files changed, 549 insertions, 97 deletions
diff --git a/client-qt/udm-client-qt/udm_main.cpp b/client-qt/udm-client-qt/udm_main.cpp index a7e0c18..ee58834 100644 --- a/client-qt/udm-client-qt/udm_main.cpp +++ b/client-qt/udm-client-qt/udm_main.cpp @@ -241,7 +241,6 @@ void udm_main::server_message_received(server_msg msg) if(!found) downloads.push_back(msg.download().download()); mdl_downloads->refresh(); - } break; default: diff --git a/server/include/server.h b/server/include/server.h index 812406a..e8fb3ad 100644 --- a/server/include/server.h +++ b/server/include/server.h @@ -1,5 +1,5 @@ /* - Copyright © 2015 Gluzskiy Alexandr (sss) + Copyright © 2015 Gluzskiy Alexandr (sss) This file is part of Unknown Download Manager (UDM). @@ -18,7 +18,6 @@ */ - #ifndef SERVER_H #define SERVER_H @@ -28,32 +27,34 @@ #include "client.h" #include "download_internal.h" -//TODO ssl +// TODO ssl class server_session; - class server { public: - server(boost::asio::io_service& io_service, runtime_config_s &config, std::map<std::string, client*> &clients, std::map<int, download_internal_s> &downloads, short port); - void terminate() - { + server(boost::asio::io_service& io_service, + runtime_config_s& config, + std::map<std::string, client*>& clients, + std::map<int, download_internal_s>& downloads, + short port); + void terminate() + { io_service_.stop(); - } + } private: - void start_accept(); - void handle_accept(server_session* new_session, const boost::system::error_code& error); - - boost::asio::io_service& io_service_; - boost::asio::ip::tcp::acceptor acceptor_; - boost::asio::ssl::context *context_; - runtime_config_s &runtime_config; - std::map<std::string, client*> &clients; - std::map<int, download_internal_s> &downloads; + server(const server&) = delete; + void start_accept(); + void handle_accept(server_session* new_session, const boost::system::error_code& error); + + boost::asio::io_service& io_service_; + boost::asio::ip::tcp::acceptor acceptor_; + boost::asio::ssl::context* context_; + runtime_config_s& runtime_config; + std::map<std::string, client*>& clients; + std::map<int, download_internal_s>& downloads; }; - - #endif // SERVER_H diff --git a/server/include/server_session.h b/server/include/server_session.h index 07e8fcd..436c4ee 100644 --- a/server/include/server_session.h +++ b/server/include/server_session.h @@ -1,5 +1,5 @@ /* - Copyright © 2015 Gluzskiy Alexandr (sss) + Copyright © 2015 Gluzskiy Alexandr (sss) This file is part of Unknown Download Manager (UDM). @@ -18,7 +18,6 @@ */ - #ifndef SERVER_SESSION_H #define SERVER_SESSION_H @@ -34,33 +33,37 @@ class socket_wraper; class server_session { - public: - server_session(boost::asio::io_service &s, runtime_config_s &config, std::map<std::string, client*> &clients_, std::map<int, download_internal_s> &downloads, boost::asio::ssl::context *c = nullptr); - void run(); - void send_message(server_msg *msg); - socket_wraper* socket(); - virtual ~server_session(); - protected: - private: - //net - void handle_read(const boost::system::error_code& error, size_t bytes_transferred); - void handle_write(const boost::system::error_code& error); - void handle_write_no_read(const boost::system::error_code& error); - void handle_handshake(const boost::system::error_code& error); - bool handle_command(client_msg *msg); +public: + server_session(boost::asio::io_service& s, + runtime_config_s& config, + std::map<std::string, client*>& clients_, + std::map<int, download_internal_s>& downloads, + boost::asio::ssl::context* c = nullptr); + void run(); + void send_message(server_msg* msg); + socket_wraper* socket(); + virtual ~server_session(); +protected: +private: + server_session(const server_session&) = delete; + // net + void handle_read(const boost::system::error_code& error, size_t bytes_transferred); + void handle_write(const boost::system::error_code& error); + void handle_write_no_read(const boost::system::error_code& error); + void handle_handshake(const boost::system::error_code& error); + bool handle_command(client_msg* msg); - char *recv_data_; - socket_wraper *socket_; - boost::asio::io_service &io_service_; - boost::asio::ssl::context *context_; - std::string client_auth_token; - runtime_config_s &runtime_config; - std::map<std::string, client*> &clients; - client *client_; - std::map<int, download_internal_s> &downloads; - //TODO: store client ptr + char* recv_data_ = nullptr; + socket_wraper* socket_ = nullptr; + boost::asio::io_service& io_service_; + boost::asio::ssl::context* context_; + std::string client_auth_token; + runtime_config_s& runtime_config; + std::map<std::string, client*>& clients; + client* client_ = nullptr; + std::map<int, download_internal_s>& downloads; + // TODO: store client ptr }; - #endif // SERVER_SESSION_H diff --git a/server/include/socket_wraper.h b/server/include/socket_wraper.h index ed929ca..6e8dd76 100644 --- a/server/include/socket_wraper.h +++ b/server/include/socket_wraper.h @@ -1,5 +1,5 @@ /* - Copyright © 2015 Gluzskiy Alexandr (sss) + Copyright © 2015 Gluzskiy Alexandr (sss) This file is part of Unknown Download Manager (UDM). @@ -27,79 +27,83 @@ class socket_wraper { public: - socket_wraper(boost::asio::ssl::stream<boost::asio::ip::tcp::socket> *s) : is_ssl(true) + socket_wraper(boost::asio::ssl::stream<boost::asio::ip::tcp::socket>* s) + : is_ssl(true) { - socket_ssl_ = s; + socket_ssl_ = s; } - socket_wraper(boost::asio::ip::tcp::socket *s) : is_ssl(false) + socket_wraper(boost::asio::ip::tcp::socket* s) + : is_ssl(false) { - socket_ = s; + socket_ = s; } - void operator=(boost::asio::ssl::stream<boost::asio::ip::tcp::socket> *s) + void operator=(boost::asio::ssl::stream<boost::asio::ip::tcp::socket>* s) { - socket_ssl_ = s; - is_ssl = true; + socket_ssl_ = s; + is_ssl = true; } - void operator=(boost::asio::ip::tcp::socket *s) + void operator=(boost::asio::ip::tcp::socket* s) { - socket_ = s; - is_ssl = false; + socket_ = s; + is_ssl = false; } boost::asio::ip::tcp::socket& get_socket() { - return *socket_; + return *socket_; } boost::asio::ssl::stream<boost::asio::ip::tcp::socket>& get_ssl_socket() { - return *socket_ssl_; + return *socket_ssl_; } - template<typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence & buffers) + template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers) { - if(is_ssl) - return socket_ssl_->read_some(buffers); - else - return socket_->read_some(buffers); + if(is_ssl) + return socket_ssl_->read_some(buffers); + else + return socket_->read_some(buffers); } - template<typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence & buffers, boost::system::error_code & ec) + template <typename MutableBufferSequence> + std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec) { - if(is_ssl) - return socket_ssl_->read_some(buffers, ec); - else - return socket_->read_some(buffers, ec); + if(is_ssl) + return socket_ssl_->read_some(buffers, ec); + else + return socket_->read_some(buffers, ec); } - template<typename MutableBufferSequence, typename ReadHandler> void async_read_some(const MutableBufferSequence & buffers, ReadHandler handler) + template <typename MutableBufferSequence, typename ReadHandler> + void async_read_some(const MutableBufferSequence& buffers, ReadHandler handler) { - if(is_ssl) - socket_ssl_->async_read_some(buffers, handler); - else - socket_->async_read_some(buffers, handler); + if(is_ssl) + socket_ssl_->async_read_some(buffers, handler); + else + socket_->async_read_some(buffers, handler); } - template<typename ConstBufferSequence, typename WriteHandler> void async_write_some(const ConstBufferSequence & buffers, WriteHandler handler) + template <typename ConstBufferSequence, typename WriteHandler> + void async_write_some(const ConstBufferSequence& buffers, WriteHandler handler) { - if(is_ssl) - socket_ssl_->async_write_some(buffers, handler); - else - socket_->async_write_some(buffers, handler); + if(is_ssl) + socket_ssl_->async_write_some(buffers, handler); + else + socket_->async_write_some(buffers, handler); } ~socket_wraper() { - if(is_ssl) - delete socket_ssl_; - else - delete socket_; + if(is_ssl) + delete socket_ssl_; + else + delete socket_; } + private: bool is_ssl; - boost::asio::ip::tcp::socket *socket_; - boost::asio::ssl::stream<boost::asio::ip::tcp::socket> *socket_ssl_; - + boost::asio::ip::tcp::socket* socket_ = nullptr; + boost::asio::ssl::stream<boost::asio::ip::tcp::socket>* socket_ssl_ = nullptr; }; - #endif diff --git a/server/modules/downloaders/curl/curl.project b/server/modules/downloaders/curl/curl.project new file mode 100644 index 0000000..1f82e68 --- /dev/null +++ b/server/modules/downloaders/curl/curl.project @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="UTF-8"?> +<CodeLite_Project Name="curl"> + <Plugins> + <Plugin Name="CMakePlugin"> + <![CDATA[[{ + "name": "Debug", + "enabled": false, + "buildDirectory": "build", + "sourceDirectory": "$(ProjectPath)", + "generator": "", + "buildType": "", + "arguments": [], + "parentProject": "" + }]]]> + </Plugin> + <Plugin Name="qmake"> + <![CDATA[00010001N0005Debug000000000000]]> + </Plugin> + </Plugins> + <Description/> + <Dependencies/> + <VirtualDirectory Name="include"> + <File Name="include/curl_download.h"/> + <File Name="main.h"/> + </VirtualDirectory> + <VirtualDirectory Name="src"> + <File Name="main.cpp"/> + <File Name="src/curl_download.cpp"/> + </VirtualDirectory> + <Settings Type="Dynamic Library"> + <GlobalSettings> + <Compiler Options="" C_Options="" Assembler=""> + <IncludePath Value="."/> + </Compiler> + <Linker Options=""> + <LibraryPath Value="."/> + </Linker> + <ResourceCompiler Options=""/> + </GlobalSettings> + <Configuration Name="Debug" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> + <Compiler Options="-std=c++11;-Wall;-g -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK" C_Options="-std=c++11;-std=c99;-Wall;-g -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> + <IncludePath Value="include"/> + <IncludePath Value="../../../include"/> + </Compiler> + <Linker Options="-O0" Required="yes"> + <LibraryPath Value="."/> + <LibraryPath Value="Debug"/> + <Library Value="boost_system"/> + <Library Value="curl"/> + <Library Value="boost_log"/> + </Linker> + <ResourceCompiler Options="" Required="no"/> + <General OutputFile="../../../bin/Debug/modules/downloaders/libcurl.so" IntermediateDirectory="./Debug" Command="./curl" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="../../../bin/Debug/modules/downloaders" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> + <Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>"> + <![CDATA[]]> + </Environment> + <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> + <DebuggerSearchPaths/> + <PostConnectCommands/> + <StartupCommands/> + </Debugger> + <PreBuild/> + <PostBuild/> + <CustomBuild Enabled="no"> + <RebuildCommand/> + <CleanCommand/> + <BuildCommand/> + <PreprocessFileCommand/> + <SingleFileCommand/> + <MakefileGenerationCommand/> + <ThirdPartyToolName/> + <WorkingDirectory/> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild/> + <CustomPreBuild/> + </AdditionalRules> + <Completion EnableCpp11="no" EnableCpp14="no"> + <ClangCmpFlagsC/> + <ClangCmpFlags/> + <ClangPP/> + <SearchPaths/> + </Completion> + </Configuration> + <Configuration Name="Release" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> + <Compiler Options="-O2 -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK " C_Options="-O2 -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK " Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> + <IncludePath Value="include"/> + <IncludePath Value="../../../include"/> + </Compiler> + <Linker Options="-s " Required="yes"> + <LibraryPath Value="."/> + <LibraryPath Value="Debug"/> + <Library Value="boost_system"/> + <Library Value="curl"/> + <Library Value="boost_log"/> + </Linker> + <ResourceCompiler Options="" Required="no"/> + <General OutputFile="bin/Release/curl" IntermediateDirectory="./Debug" Command="./curl" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="bin/Release" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> + <Environment EnvVarSetName="<Use Workspace Settings>" DbgSetName="<Use Global Settings>"> + <![CDATA[]]> + </Environment> + <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> + <DebuggerSearchPaths/> + <PostConnectCommands/> + <StartupCommands/> + </Debugger> + <PreBuild/> + <PostBuild/> + <CustomBuild Enabled="no"> + <RebuildCommand/> + <CleanCommand/> + <BuildCommand/> + <PreprocessFileCommand/> + <SingleFileCommand/> + <MakefileGenerationCommand/> + <ThirdPartyToolName/> + <WorkingDirectory/> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild/> + <CustomPreBuild/> + </AdditionalRules> + <Completion EnableCpp11="no" EnableCpp14="no"> + <ClangCmpFlagsC/> + <ClangCmpFlags/> + <ClangPP/> + <SearchPaths/> + </Completion> + </Configuration> + </Settings> +</CodeLite_Project> diff --git a/server/modules/downloaders/curl/main.cpp b/server/modules/downloaders/curl/main.cpp index 1e98e14..5e33eb5 100644 --- a/server/modules/downloaders/curl/main.cpp +++ b/server/modules/downloaders/curl/main.cpp @@ -145,7 +145,7 @@ int downloader::add_download(std::map<int, std::string> params) if(params.find(0) == params.end()) //missed required parameter return -1; curl_download *d = new curl_download(params, api); - std::string download_name; +// std::string download_name; { auto p1 = params[0].rfind("/"); if(p1 != std::string::npos) diff --git a/server/modules/metadata/flat_files/module_metadata_flat_files.project b/server/modules/metadata/flat_files/module_metadata_flat_files.project new file mode 100644 index 0000000..22db263 --- /dev/null +++ b/server/modules/metadata/flat_files/module_metadata_flat_files.project @@ -0,0 +1,129 @@ +<?xml version="1.0" encoding="UTF-8"?> +<CodeLite_Project Name="module_metadata_flat_files"> + <Plugins> + <Plugin Name="CMakePlugin"> + <![CDATA[[{ + "name": "Debug", + "enabled": false, + "buildDirectory": "build", + "sourceDirectory": "$(ProjectPath)", + "generator": "", + "buildType": "", + "arguments": [], + "parentProject": "" + }]]]> + </Plugin> + <Plugin Name="qmake"> + <![CDATA[00010001N0005Debug000000000000]]> + </Plugin> + </Plugins> + <Description/> + <Dependencies/> + <VirtualDirectory Name="src"> + <File Name="main.cpp"/> + </VirtualDirectory> + <VirtualDirectory Name="include"> + <File Name="main.h"/> + </VirtualDirectory> + <Settings Type="Dynamic Library"> + <GlobalSettings> + <Compiler Options="" C_Options="" Assembler=""> + <IncludePath Value="."/> + </Compiler> + <Linker Options=""> + <LibraryPath Value="."/> + </Linker> + <ResourceCompiler Options=""/> + </GlobalSettings> + <Configuration Name="Debug" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> + <Compiler Options="-std=c++11;-Wall;-g -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK" C_Options="-std=c++11;-std=c99;-Wall;-g -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> + <IncludePath Value="../../../include"/> + </Compiler> + <Linker Options="-O0" Required="yes"> + <LibraryPath Value="."/> + <LibraryPath Value="Debug"/> + <Library Value="boost_filesystem"/> + <Library Value="boost_system"/> + <Library Value="boost_serialization"/> + <Library Value="boost_log"/> + </Linker> + <ResourceCompiler Options="" Required="no"/> + <General OutputFile="../../../bin/Debug/modules/metadata/libflat_files.so" IntermediateDirectory="./Debug" Command="./flat_files" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="../../../bin/Debug/modules/metadata" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> + <Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>"> + <![CDATA[]]> + </Environment> + <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> + <DebuggerSearchPaths/> + <PostConnectCommands/> + <StartupCommands/> + </Debugger> + <PreBuild/> + <PostBuild/> + <CustomBuild Enabled="no"> + <RebuildCommand/> + <CleanCommand/> + <BuildCommand/> + <PreprocessFileCommand/> + <SingleFileCommand/> + <MakefileGenerationCommand/> + <ThirdPartyToolName/> + <WorkingDirectory/> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild/> + <CustomPreBuild/> + </AdditionalRules> + <Completion EnableCpp11="no" EnableCpp14="no"> + <ClangCmpFlagsC/> + <ClangCmpFlags/> + <ClangPP/> + <SearchPaths/> + </Completion> + </Configuration> + <Configuration Name="Release" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> + <Compiler Options="-O2 -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK " C_Options="-O2 -Wall -fexceptions -fPIC -DBOOST_LOG_DYN_LINK " Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> + <IncludePath Value="../../../include"/> + </Compiler> + <Linker Options="-s " Required="yes"> + <LibraryPath Value="."/> + <LibraryPath Value="Debug"/> + <Library Value="boost_filesystem"/> + <Library Value="boost_system"/> + <Library Value="boost_serialization"/> + <Library Value="boost_log"/> + </Linker> + <ResourceCompiler Options="" Required="no"/> + <General OutputFile="../../../bin/Release/modules/metadata/flat_files" IntermediateDirectory="./Debug" Command="./flat_files" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="../../../bin/Release/modules/metadata" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> + <Environment EnvVarSetName="<Use Workspace Settings>" DbgSetName="<Use Global Settings>"> + <![CDATA[]]> + </Environment> + <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> + <DebuggerSearchPaths/> + <PostConnectCommands/> + <StartupCommands/> + </Debugger> + <PreBuild/> + <PostBuild/> + <CustomBuild Enabled="no"> + <RebuildCommand/> + <CleanCommand/> + <BuildCommand/> + <PreprocessFileCommand/> + <SingleFileCommand/> + <MakefileGenerationCommand/> + <ThirdPartyToolName/> + <WorkingDirectory/> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild/> + <CustomPreBuild/> + </AdditionalRules> + <Completion EnableCpp11="no" EnableCpp14="no"> + <ClangCmpFlagsC/> + <ClangCmpFlags/> + <ClangPP/> + <SearchPaths/> + </Completion> + </Configuration> + </Settings> +</CodeLite_Project> diff --git a/server/udm-server.project b/server/udm-server.project new file mode 100644 index 0000000..9a2b1b2 --- /dev/null +++ b/server/udm-server.project @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="UTF-8"?> +<CodeLite_Project Name="udm-server"> + <Plugins> + <Plugin Name="CMakePlugin"> + <![CDATA[[{ + "name": "Debug", + "enabled": false, + "buildDirectory": "build", + "sourceDirectory": "$(ProjectPath)", + "generator": "", + "buildType": "", + "arguments": [], + "parentProject": "" + }]]]> + </Plugin> + <Plugin Name="qmake"> + <![CDATA[00010001N0005Debug000000000000]]> + </Plugin> + </Plugins> + <Description/> + <Dependencies/> + <VirtualDirectory Name="src"> + <File Name="../protocol/udm.pb.cc"/> + <File Name="src/api_core.cpp"/> + <File Name="src/client.cpp"/> + <File Name="src/main.cpp"/> + <File Name="src/modules_handler.cpp"/> + <File Name="src/protocol.cpp"/> + <File Name="src/server.cpp"/> + <File Name="src/server_session.cpp"/> + <File Name="src/utilities.cpp"/> + </VirtualDirectory> + <VirtualDirectory Name="include"> + <File Name="../protocol/udm.pb.h"/> + <File Name="include/api_core.h"/> + <File Name="include/api_module_base.h"/> + <File Name="include/api_module_downloader.h"/> + <File Name="include/api_module_metadata_storage.h"/> + <File Name="include/client.h"/> + <File Name="include/config.h"/> + <File Name="include/download_internal.h"/> + <File Name="include/main.h"/> + <File Name="include/modules_handler.h"/> + <File Name="include/protocol.h"/> + <File Name="include/server.h"/> + <File Name="include/server_session.h"/> + <File Name="include/socket_wraper.h"/> + <File Name="include/utilities.h"/> + </VirtualDirectory> + <Dependencies Name="Debug"/> + <Settings Type="Executable"> + <GlobalSettings> + <Compiler Options="" C_Options="" Assembler=""> + <IncludePath Value="."/> + </Compiler> + <Linker Options=""> + <LibraryPath Value="."/> + </Linker> + <ResourceCompiler Options=""/> + </GlobalSettings> + <Configuration Name="Debug" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> + <Compiler Options="-std=c++11;-Wall;-g -Wall -DBOOST_LOG_DYN_LINK" C_Options="-std=c++11;-std=c99;-Wall;-g -Wall -DBOOST_LOG_DYN_LINK" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> + <IncludePath Value="include"/> + <IncludePath Value="include"/> + <IncludePath Value="../protocol"/> + </Compiler> + <Linker Options="-O0" Required="yes"> + <LibraryPath Value="."/> + <LibraryPath Value="Debug"/> + <Library Value="protobuf"/> + <Library Value="dl"/> + <Library Value="boost_system"/> + <Library Value="boost_filesystem"/> + <Library Value="boost_program_options"/> + <Library Value="boost_log"/> + <Library Value="pthread"/> + <Library Value="crypto"/> + <Library Value="ssl"/> + <Library Value="boost_random"/> + </Linker> + <ResourceCompiler Options="" Required="no"/> + <General OutputFile="bin/Debug/udm-server" IntermediateDirectory="./Debug" Command="./udm-server" CommandArguments="--run" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="bin/Debug" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> + <Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>"> + <![CDATA[]]> + </Environment> + <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> + <DebuggerSearchPaths/> + <PostConnectCommands/> + <StartupCommands/> + </Debugger> + <PreBuild> + <Command Enabled="no">#[ -d ../protocol ] || mkdir ../protocol</Command> + <Command Enabled="no">#protoc --cpp_out=../protocol --proto_path=../protocol ../protocol/udm.proto</Command> + </PreBuild> + <PostBuild/> + <CustomBuild Enabled="no"> + <RebuildCommand/> + <CleanCommand/> + <BuildCommand/> + <PreprocessFileCommand/> + <SingleFileCommand/> + <MakefileGenerationCommand/> + <ThirdPartyToolName/> + <WorkingDirectory/> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild/> + <CustomPreBuild/> + </AdditionalRules> + <Completion EnableCpp11="no" EnableCpp14="no"> + <ClangCmpFlagsC/> + <ClangCmpFlags/> + <ClangPP/> + <SearchPaths/> + </Completion> + </Configuration> + <Configuration Name="Release" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> + <Compiler Options="-O2 -Wall -DBOOST_LOG_DYN_LINK " C_Options="-O2 -Wall -DBOOST_LOG_DYN_LINK " Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> + <IncludePath Value="server/include"/> + <IncludePath Value="include"/> + <IncludePath Value="include"/> + <IncludePath Value="../protocol"/> + </Compiler> + <Linker Options="-s " Required="yes"> + <LibraryPath Value="."/> + <LibraryPath Value="Debug"/> + <Library Value="protobuf"/> + <Library Value="dl"/> + <Library Value="boost_system"/> + <Library Value="boost_filesystem"/> + <Library Value="boost_program_options"/> + <Library Value="boost_log"/> + <Library Value="pthread"/> + <Library Value="crypto"/> + <Library Value="ssl"/> + <Library Value="boost_random"/> + </Linker> + <ResourceCompiler Options="" Required="no"/> + <General OutputFile="bin/Release/udm-server" IntermediateDirectory="./Debug" Command="./udm-server" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="bin/Release" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/> + <Environment EnvVarSetName="<Use Workspace Settings>" DbgSetName="<Use Global Settings>"> + <![CDATA[]]> + </Environment> + <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no"> + <DebuggerSearchPaths/> + <PostConnectCommands/> + <StartupCommands/> + </Debugger> + <PreBuild/> + <PostBuild/> + <CustomBuild Enabled="no"> + <RebuildCommand/> + <CleanCommand/> + <BuildCommand/> + <PreprocessFileCommand/> + <SingleFileCommand/> + <MakefileGenerationCommand/> + <ThirdPartyToolName/> + <WorkingDirectory/> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild/> + <CustomPreBuild/> + </AdditionalRules> + <Completion EnableCpp11="no" EnableCpp14="no"> + <ClangCmpFlagsC/> + <ClangCmpFlags/> + <ClangPP/> + <SearchPaths/> + </Completion> + </Configuration> + </Settings> +</CodeLite_Project> diff --git a/udm.workspace b/udm.workspace index 9531397..7801efc 100644 --- a/udm.workspace +++ b/udm.workspace @@ -1,8 +1,21 @@ -<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> -<CodeBlocks_workspace_file> - <Workspace title="udm"> - <Project filename="server/udm-server.cbp" /> - <Project filename="server/modules/metadata/flat_files/flat_files.cbp" /> - <Project filename="server/modules/downloaders/curl/curl.cbp" /> - </Workspace> -</CodeBlocks_workspace_file> +<?xml version="1.0" encoding="UTF-8"?> +<CodeLite_Workspace Name="udm" Database="/home/sss/install/git/misc/.codelite/udm.tags"> + <Project Name="udm-server" Path="server/udm-server.project" Active="Yes"/> + <Project Name="module_metadata_flat_files" Path="server/modules/metadata/flat_files/module_metadata_flat_files.project"/> + <Project Name="curl" Path="server/modules/downloaders/curl/curl.project" Active="No"/> + <BuildMatrix> + <WorkspaceConfiguration Name="Debug" Selected="yes"> + <Project Name="udm-server" ConfigName="Debug"/> + <Project Name="module_metadata_flat_files" ConfigName="Debug"/> + <Project Name="curl" ConfigName="Debug"/> + </WorkspaceConfiguration> + <WorkspaceConfiguration Name="Release" Selected="yes"> + <Project Name="udm-server" ConfigName="Release"/> + <Project Name="module_metadata_flat_files" ConfigName="Release"/> + <Project Name="curl" ConfigName="Release"/> + </WorkspaceConfiguration> + </BuildMatrix> + <Environment> + <![CDATA[]]> + </Environment> +</CodeLite_Workspace> |