Refactored libimhex to and includes to better represent it as library

This commit is contained in:
WerWolv
2021-01-13 17:28:27 +01:00
parent 00648c9673
commit eb066b3539
65 changed files with 148 additions and 146 deletions

View File

@@ -16,9 +16,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
set(CMAKE_SHARED_LIBRARY_PREFIX "")
add_library(libimhex SHARED
source/helpers/event.cpp
source/api/event.cpp
source/api/content_registry.cpp
source/helpers/utils.cpp
source/helpers/content_registry.cpp
source/helpers/shared_data.cpp
source/lang/preprocessor.cpp

View File

@@ -5,9 +5,9 @@
#include <vector>
#include <map>
#include <helpers/content_registry.hpp>
#include <helpers/event.hpp>
#include <views/view.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/api/event.hpp>
#include <hex/views/view.hpp>
#include <imgui.h>
#include <nlohmann/json.hpp>

View File

@@ -2,10 +2,10 @@
#include <hex.hpp>
#include "providers/provider.hpp"
#include "helpers/utils.hpp"
#include "lang/pattern_data.hpp"
#include "ast_node.hpp"
#include <hex/providers/provider.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/lang/pattern_data.hpp>
#include <hex/lang/ast_node.hpp>
#include <bit>
#include <string>

View File

@@ -5,7 +5,7 @@
#include "token.hpp"
#include "ast_node.hpp"
#include "helpers/utils.hpp"
#include <hex/helpers/utils.hpp>
#include <unordered_map>
#include <stdexcept>

View File

@@ -4,10 +4,10 @@
#include <imgui.h>
#include "providers/provider.hpp"
#include "helpers/utils.hpp"
#include "lang/token.hpp"
#include "views/view.hpp"
#include <hex/providers/provider.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/lang/token.hpp>
#include <hex/views/view.hpp>
#include <cstring>
#include <random>

View File

@@ -2,7 +2,7 @@
#include <hex.hpp>
#include "helpers/utils.hpp"
#include <hex/helpers/utils.hpp>
#include <utility>
#include <string>

View File

@@ -4,10 +4,10 @@
#include <imgui.h>
#include <hex.hpp>
#include <views/view.hpp>
#include <providers/provider.hpp>
#include <helpers/shared_data.hpp>
#include <helpers/content_registry.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/views/view.hpp>
#include <hex/providers/provider.hpp>
#include <hex/helpers/shared_data.hpp>
#define IMHEX_PLUGIN_SETUP namespace hex::plugin::internal { \
void initializePlugin(); \

View File

@@ -7,7 +7,7 @@
#include <string>
#include <vector>
#include <helpers/shared_data.hpp>
#include <hex/helpers/shared_data.hpp>
namespace hex::prv {

View File

@@ -2,9 +2,9 @@
#include <hex.hpp>
#include "imgui.h"
#include <imgui.h>
#include "helpers/event.hpp"
#include <hex/api/event.hpp>
#include <functional>
#include <string>

View File

@@ -1,6 +1,6 @@
#include <helpers/content_registry.hpp>
#include <hex/api/content_registry.hpp>
#include <helpers/shared_data.hpp>
#include <hex/helpers/shared_data.hpp>
#include <filesystem>
#include <fstream>

View File

@@ -1,6 +1,6 @@
#include "helpers/event.hpp"
#include <hex/api/event.hpp>
#include <helpers/shared_data.hpp>
#include <hex/helpers/shared_data.hpp>
namespace hex {

View File

@@ -1,4 +1,4 @@
#include <helpers/shared_data.hpp>
#include <hex/helpers/shared_data.hpp>
namespace hex {

View File

@@ -1,4 +1,4 @@
#include "helpers/utils.hpp"
#include <hex/helpers/utils.hpp>
#include <cstdio>
#include <codecvt>

View File

@@ -1,5 +1,5 @@
#include "lang/evaluator.hpp"
#include "helpers/content_registry.hpp"
#include <hex/lang/evaluator.hpp>
#include <hex/api/content_registry.hpp>
namespace hex::lang {

View File

@@ -1,8 +1,8 @@
#include "lang/evaluator.hpp"
#include <hex/lang/evaluator.hpp>
#include "lang/token.hpp"
#include "helpers/utils.hpp"
#include "helpers/content_registry.hpp"
#include <hex/lang/token.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/api/content_registry.hpp>
#include <bit>
#include <algorithm>

View File

@@ -1,4 +1,4 @@
#include "lang/lexer.hpp"
#include <hex/lang/lexer.hpp>
#include <algorithm>
#include <functional>

View File

@@ -1,4 +1,4 @@
#include "lang/parser.hpp"
#include <hex/lang/parser.hpp>
#include <optional>
#include <variant>

View File

@@ -1,4 +1,4 @@
#include "lang/preprocessor.hpp"
#include <hex/lang/preprocessor.hpp>
namespace hex::lang {

View File

@@ -1,9 +1,9 @@
#include "lang/validator.hpp"
#include <hex/lang/validator.hpp>
#include <unordered_set>
#include <string>
#include "helpers/utils.hpp"
#include <hex/helpers/utils.hpp>
namespace hex::lang {

View File

@@ -1,4 +1,4 @@
#include "providers/provider.hpp"
#include <hex/providers/provider.hpp>
#include <hex.hpp>

View File

@@ -1,12 +1,12 @@
#include "views/view.hpp"
#include <hex/views/view.hpp>
#include "imgui.h"
#include <imgui.h>
#include <functional>
#include <string>
#include <vector>
#include <helpers/shared_data.hpp>
#include <hex/helpers/shared_data.hpp>
namespace hex {