Fix Android build.

This commit is contained in:
Martín Lucas Golini
2026-09-05 11:33:02 -03:00
parent 94c3b7ab99
commit a22489fd58
9 changed files with 31 additions and 15 deletions

View File

@@ -7,6 +7,21 @@
#include <eepp/graphics/renderer/renderergles2.hpp>
#include <eepp/system/sys.hpp>
#ifdef EE_GLES1_LATE_INCLUDE
#if EE_PLATFORM == EE_PLATFORM_IOS
#include <OpenGLES/ES1/gl.h>
#include <OpenGLES/ES1/glext.h>
#else
#include <GLES/gl.h>
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES
#endif
#include <GLES/glext.h>
#endif
#endif
namespace EE { namespace Graphics {
#if defined( EE_GLEW_AVAILABLE ) || defined( EE_GLES2 )

View File

@@ -35,7 +35,6 @@ constexpr Uint16 IPCVersion = 1;
constexpr Uint16 IPCFlags = 0;
constexpr std::size_t IPCHeaderSize = 12;
constexpr std::size_t IPCInlinePayloadSize = 512;
constexpr Uint32 IPCPipeBufferSize = 64 * 1024;
using EndpointHash = std::array<char, 33>;
using NativeName = std::array<wchar_t, 64>;
@@ -126,6 +125,8 @@ class IPC::Impl {
namespace {
constexpr Uint32 IPCPipeBufferSize = 64 * 1024;
NativeName nativeName( std::wstring_view prefix, const EndpointHash& hash ) {
NativeName name{};
if ( prefix.size() + hash.size() > name.size() )

View File

@@ -40,9 +40,9 @@ class AIAssistantPlugin : public PluginBase {
std::string getDescription() override { return Definition().description; }
bool hasSettingsPage() const { return true; }
bool hasSettingsPage() const override { return true; }
void registerSettings( SettingsPage& page );
void registerSettings( SettingsPage& page ) override;
const LLMProviders& getProviders() { return mProviders; }

View File

@@ -95,9 +95,9 @@ class AutoCompletePlugin : public Plugin {
bool isReady() const override { return true; }
bool hasSettingsPage() const { return true; }
bool hasSettingsPage() const override { return true; }
void registerSettings( SettingsPage& page );
void registerSettings( SettingsPage& page ) override;
void onRegister( UICodeEditor* ) override;

View File

@@ -68,9 +68,9 @@ class DebuggerPlugin : public PluginBase {
std::string getDescription() override { return Definition().description; }
bool hasSettingsPage() const { return true; }
bool hasSettingsPage() const override { return true; }
void registerSettings( SettingsPage& page );
void registerSettings( SettingsPage& page ) override;
void onSaveState( IniFile* state ) override;

View File

@@ -43,9 +43,9 @@ class DiscordRPCplugin : public PluginBase {
std::string getDescription() override { return Definition().description; }
bool hasSettingsPage() const { return true; }
bool hasSettingsPage() const override { return true; }
void registerSettings( SettingsPage& page );
void registerSettings( SettingsPage& page ) override;
protected:
DiscordIPC mIPC;

View File

@@ -83,9 +83,9 @@ class GitPlugin : public PluginBase {
std::string getDescription() override { return Definition().description; }
bool hasSettingsPage() const { return true; }
bool hasSettingsPage() const override { return true; }
void registerSettings( SettingsPage& page );
void registerSettings( SettingsPage& page ) override;
void onSaveState( IniFile* state ) override;

View File

@@ -39,9 +39,9 @@ class SpellCheckerPlugin : public PluginBase {
std::string getDescription() override { return Definition().description; }
bool hasSettingsPage() const { return true; }
bool hasSettingsPage() const override { return true; }
void registerSettings( SettingsPage& page );
void registerSettings( SettingsPage& page ) override;
void drawAfterLineText( UICodeEditor* editor, const Int64& index, Vector2f position,
const Float& fontSize, const Float& lineHeight ) override;

View File

@@ -36,9 +36,9 @@ class XMLToolsPlugin : public PluginBase {
std::string getDescription() override { return Definition().description; }
bool hasSettingsPage() const { return true; }
bool hasSettingsPage() const override { return true; }
void registerSettings( SettingsPage& page );
void registerSettings( SettingsPage& page ) override;
bool getHighlightMatch() const;