Migrate to STD module
This commit is contained in:
parent
3b8456d07a
commit
04948d0d4d
@ -1,13 +1,7 @@
|
|||||||
module;
|
|
||||||
|
|
||||||
#include <concepts>
|
|
||||||
#include <type_traits>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
export module AssetData;
|
export module AssetData;
|
||||||
import GameData;
|
import GameData;
|
||||||
import views;
|
import views;
|
||||||
|
import std;
|
||||||
|
|
||||||
export namespace ee_assets
|
export namespace ee_assets
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
module;
|
|
||||||
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
export module Input;
|
export module Input;
|
||||||
|
import std;
|
||||||
|
|
||||||
export namespace ee_engine
|
export namespace ee_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,15 +2,12 @@ module;
|
|||||||
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <vector>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
export module Render;
|
export module Render;
|
||||||
import utils;
|
import utils;
|
||||||
import views;
|
import views;
|
||||||
import AssetData;
|
import AssetData;
|
||||||
|
import std;
|
||||||
|
|
||||||
export namespace ee_engine
|
export namespace ee_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,11 +1,9 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <vector>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <cstdint>
|
|
||||||
|
|
||||||
export module views:MapView;
|
export module views:MapView;
|
||||||
|
import std;
|
||||||
|
|
||||||
export namespace ee_engine
|
export namespace ee_engine
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
module AssetData;
|
module AssetData;
|
||||||
import utils;
|
import utils;
|
||||||
|
import std;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|||||||
@ -4,11 +4,9 @@ module;
|
|||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <glm/gtc/matrix_transform.hpp>
|
#include <glm/gtc/matrix_transform.hpp>
|
||||||
#include <ee_utils/utils.hpp>
|
#include <ee_utils/utils.hpp>
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
module Render;
|
module Render;
|
||||||
|
import std;
|
||||||
|
|
||||||
ee_engine::IRenderer::IRenderer(GLFWwindow *window)
|
ee_engine::IRenderer::IRenderer(GLFWwindow *window)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,22 +3,14 @@ module;
|
|||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
#include "compile_config.hpp"
|
#include "compile_config.hpp"
|
||||||
#include <ee_utils/utils.hpp>
|
#include <ee_utils/utils.hpp>
|
||||||
#include <vector>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <filesystem>
|
|
||||||
#include <thread>
|
|
||||||
#include <atomic>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
#include <xxhash.h>
|
#include <xxhash.h>
|
||||||
#include <cstring>
|
|
||||||
#include <Boost/lockfree/spsc_queue.hpp>
|
|
||||||
|
|
||||||
export module AssetManager;
|
export module AssetManager;
|
||||||
export import AssetData;
|
export import AssetData;
|
||||||
|
|
||||||
import utils;
|
import utils;
|
||||||
import FileSystem;
|
import FileSystem;
|
||||||
|
import std;
|
||||||
|
|
||||||
export
|
export
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
module;
|
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
|
|
||||||
export module Client;
|
export module Client;
|
||||||
import utils;
|
import utils;
|
||||||
import GameData;
|
import GameData;
|
||||||
import DataChannel;
|
import DataChannel;
|
||||||
import AssetManager;
|
import AssetManager;
|
||||||
|
import std;
|
||||||
|
|
||||||
export
|
export
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
#include <filesystem>
|
|
||||||
#include <vector>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
#include <ee_utils/platform.hpp>
|
#include <ee_utils/platform.hpp>
|
||||||
|
|
||||||
export module FileSystem;
|
export module FileSystem;
|
||||||
|
import std;
|
||||||
|
|
||||||
export
|
export
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
#include <cmath>
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
module Actions;
|
module Actions;
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
#include <cstdint>
|
|
||||||
#include <ee_utils/utils.hpp>
|
#include <ee_utils/utils.hpp>
|
||||||
#include <stdexcept>
|
|
||||||
|
|
||||||
module Client;
|
module Client;
|
||||||
import utils;
|
import utils;
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
#include <filesystem>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
module FileSystem;
|
module FileSystem;
|
||||||
import utils;
|
import utils;
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
#include "compile_config.hpp"
|
#include "compile_config.hpp"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
import utils;
|
import utils;
|
||||||
|
|
||||||
@ -9,6 +8,7 @@ import Engine;
|
|||||||
import Actions;
|
import Actions;
|
||||||
import MagnumRender;
|
import MagnumRender;
|
||||||
import GLFWInput;
|
import GLFWInput;
|
||||||
|
import std;
|
||||||
|
|
||||||
|
|
||||||
IP7_Trace* Logger::trace;
|
IP7_Trace* Logger::trace;
|
||||||
|
|||||||
@ -6,10 +6,9 @@ module;
|
|||||||
#include <Magnum/GL/Shader.h>
|
#include <Magnum/GL/Shader.h>
|
||||||
#include <Magnum/GL/Version.h>
|
#include <Magnum/GL/Version.h>
|
||||||
#include <Magnum/Math/Matrix4.h>
|
#include <Magnum/Math/Matrix4.h>
|
||||||
#include <string>
|
|
||||||
#include <cstdint>
|
|
||||||
|
|
||||||
export module MagnumRender:Materials;
|
export module MagnumRender:Materials;
|
||||||
|
import std;
|
||||||
|
|
||||||
using namespace Magnum;
|
using namespace Magnum;
|
||||||
|
|
||||||
|
|||||||
@ -6,12 +6,12 @@ module;
|
|||||||
#include <Magnum/GL/Mesh.h>
|
#include <Magnum/GL/Mesh.h>
|
||||||
#include <Magnum/GL/Buffer.h>
|
#include <Magnum/GL/Buffer.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
export module MagnumRender;
|
export module MagnumRender;
|
||||||
import :Materials;
|
import :Materials;
|
||||||
import views;
|
import views;
|
||||||
import Render;
|
import Render;
|
||||||
|
import std;
|
||||||
|
|
||||||
using namespace Magnum;
|
using namespace Magnum;
|
||||||
|
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module;
|
|||||||
#include <Magnum/Math/Matrix4.h>
|
#include <Magnum/Math/Matrix4.h>
|
||||||
|
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
#include <string>
|
|
||||||
#include <cstdint>
|
|
||||||
|
|
||||||
module MagnumRender;
|
module MagnumRender;
|
||||||
import :Materials;
|
import :Materials;
|
||||||
|
|||||||
@ -13,11 +13,7 @@ module;
|
|||||||
#include <Corrade/Utility/Debug.h>
|
#include <Corrade/Utility/Debug.h>
|
||||||
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
#include <glm/gtc/type_ptr.hpp>
|
#include <glm/gtc/type_ptr.hpp>
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
module MagnumRender;
|
module MagnumRender;
|
||||||
import utils;
|
import utils;
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
module;
|
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
export module GameData;
|
export module GameData;
|
||||||
|
import std;
|
||||||
|
|
||||||
export namespace ee_data
|
export namespace ee_data
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
module;
|
|
||||||
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
export module utils:allocator;
|
export module utils:allocator;
|
||||||
|
import std;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
template<typename T, typename... Args> T* Allocate(Args&&... args)
|
template<typename T, typename... Args> T* Allocate(Args&&... args)
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
module;
|
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
|
|
||||||
export module utils:buffers;
|
export module utils:buffers;
|
||||||
|
import std;
|
||||||
|
|
||||||
export namespace ee_utils
|
export namespace ee_utils
|
||||||
{
|
{
|
||||||
|
|||||||
11
utils/modules/lockfree.cppm
Normal file
11
utils/modules/lockfree.cppm
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
module;
|
||||||
|
|
||||||
|
#include <boost/lockfree/queue.hpp>
|
||||||
|
#include <boost/lockfree/spsc_queue.hpp>
|
||||||
|
|
||||||
|
export module utils:lockfree;
|
||||||
|
|
||||||
|
export using boost::lockfree::capacity;
|
||||||
|
|
||||||
|
export using boost::lockfree::queue;
|
||||||
|
export using boost::lockfree::spsc_queue;
|
||||||
@ -2,5 +2,6 @@ export module utils;
|
|||||||
export import :allocator;
|
export import :allocator;
|
||||||
export import :worker;
|
export import :worker;
|
||||||
export import :buffers;
|
export import :buffers;
|
||||||
|
export import :lockfree;
|
||||||
|
|
||||||
export namespace ee_utils {}
|
export namespace ee_utils {}
|
||||||
@ -1,23 +1,16 @@
|
|||||||
module;
|
module;
|
||||||
|
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
#include <boost/lockfree/spsc_queue.hpp>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
#include <array>
|
|
||||||
#include <thread>
|
|
||||||
#include <atomic>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include <type_traits>
|
|
||||||
#include <concepts>
|
|
||||||
|
|
||||||
export module utils:worker;
|
export module utils:worker;
|
||||||
|
import :lockfree;
|
||||||
|
import std;
|
||||||
|
|
||||||
export namespace ee_utils
|
export namespace ee_utils
|
||||||
{
|
{
|
||||||
struct WorkerCommand
|
struct WorkerCommand
|
||||||
{
|
{
|
||||||
uint8_t type = 0;
|
std::uint8_t type = 0;
|
||||||
};
|
};
|
||||||
template<typename T> concept IWorkerCommand = std::is_base_of_v<WorkerCommand, T>;
|
template<typename T> concept IWorkerCommand = std::is_base_of_v<WorkerCommand, T>;
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,3 @@
|
|||||||
module;
|
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstddef>
|
|
||||||
#include <cstring>
|
|
||||||
|
|
||||||
module utils;
|
module utils;
|
||||||
import :buffers;
|
import :buffers;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user