diff options
Diffstat (limited to 'server/modules')
-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 |
3 files changed, 261 insertions, 1 deletions
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> |