Browse Source

Replaced Visual Studio project files with CMake

release/0.19
Jessica James 6 years ago
parent
commit
f9e365c77d
  1. 1
      .gitignore
  2. 9
      CMakeLists.txt
  3. 42
      Jupiter.sln
  4. 172
      Jupiter/Jupiter.vcxproj
  5. 261
      Jupiter/Jupiter.vcxproj.filters
  6. 14
      Jupiter/resource.h
  7. 59
      Tester/Test.cpp
  8. 91
      Tester/Tester.vcxproj
  9. 22
      Tester/Tester.vcxproj.filters
  10. 6
      build/CMakeLists.txt
  11. 0
      build/MSVC/CMakeLists.txt
  12. 4
      src/CMakeLists.txt
  13. 0
      src/common/Base64.cpp
  14. 40
      src/common/CMakeLists.txt
  15. 2
      src/common/Command.cpp
  16. 0
      src/common/Config.cpp
  17. 0
      src/common/DataBuffer.cpp
  18. 0
      src/common/Database.cpp
  19. 2
      src/common/File.cpp
  20. 0
      src/common/Functions.c
  21. 0
      src/common/GenericCommand.cpp
  22. 2
      src/common/HTTP_Server.cpp
  23. 0
      src/common/Hash.cpp
  24. 0
      src/common/INIConfig.cpp
  25. 2
      src/common/IRC_Client.cpp
  26. 0
      src/common/Jupiter.cpp
  27. 2
      src/common/Plugin.cpp
  28. 0
      src/common/Rehash.cpp
  29. 0
      src/common/SecureSocket.cpp
  30. 0
      src/common/Socket.cpp
  31. 0
      src/common/TCPSocket.cpp
  32. 0
      src/common/Timer.cpp
  33. 0
      src/common/UDPSocket.cpp
  34. 0
      src/include/Algorithm.h
  35. 0
      src/include/ArrayList.h
  36. 2
      src/include/Base64.h
  37. 0
      src/include/CString.h
  38. 0
      src/include/CString_Imp.h
  39. 0
      src/include/Command.h
  40. 0
      src/include/Config.h
  41. 0
      src/include/DataBuffer.h
  42. 0
      src/include/DataBuffer_Imp.h
  43. 0
      src/include/Database.h
  44. 0
      src/include/File.h
  45. 0
      src/include/Functions.h
  46. 2
      src/include/GenericCommand.h
  47. 0
      src/include/HTTP.h
  48. 0
      src/include/HTTP_QueryString.h
  49. 0
      src/include/HTTP_Server.h
  50. 0
      src/include/Hash.h
  51. 2
      src/include/Hash_Table.h
  52. 0
      src/include/Hash_Table_Imp.h
  53. 0
      src/include/INIConfig.h
  54. 0
      src/include/IRC.h
  55. 0
      src/include/IRC_Client.h
  56. 0
      src/include/IRC_Numerics.h
  57. 0
      src/include/InvalidIndex.h
  58. 0
      src/include/Jupiter.h
  59. 2
      src/include/Plugin.h
  60. 0
      src/include/Readable_String.h
  61. 0
      src/include/Readable_String_Imp.h
  62. 0
      src/include/Reference_String.h
  63. 0
      src/include/Reference_String_Imp.h
  64. 0
      src/include/Rehash.h
  65. 0
      src/include/SecureSocket.h
  66. 0
      src/include/Shift_String.h
  67. 0
      src/include/Shift_String_Imp.h
  68. 2
      src/include/Socket.h
  69. 0
      src/include/String.hpp
  70. 2
      src/include/String_Imp.h
  71. 0
      src/include/String_Type.h
  72. 0
      src/include/String_Type_Imp.h
  73. 0
      src/include/TCPSocket.h
  74. 0
      src/include/Thinker.h
  75. 0
      src/include/Timer.h
  76. 0
      src/include/UDPSocket.h

1
.gitignore

