1
0
mirror of synced 2025-02-20 04:01:01 +01:00

build: Move menu items handler into libimhex

This commit is contained in:
WerWolv 2025-02-16 15:48:44 +01:00
parent 67340e1526
commit 879e4c9d58
11 changed files with 12 additions and 16 deletions

View File

@ -66,7 +66,10 @@ if (APPLE)
endif ()
endif ()
set(LIBIMHEX_SOURCES ${LIBIMHEX_SOURCES} source/helpers/utils_macos.m)
set(LIBIMHEX_SOURCES ${LIBIMHEX_SOURCES}
source/helpers/utils_macos.m
source/helpers/macos_menu.m
)
endif ()
if (IMHEX_EXTERNAL_PLUGIN_BUILD)

View File

@ -24,7 +24,7 @@
#include <wolv/literals.hpp>
#include <romfs/romfs.hpp>
#include <ui/menu_items.hpp>
#include <hex/helpers/menu_items.hpp>
#include <GLFW/glfw3.h>

View File

@ -21,7 +21,7 @@
#include <ranges>
#include <unordered_set>
#include <ui/menu_items.hpp>
#include <hex/helpers/menu_items.hpp>
namespace hex::plugin::builtin::recent {

View File

@ -20,7 +20,7 @@
#include <wolv/utils/string.hpp>
#include <string>
#include <ui/menu_items.hpp>
#include <hex/helpers/menu_items.hpp>
namespace hex::plugin::builtin {

View File

@ -25,7 +25,7 @@
#include <content/popups/popup_blocking_task.hpp>
#include <content/popups/hex_editor/popup_hex_editor_find.hpp>
#include <pl/patterns/pattern.hpp>
#include <ui/menu_items.hpp>
#include <hex/helpers/menu_items.hpp>
#include <wolv/literals.hpp>
using namespace std::literals::string_literals;

View File

@ -36,7 +36,7 @@
#include <content/global_actions.hpp>
#include <fonts/fonts.hpp>
#include <ui/menu_items.hpp>
#include <hex/helpers/menu_items.hpp>
namespace hex::plugin::builtin {

View File

@ -12,7 +12,7 @@
#include <imgui_internal.h>
#include <random>
#include <hex/ui/imgui_imhex_extensions.h>
#include <ui/menu_items.hpp>
#include <hex/helpers/menu_items.hpp>
#include <fonts/vscode_icons.hpp>
#include <hex/api/tutorial_manager.hpp>

View File

@ -17,11 +17,4 @@ add_imhex_plugin(
LIBRARIES
fonts
LIBRARY_PLUGIN
)
if (APPLE)
target_sources(ui PRIVATE source/ui/macos_menu.m)
find_library(FOUNDATION NAMES Foundation REQUIRED)
find_library(COCOA NAMES Cocoa REQUIRED)
target_link_libraries(ui PUBLIC ${FOUNDATION} ${COCOA})
endif()
)

View File

@ -1,4 +1,4 @@
#include <ui/menu_items.hpp>
#include <../../../../lib/libimhex/include/hex/helpers/menu_items.hpp>
#include <imgui.h>
#include <imgui_internal.h>