build: Move menu items handler into libimhex
This commit is contained in:
parent
67340e1526
commit
879e4c9d58
@ -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)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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()
|
||||
)
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user