@ -11,7 +11,6 @@
[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

9
CMakeLists.txt

@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.8)
project(jupiter)
set(CMAKE_CXX_STANDARD 17)
include(build/CMakeLists.txt)
# Setup source files
add_subdirectory(src)

42
Jupiter.sln

@ -1,42 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Jupiter", "Jupiter\Jupiter.vcxproj", "{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tester", "Tester\Tester.vcxproj", "{0F041791-1047-4C6A-A4C1-814E6957D5EB}"
ProjectSection(ProjectDependencies) = postProject
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8} = {367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Debug|Win32.ActiveCfg = Debug|Win32
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Debug|Win32.Build.0 = Debug|Win32
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Debug|Win32.Deploy.0 = Debug|Win32
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Debug|x64.ActiveCfg = Debug|x64
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Debug|x64.Build.0 = Debug|x64
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Release|Win32.ActiveCfg = Release|Win32
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Release|Win32.Build.0 = Release|Win32
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Release|x64.ActiveCfg = Release|x64
{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}.Release|x64.Build.0 = Release|x64
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Debug|Win32.ActiveCfg = Debug|Win32
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Debug|Win32.Build.0 = Debug|Win32
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Debug|x64.ActiveCfg = Debug|x64
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Debug|x64.Build.0 = Debug|x64
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Release|Win32.ActiveCfg = Release|Win32
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Release|Win32.Build.0 = Release|Win32
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Release|x64.ActiveCfg = Release|x64
{0F041791-1047-4C6A-A4C1-814E6957D5EB}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

172
Jupiter/Jupiter.vcxproj

@ -1,172 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{367CBCA8-6F27-484A-BC6C-2FC087FBB0C8}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>Jupiter</RootNamespace>
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<OutDir>$(SolutionDir)bin\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='Win32'">
<IncludePath>C:\dev\OpenSSL\Win32\include;$(IncludePath)</IncludePath>
<LibraryPath>C:\dev\OpenSSL\Win32\lib\VC;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x64'">
<IncludePath>C:\dev\OpenSSL\Win64\include;$(IncludePath)</IncludePath>
<LibraryPath>C:\dev\OpenSSL\Win64\lib\VC;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<PreprocessorDefinitions>WIN32;_CONSOLE;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;JUPITER_EXPORTS;JUPITER_PLATFORM="$(Platform)/";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<DisableSpecificWarnings>4505</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
</Link>
<ResourceCompile>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
<Link>
<AdditionalDependencies>libcrypto32MD.lib;libssl32MD.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
<Link>
<AdditionalDependencies>libcrypto64MD.lib;libssl64MD.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<Optimization>Full</Optimization>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Base64.cpp" />
<ClCompile Include="Command.cpp" />
<ClCompile Include="Config.cpp" />
<ClCompile Include="Database.cpp" />
<ClCompile Include="DataBuffer.cpp" />
<ClCompile Include="File.cpp" />
<ClCompile Include="Functions.c" />
<ClCompile Include="GenericCommand.cpp" />
<ClCompile Include="Hash.cpp" />
<ClCompile Include="HTTP_Server.cpp" />
<ClCompile Include="IRC_Client.cpp" />
<ClCompile Include="Jupiter.cpp" />
<ClCompile Include="Plugin.cpp" />
<ClCompile Include="Rehash.cpp" />
<ClCompile Include="SecureSocket.cpp" />
<ClCompile Include="Socket.cpp" />
<ClCompile Include="TCPSocket.cpp" />
<ClCompile Include="Timer.cpp" />
<ClCompile Include="UDPSocket.cpp" />
<ClCompile Include="INIConfig.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="Algorithm.h" />
<ClInclude Include="ArrayList.h" />
<ClInclude Include="Base64.h" />
<ClInclude Include="Command.h" />
<ClInclude Include="Config.h" />
<ClInclude Include="CString.h" />
<ClInclude Include="CString_Imp.h" />
<ClInclude Include="Database.h" />
<ClInclude Include="DataBuffer.h" />
<ClInclude Include="DataBuffer_Imp.h" />
<ClInclude Include="File.h" />
<ClInclude Include="GenericCommand.h" />
<ClInclude Include="Hash.h" />
<ClInclude Include="Hash_Table.h" />
<ClInclude Include="Hash_Table_Imp.h" />
<ClInclude Include="HTTP.h" />
<ClInclude Include="HTTP_QueryString.h" />
<ClInclude Include="HTTP_Server.h" />
<ClInclude Include="InvalidIndex.h" />
<ClInclude Include="IRC.h" />
<ClInclude Include="IRC_Numerics.h" />
<ClInclude Include="Jupiter.h" />
<ClInclude Include="Functions.h" />
<ClInclude Include="IRC_Client.h" />
<ClInclude Include="Plugin.h" />
<ClInclude Include="Readable_String.h" />
<ClInclude Include="Readable_String_Imp.h" />
<ClInclude Include="Reference_String.h" />
<ClInclude Include="Reference_String_Imp.h" />
<ClInclude Include="Rehash.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="SecureSocket.h" />
<ClInclude Include="Shift_String.h" />
<ClInclude Include="Shift_String_Imp.h" />
<ClInclude Include="Socket.h" />
<ClInclude Include="String.h" />
<ClInclude Include="String_Imp.h" />
<ClInclude Include="String_Type_Imp.h" />
<ClInclude Include="String_Type.h" />
<ClInclude Include="TCPSocket.h" />
<ClInclude Include="Thinker.h" />
<ClInclude Include="Timer.h" />
<ClInclude Include="UDPSocket.h" />
<ClInclude Include="INIConfig.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

261
Jupiter/Jupiter.vcxproj.filters

@ -1,261 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
<Filter Include="Header Files\Lists">
<UniqueIdentifier>{1e778301-e8e9-4565-b651-8686ec19b419}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\Sockets">
<UniqueIdentifier>{02e48221-98b3-4875-aa96-796a9aedc4b5}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\IRC">
<UniqueIdentifier>{a7ca0e66-d9b7-43e2-a3f8-d89744bd3c06}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\IRC">
<UniqueIdentifier>{6f290a91-7cd8-495e-ae20-22c956fcfbcb}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\Sockets">
<UniqueIdentifier>{95b491ba-ca51-4aad-bdb8-7fae054498d2}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\Strings">
<UniqueIdentifier>{55c2d716-1fc1-42a3-8dc0-ef730ae338e4}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\Files">
<UniqueIdentifier>{bd64544d-de91-47a1-afda-21e37a7e31e0}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\Files">
<UniqueIdentifier>{10026b7d-c0ef-416c-ac1f-9e94064a404f}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\Object Extensions">
<UniqueIdentifier>{08dcc387-4b58-4f1f-b785-9565fe67f645}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\Object Extensions">
<UniqueIdentifier>{37b5eaf6-0e4f-4609-8518-1b72f93aebe5}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\DataBuffer">
<UniqueIdentifier>{aef2e303-8a68-4cf9-8464-c4aef776d3f3}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\HTTP">
<UniqueIdentifier>{790badaf-80b5-40b0-8de1-a71f4c523074}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\HTTP">
<UniqueIdentifier>{7a4d818a-481e-467c-a3e3-d6d0e7dde244}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\Hash">
<UniqueIdentifier>{7db21243-8b23-4dd2-9888-0bdd3c5a1edd}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\Files\Configs">
<UniqueIdentifier>{da033f3a-f5fd-4592-900f-f17bb3520547}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files\Files\Configs">
<UniqueIdentifier>{b5b148d5-c636-41eb-838a-7555114e1589}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Functions.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Jupiter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="TCPSocket.cpp">
<Filter>Source Files\Sockets</Filter>
</ClCompile>
<ClCompile Include="UDPSocket.cpp">
<Filter>Source Files\Sockets</Filter>
</ClCompile>
<ClCompile Include="Socket.cpp">
<Filter>Source Files\Sockets</Filter>
</ClCompile>
<ClCompile Include="SecureSocket.cpp">
<Filter>Source Files\Sockets</Filter>
</ClCompile>
<ClCompile Include="File.cpp">
<Filter>Source Files\Files</Filter>
</ClCompile>
<ClCompile Include="Timer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Plugin.cpp">
<Filter>Source Files\Object Extensions</Filter>
</ClCompile>
<ClCompile Include="Rehash.cpp">
<Filter>Source Files\Object Extensions</Filter>
</ClCompile>
<ClCompile Include="Base64.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="IRC_Client.cpp">
<Filter>Source Files\IRC</Filter>
</ClCompile>
<ClCompile Include="DataBuffer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Database.cpp">
<Filter>Source Files\Files</Filter>
</ClCompile>
<ClCompile Include="HTTP_Server.cpp">
<Filter>Source Files\HTTP</Filter>
</ClCompile>
<ClCompile Include="GenericCommand.cpp">
<Filter>Source Files\Object Extensions</Filter>
</ClCompile>
<ClCompile Include="Command.cpp">
<Filter>Source Files\Object Extensions</Filter>
</ClCompile>
<ClCompile Include="Hash.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Config.cpp">
<Filter>Source Files\Files\Configs</Filter>
</ClCompile>
<ClCompile Include="INIConfig.cpp">
<Filter>Source Files\Files\Configs</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Functions.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Jupiter.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="UDPSocket.h">
<Filter>Header Files\Sockets</Filter>
</ClInclude>
<ClInclude Include="TCPSocket.h">
<Filter>Header Files\Sockets</Filter>
</ClInclude>
<ClInclude Include="SecureSocket.h">
<Filter>Header Files\Sockets</Filter>
</ClInclude>
<ClInclude Include="Socket.h">
<Filter>Header Files\Sockets</Filter>
</ClInclude>
<ClInclude Include="IRC.h">
<Filter>Header Files\IRC</Filter>
</ClInclude>
<ClInclude Include="IRC_Client.h">
<Filter>Header Files\IRC</Filter>
</ClInclude>
<ClInclude Include="ArrayList.h">
<Filter>Header Files\Lists</Filter>
</ClInclude>
<ClInclude Include="CString.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="String_Type.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="CString_Imp.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="File.h">
<Filter>Header Files\Files</Filter>
</ClInclude>
<ClInclude Include="Timer.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Base64.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Rehash.h">
<Filter>Header Files\Object Extensions</Filter>
</ClInclude>
<ClInclude Include="Plugin.h">
<Filter>Header Files\Object Extensions</Filter>
</ClInclude>
<ClInclude Include="Thinker.h">
<Filter>Header Files\Object Extensions</Filter>
</ClInclude>
<ClInclude Include="IRC_Numerics.h">
<Filter>Header Files\IRC</Filter>
</ClInclude>
<ClInclude Include="InvalidIndex.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="String_Type_Imp.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="Shift_String.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="Shift_String_Imp.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="String.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="String_Imp.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="Readable_String.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="Readable_String_Imp.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="Reference_String.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="Reference_String_Imp.h">
<Filter>Header Files\Strings</Filter>
</ClInclude>
<ClInclude Include="Database.h">
<Filter>Header Files\Files</Filter>
</ClInclude>
<ClInclude Include="DataBuffer_Imp.h">
<Filter>Header Files\DataBuffer</Filter>
</ClInclude>
<ClInclude Include="DataBuffer.h">
<Filter>Header Files\DataBuffer</Filter>
</ClInclude>
<ClInclude Include="HTTP_Server.h">
<Filter>Header Files\HTTP</Filter>
</ClInclude>
<ClInclude Include="HTTP.h">
<Filter>Header Files\HTTP</Filter>
</ClInclude>
<ClInclude Include="HTTP_QueryString.h">
<Filter>Header Files\HTTP</Filter>
</ClInclude>
<ClInclude Include="GenericCommand.h">
<Filter>Header Files\Object Extensions</Filter>
</ClInclude>
<ClInclude Include="Command.h">
<Filter>Header Files\Object Extensions</Filter>
</ClInclude>
<ClInclude Include="Hash.h">
<Filter>Header Files\Hash</Filter>
</ClInclude>
<ClInclude Include="Hash_Table.h">
<Filter>Header Files\Hash</Filter>
</ClInclude>
<ClInclude Include="Hash_Table_Imp.h">
<Filter>Header Files\Hash</Filter>
</ClInclude>
<ClInclude Include="Config.h">
<Filter>Header Files\Files\Configs</Filter>
</ClInclude>
<ClInclude Include="INIConfig.h">
<Filter>Header Files\Files\Configs</Filter>
</ClInclude>
<ClInclude Include="Algorithm.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>

14
Jupiter/resource.h

@ -1,14 +0,0 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Jupiter.rc
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

59
Tester/Test.cpp

@ -1,59 +0,0 @@
#include <chrono>
#include <string>
#include <iostream>
#include <thread>
#include "Jupiter/Functions.h"
#include "Jupiter/CString.h"
#include "Jupiter/String.h"
#include "Jupiter/File.h"
#include "Jupiter/Base64.h"
#include "Jupiter/InvalidIndex.h"
#include "Jupiter/Reference_String.h"
#include "Jupiter/DataBuffer.h"
#include "Jupiter/HTTP.h"
#include "Jupiter/HTTP_Server.h"
#include "Jupiter/HTTP_QueryString.h"
#include "Jupiter/Hash.h"
#include "Jupiter/Hash_Table.h"
#include "Jupiter/Algorithm.h"
using namespace Jupiter;
using namespace Jupiter::literals;
unsigned int good_tests = 0;
unsigned int total_tests = 0;
void test(bool expr)
{
++total_tests;
if (expr)
++good_tests;
else
std::cout << "Test number " << total_tests << " failed!" << std::endl;
}
template<typename T> void test(T result, T expected_result)
{
++total_tests;
if (result == expected_result)
++good_tests;
else
{
std::cout << "Test number " << total_tests << " failed!" << std::endl;
std::cout << "\tExpected '" << expected_result << "' but got '" << result << "' instead" << std::endl;
}
}
int main()
{
if (good_tests == total_tests)
std::cout << "All " << total_tests << " tests succeeded." << std::endl;
else
std::cout << "ERROR: Only " << good_tests << "/" << total_tests << " tests succeeded. " << total_tests - good_tests << " tests failed." << std::endl;
std::cout << "Press any key to continue..." << std::endl;
std::cin.get();
return 0;
}

91
Tester/Tester.vcxproj

@ -1,91 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{0F041791-1047-4C6A-A4C1-814E6957D5EB}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>Tester</RootNamespace>
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<LibraryPath>$(SolutionDir)bin\$(Platform)\$(Configuration)\;$(LibraryPath)</LibraryPath>
<OutDir>$(SolutionDir)bin\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)build\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<PreprocessorDefinitions>WIN32;_CONSOLE;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>../;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<AdditionalDependencies>Jupiter.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Full</Optimization>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Test.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

