mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
Refactored libimhex to and includes to better represent it as library
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <hex.hpp>
|
||||
|
||||
#include "helpers/utils.hpp"
|
||||
#include <hex/helpers/utils.hpp>
|
||||
|
||||
#include <utility>
|
||||
#include <string>
|
||||
@@ -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(); \
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <helpers/shared_data.hpp>
|
||||
#include <hex/helpers/shared_data.hpp>
|
||||
|
||||
namespace hex::prv {
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <helpers/shared_data.hpp>
|
||||
#include <hex/helpers/shared_data.hpp>
|
||||
|
||||
namespace hex {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "helpers/utils.hpp"
|
||||
#include <hex/helpers/utils.hpp>
|
||||
|
||||
#include <cstdio>
|
||||
#include <codecvt>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "lang/lexer.hpp"
|
||||
#include <hex/lang/lexer.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "lang/parser.hpp"
|
||||
#include <hex/lang/parser.hpp>
|
||||
|
||||
#include <optional>
|
||||
#include <variant>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "lang/preprocessor.hpp"
|
||||
#include <hex/lang/preprocessor.hpp>
|
||||
|
||||
namespace hex::lang {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "providers/provider.hpp"
|
||||
#include <hex/providers/provider.hpp>
|
||||
|
||||
#include <hex.hpp>
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user