updated build system
This commit is contained in:
		| @@ -23,8 +23,7 @@ | ||||
| #define INCLUDE_COMM_PACKET_PACKET_SERVER_HPP_ | ||||
|  | ||||
| #include "comm/packet/client_pool.hpp" | ||||
| #include "types/repertory.hpp" | ||||
| #include "utils/utils.hpp" | ||||
| #include "utils/common.hpp" | ||||
|  | ||||
| using namespace boost::asio; | ||||
| using boost::asio::ip::tcp; | ||||
|   | ||||
| @@ -25,6 +25,8 @@ | ||||
| #include "platform/unix_platform.hpp" | ||||
| #include "platform/win32_platform.hpp" | ||||
| #include "utils/unix.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/windows.hpp" | ||||
| #include "utils/windows/windows_utils.hpp" | ||||
|  | ||||
| #endif // INCLUDE_PLATFORM_PLATFORM_HPP_ | ||||
|   | ||||
| @@ -23,7 +23,6 @@ | ||||
| #define INCLUDE_UTILS_ERROR_UTILS_HPP_ | ||||
|  | ||||
| #include "types/repertory.hpp" | ||||
| #include "utils/error.hpp" | ||||
|  | ||||
| namespace repertory::utils::error { | ||||
| void raise_error(std::string_view function, std::string_view msg); | ||||
|   | ||||
| @@ -22,10 +22,7 @@ | ||||
| #ifndef INCLUDE_UTILS_UTILS_HPP_ | ||||
| #define INCLUDE_UTILS_UTILS_HPP_ | ||||
|  | ||||
| #include "types/remote.hpp" | ||||
| #include "types/repertory.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/windows/windows_utils.hpp" | ||||
|  | ||||
| namespace repertory::utils { | ||||
| void calculate_allocation_size(bool directory, std::uint64_t file_size, | ||||
|   | ||||
| @@ -21,11 +21,11 @@ | ||||
| */ | ||||
| #include "app_config.hpp" | ||||
|  | ||||
| #include "platform/platform.hpp" | ||||
| #include "types/startup_exception.hpp" | ||||
| #include "utils/error_utils.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/path.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/utils.hpp" | ||||
|  | ||||
| namespace { | ||||
|   | ||||
| @@ -21,13 +21,12 @@ | ||||
| */ | ||||
| #include "comm/packet/packet.hpp" | ||||
|  | ||||
| #include "events/event_system.hpp" | ||||
| #include "events/events.hpp" | ||||
| #include "platform/platform.hpp" | ||||
| #include "types/remote.hpp" | ||||
| #include "types/repertory.hpp" | ||||
| #include "utils/encrypt.hpp" | ||||
| #include "utils/encryption.hpp" | ||||
| #include "utils/error_utils.hpp" | ||||
| #include "utils/utils.hpp" | ||||
| #include "utils/string.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
| void packet::clear() { | ||||
|   | ||||
| @@ -23,12 +23,12 @@ | ||||
|  | ||||
| #include "app_config.hpp" | ||||
| #include "file_manager/i_file_manager.hpp" | ||||
| #include "platform/platform.hpp" | ||||
| #include "providers/i_provider.hpp" | ||||
| #include "types/repertory.hpp" | ||||
| #include "utils/error_utils.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/time.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/utils.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
|   | ||||
| @@ -22,6 +22,7 @@ | ||||
| #include "file_manager/file_manager.hpp" | ||||
|  | ||||
| #include "file_manager/events.hpp" | ||||
| #include "platform/platform.hpp" | ||||
| #include "providers/i_provider.hpp" | ||||
| #include "types/repertory.hpp" | ||||
| #include "types/startup_exception.hpp" | ||||
| @@ -29,7 +30,6 @@ | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/path.hpp" | ||||
| #include "utils/time.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/utils.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
|   | ||||
| @@ -23,12 +23,12 @@ | ||||
|  | ||||
| #include "app_config.hpp" | ||||
| #include "file_manager/events.hpp" | ||||
| #include "platform/platform.hpp" | ||||
| #include "providers/i_provider.hpp" | ||||
| #include "types/repertory.hpp" | ||||
| #include "utils/encrypting_reader.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/path.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/utils.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
|   | ||||
| @@ -21,10 +21,10 @@ | ||||
| */ | ||||
| #include "file_manager/file_manager.hpp" | ||||
|  | ||||
| #include "platform/platform.hpp" | ||||
| #include "providers/i_provider.hpp" | ||||
| #include "utils/error_utils.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
| using std::bind; | ||||
|   | ||||
| @@ -30,7 +30,7 @@ | ||||
| #include "utils/error_utils.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/path.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/unix.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
| lock_data::lock_data(const provider_type &pt, std::string unique_id /*= ""*/) | ||||
|   | ||||
| @@ -21,9 +21,9 @@ | ||||
| */ | ||||
| #include "utils/native_file.hpp" | ||||
|  | ||||
| #include "platform/platform.hpp" | ||||
| #include "types/repertory.hpp" | ||||
| #include "utils/string.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
| #include "utils/utils.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
|   | ||||
| @@ -22,13 +22,16 @@ | ||||
| #include "test_common.hpp" | ||||
|  | ||||
| #include "app_config.hpp" | ||||
| #include "events/event_system.hpp" | ||||
| #include "utils/common.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/path.hpp" | ||||
| #include "utils/string.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
| class config_test : public ::testing::Test { | ||||
| public: | ||||
|   static console_consumer cs; | ||||
|  | ||||
|   std::string s3_directory{ | ||||
|       utils::path::combine(get_test_dir(), {"config_test", "s3"})}; | ||||
|  | ||||
| @@ -36,6 +39,7 @@ public: | ||||
|       utils::path::combine(get_test_dir(), {"config_test", "sia"})}; | ||||
|  | ||||
|   void SetUp() override { | ||||
|     event_system::instance().start(); | ||||
|     ASSERT_TRUE(utils::file::delete_directory_recursively( | ||||
|         utils::path::combine(get_test_dir(), {"config_test"}))); | ||||
|   } | ||||
| @@ -43,6 +47,7 @@ public: | ||||
|   void TearDown() override { | ||||
|     ASSERT_TRUE(utils::file::delete_directory_recursively( | ||||
|         utils::path::combine(get_test_dir(), {"config_test"}))); | ||||
|     event_system::instance().stop(); | ||||
|   } | ||||
| }; | ||||
|  | ||||
|   | ||||
| @@ -24,9 +24,9 @@ | ||||
| #include "file_manager/file_manager.hpp" | ||||
| #include "mocks/mock_provider.hpp" | ||||
| #include "mocks/mock_upload_manager.hpp" | ||||
| #include "platform/platform.hpp" | ||||
| #include "utils/file_utils.hpp" | ||||
| #include "utils/path.hpp" | ||||
| #include "utils/unix/unix_utils.hpp" | ||||
|  | ||||
| namespace repertory { | ||||
| static constexpr const std::size_t test_chunk_size = 1024u; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user