22
Tester/Tester.vcxproj.filters

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Test.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>

6
build/CMakeLists.txt

@ -0,0 +1,6 @@
# Include any compiler-specifc settings
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_CXX_COMPILER_ID}")
include("${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_CXX_COMPILER_ID}/CMakeLists.txt")
else()
message(STATUS "No compiler-specific settings set; CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}")
endif()

0
build/MSVC/CMakeLists.txt

4
src/CMakeLists.txt

@ -0,0 +1,4 @@
cmake_minimum_required(VERSION 3.8)
# Setup source files
add_subdirectory(common)

0
Jupiter/Base64.cpp → src/common/Base64.cpp

40
src/common/CMakeLists.txt

@ -0,0 +1,40 @@
cmake_minimum_required(VERSION 3.8)
# Setup source files
set(SOURCE_FILES
Base64.cpp
Command.cpp
Config.cpp
Database.cpp
DataBuffer.cpp
File.cpp
Functions.c
GenericCommand.cpp
Hash.cpp
HTTP_Server.cpp
INIConfig.cpp
IRC_Client.cpp
Jupiter.cpp
Plugin.cpp
Rehash.cpp
SecureSocket.cpp
Socket.cpp
TCPSocket.cpp
Timer.cpp
UDPSocket.cpp)
# Setup library build target
add_library(jupiter SHARED ${SOURCE_FILES})
# Find OpenSSL
find_package(OpenSSL REQUIRED)
# Setup include directories
target_include_directories(jupiter PUBLIC ../include)
target_include_directories(jupiter PRIVATE ${OPENSSL_INCLUDE_DIR})
# Setup additionally needed libs
target_link_libraries(jupiter ${OPENSSL_LIBRARIES})
# Setup macros JUPITER_EXPORTS
target_compile_definitions(jupiter PRIVATE JUPITER_EXPORTS)

