fix: Compile Lua as a C library (#5251)

This commit is contained in:
pajlada 2024-03-16 15:15:05 +01:00 committed by GitHub
parent 47c46b64ea
commit 3563ecb3a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 21 additions and 3 deletions

View file

@ -164,6 +164,7 @@
- Dev: Load less message history upon reconnects. (#5001, #5018)
- Dev: Removed the `NullablePtr` class. (#5091)
- Dev: BREAKING: Replace custom `import()` with normal Lua `require()`. (#5014, #5108)
- Dev: Compile Lua as a C library. (#5251)
- Dev: Fixed most compiler warnings. (#5028, #5137)
- Dev: Added the ability to show `ChannelView`s without a `Split`. (#4747)
- Dev: Refactor Args to be less of a singleton. (#5041)

View file

@ -50,4 +50,4 @@ target_include_directories(lua
PUBLIC
${LUA_INCLUDE_DIRS}
)
set_source_files_properties(${LUA_SRC} PROPERTIES LANGUAGE CXX)
set_source_files_properties(${LUA_SRC} PROPERTIES LANGUAGE C)

View file

@ -9,9 +9,11 @@
# include "messages/MessageBuilder.hpp"
# include "providers/twitch/TwitchIrcServer.hpp"
extern "C" {
# include <lauxlib.h>
# include <lua.h>
# include <lualib.h>
}
# include <QFileInfo>
# include <QLoggingCategory>
# include <QTextCodec>

View file

@ -2,7 +2,9 @@
#ifdef CHATTERINO_HAVE_PLUGINS
extern "C" {
# include <lua.h>
}
# include <QString>
# include <cassert>

View file

@ -7,8 +7,10 @@
# include "controllers/plugins/api/ChannelRef.hpp"
# include "controllers/plugins/LuaAPI.hpp"
extern "C" {
# include <lauxlib.h>
# include <lua.h>
}
# include <climits>
# include <cstdlib>

View file

@ -4,8 +4,10 @@
# include "common/QLogging.hpp"
extern "C" {
# include <lua.h>
# include <lualib.h>
}
# include <magic_enum/magic_enum.hpp>
# include <QList>

View file

@ -4,7 +4,9 @@
# include "common/QLogging.hpp"
# include "controllers/commands/CommandController.hpp"
extern "C" {
# include <lua.h>
}
# include <magic_enum/magic_enum.hpp>
# include <QJsonArray>
# include <QJsonObject>

View file

@ -14,9 +14,11 @@
# include "singletons/Paths.hpp"
# include "singletons/Settings.hpp"
extern "C" {
# include <lauxlib.h>
# include <lua.h>
# include <lualib.h>
}
# include <QJsonDocument>
# include <memory>

View file

@ -9,8 +9,10 @@
# include "providers/twitch/TwitchChannel.hpp"
# include "providers/twitch/TwitchIrcServer.hpp"
extern "C" {
# include <lauxlib.h>
# include <lua.h>
}
# include <cassert>
# include <memory>

View file

@ -4,8 +4,11 @@
# include "Application.hpp"
# include "controllers/plugins/LuaUtilities.hpp"
# include "controllers/plugins/PluginController.hpp"
# include "lauxlib.h"
# include "lua.h"
extern "C" {
# include <lauxlib.h>
# include <lua.h>
}
# include <cerrno>