2
Jupiter/Command.cpp → src/common/Command.cpp

@ -20,7 +20,7 @@
#include "ArrayList.h"
#include "Functions.h"
#include "Command.h"
#include "String.h"
#include "String.hpp"
struct Jupiter::Command::Data
{

0
Jupiter/Config.cpp → src/common/Config.cpp

0
Jupiter/DataBuffer.cpp → src/common/DataBuffer.cpp

0
Jupiter/Database.cpp → src/common/Database.cpp

2
Jupiter/File.cpp → src/common/File.cpp

@ -19,7 +19,7 @@
#include <sys/stat.h>
#include "File.h"
#include "CString.h"
#include "String.h"
#include "String.hpp"
#include "Reference_String.h"
#include "ArrayList.h"

0
Jupiter/Functions.c → src/common/Functions.c

0
Jupiter/GenericCommand.cpp → src/common/GenericCommand.cpp

2
Jupiter/HTTP_Server.cpp → src/common/HTTP_Server.cpp

@ -18,7 +18,7 @@
#include <ctime>
#include <chrono>
#include "String.h"
#include "String.hpp"
#include "CString.h"
#include "Reference_String.h"
#include "TCPSocket.h"

0
Jupiter/Hash.cpp → src/common/Hash.cpp

0
Jupiter/INIConfig.cpp → src/common/INIConfig.cpp

2
Jupiter/IRC_Client.cpp → src/common/IRC_Client.cpp

@ -24,7 +24,7 @@
#include "IRC_Client.h"
#include "TCPSocket.h"
#include "CString.h"
#include "String.h"
#include "String.hpp"
#include "Plugin.h"
#include "Base64.h"

0
Jupiter/Jupiter.cpp → src/common/Jupiter.cpp

2
Jupiter/Plugin.cpp → src/common/Plugin.cpp

@ -29,7 +29,7 @@
#include "Functions.h"
#include "ArrayList.h"
#include "CString.h"
#include "String.h"
#include "String.hpp"
using namespace Jupiter::literals;

0
Jupiter/Rehash.cpp → src/common/Rehash.cpp

0
Jupiter/SecureSocket.cpp → src/common/SecureSocket.cpp

0
Jupiter/Socket.cpp → src/common/Socket.cpp

0
Jupiter/TCPSocket.cpp → src/common/TCPSocket.cpp

0
Jupiter/Timer.cpp → src/common/Timer.cpp

0
Jupiter/UDPSocket.cpp → src/common/UDPSocket.cpp

0
Jupiter/Algorithm.h → src/include/Algorithm.h

0
Jupiter/ArrayList.h → src/include/ArrayList.h

2
Jupiter/Base64.h → src/include/Base64.h

@ -27,7 +27,7 @@
#include <cstdint>
#include <cstddef>
#include "Jupiter.h"
#include "String.h"
#include "String.hpp"
namespace Jupiter
{

0
Jupiter/CString.h → src/include/CString.h

0
Jupiter/CString_Imp.h → src/include/CString_Imp.h

0
Jupiter/Command.h → src/include/Command.h

0
Jupiter/Config.h → src/include/Config.h

0
Jupiter/DataBuffer.h → src/include/DataBuffer.h

0
Jupiter/DataBuffer_Imp.h → src/include/DataBuffer_Imp.h

0
Jupiter/Database.h → src/include/Database.h

0
Jupiter/File.h → src/include/File.h

0
Jupiter/Functions.h → src/include/Functions.h

2
Jupiter/GenericCommand.h → src/include/GenericCommand.h

@ -25,7 +25,7 @@
*/
#include "Command.h"
#include "String.h"
#include "String.hpp"
#include "ArrayList.h"
/** DLL Linkage Nagging */

0
Jupiter/HTTP.h → src/include/HTTP.h

0
Jupiter/HTTP_QueryString.h → src/include/HTTP_QueryString.h

0
Jupiter/HTTP_Server.h → src/include/HTTP_Server.h

0
Jupiter/Hash.h → src/include/Hash.h

2
Jupiter/Hash_Table.h → src/include/Hash_Table.h

@ -25,7 +25,7 @@
*/
#include <forward_list>
#include "String.h"
#include "String.hpp"
namespace Jupiter
{

0
Jupiter/Hash_Table_Imp.h → src/include/Hash_Table_Imp.h

0
Jupiter/INIConfig.h → src/include/INIConfig.h

0
Jupiter/IRC.h → src/include/IRC.h

0
Jupiter/IRC_Client.h → src/include/IRC_Client.h

0
Jupiter/IRC_Numerics.h → src/include/IRC_Numerics.h

0
Jupiter/InvalidIndex.h → src/include/InvalidIndex.h

0
Jupiter/Jupiter.h → src/include/Jupiter.h

2
Jupiter/Plugin.h → src/include/Plugin.h

@ -28,7 +28,7 @@
#include "Thinker.h"
#include "Rehash.h"
#include "INIConfig.h"
#include "String.h"
#include "String.hpp"
/** DLL Linkage Nagging */
#if defined _MSC_VER

0
Jupiter/Readable_String.h → src/include/Readable_String.h

0
Jupiter/Readable_String_Imp.h → src/include/Readable_String_Imp.h

0
Jupiter/Reference_String.h → src/include/Reference_String.h

0
Jupiter/Reference_String_Imp.h → src/include/Reference_String_Imp.h

0
Jupiter/Rehash.h → src/include/Rehash.h

0
Jupiter/SecureSocket.h → src/include/SecureSocket.h

0
Jupiter/Shift_String.h → src/include/Shift_String.h

0
Jupiter/Shift_String_Imp.h → src/include/Shift_String_Imp.h

2
Jupiter/Socket.h → src/include/Socket.h

@ -27,7 +27,7 @@
#include <cstring>
#include "Jupiter.h"
#include "Readable_String.h"
#include "String.h"
#include "String.hpp"
struct addrinfo;
struct in_addr6;

0
Jupiter/String.h → src/include/String.hpp

2
Jupiter/String_Imp.h → src/include/String_Imp.h

@ -24,7 +24,7 @@
* @brief Provides the implementations for String_Strict and String_Loose.
*/
#include "String.h"
#include "String.hpp"
#if !defined va_copy

0
Jupiter/String_Type.h → src/include/String_Type.h

0
Jupiter/String_Type_Imp.h → src/include/String_Type_Imp.h

0
Jupiter/TCPSocket.h → src/include/TCPSocket.h

0
Jupiter/Thinker.h → src/include/Thinker.h

0
Jupiter/Timer.h → src/include/Timer.h

0
Jupiter/UDPSocket.h → src/include/UDPSocket.h

Loading…
Cancel
Save