forked from Chatterino/chatterino2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(plugins): use sol3 for commands and channels
- Loading branch information
Showing
29 changed files
with
576 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path(Sol2_INCLUDE_DIR sol/sol.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/sol2/include) | ||
|
||
find_package_handle_standard_args(Sol2 DEFAULT_MSG Sol2_INCLUDE_DIR) | ||
|
||
if (Sol2_FOUND) | ||
add_library(Sol2 INTERFACE IMPORTED) | ||
set_target_properties(Sol2 PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${Sol2_INCLUDE_DIR}" | ||
) | ||
target_compile_definitions(Sol2 INTERFACE | ||
SOL_ALL_SAFETIES_ON=1 | ||
SOL_USING_CXX_LUA=1 | ||
) | ||
target_link_libraries(Sol2 INTERFACE lua) | ||
add_library(sol2::sol2 ALIAS Sol2) | ||
endif () | ||
|
||
mark_as_advanced(Sol2_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,55 @@ | ||
project(lua CXX) | ||
|
||
#[====[ | ||
Updating this list: | ||
remove all listed files | ||
go to line below, ^y2j4j$@" and then reindent the file names | ||
/LUA_SRC | ||
:r!ls lib/lua/src | grep '\.c' | grep -Ev 'lua\.c|onelua\.c' | sed 's#^#src/#' | ||
This list contains all .c files except lua.c and onelua.c | ||
Use the following command from the repository root to get these file: | ||
perl -e 'print s/^lib\/lua\///r . "\n" for grep { /\.c$/ && !/(lua|onelua)\.c$/ } glob "lib/lua/src/*.c"' | ||
#]====] | ||
set(LUA_SRC | ||
"src/lapi.c" | ||
"src/lauxlib.c" | ||
"src/lbaselib.c" | ||
"src/lcode.c" | ||
"src/lcorolib.c" | ||
"src/lctype.c" | ||
"src/ldblib.c" | ||
"src/ldebug.c" | ||
"src/ldo.c" | ||
"src/ldump.c" | ||
"src/lfunc.c" | ||
"src/lgc.c" | ||
"src/linit.c" | ||
"src/liolib.c" | ||
"src/llex.c" | ||
"src/lmathlib.c" | ||
"src/lmem.c" | ||
"src/loadlib.c" | ||
"src/lobject.c" | ||
"src/lopcodes.c" | ||
"src/loslib.c" | ||
"src/lparser.c" | ||
"src/lstate.c" | ||
"src/lstring.c" | ||
"src/lstrlib.c" | ||
"src/ltable.c" | ||
"src/ltablib.c" | ||
"src/ltests.c" | ||
"src/ltm.c" | ||
"src/lua.c" | ||
"src/lundump.c" | ||
"src/lutf8lib.c" | ||
"src/lvm.c" | ||
"src/lzio.c" | ||
src/lapi.c | ||
src/lauxlib.c | ||
src/lbaselib.c | ||
src/lcode.c | ||
src/lcorolib.c | ||
src/lctype.c | ||
src/ldblib.c | ||
src/ldebug.c | ||
src/ldo.c | ||
src/ldump.c | ||
src/lfunc.c | ||
src/lgc.c | ||
src/linit.c | ||
src/liolib.c | ||
src/llex.c | ||
src/lmathlib.c | ||
src/lmem.c | ||
src/loadlib.c | ||
src/lobject.c | ||
src/lopcodes.c | ||
src/loslib.c | ||
src/lparser.c | ||
src/lstate.c | ||
src/lstring.c | ||
src/lstrlib.c | ||
src/ltable.c | ||
src/ltablib.c | ||
src/ltests.c | ||
src/ltm.c | ||
src/lundump.c | ||
src/lutf8lib.c | ||
src/lvm.c | ||
src/lzio.c | ||
) | ||
|
||
add_library(lua STATIC ${LUA_SRC}) | ||
target_include_directories(lua | ||
PUBLIC | ||
${LUA_INCLUDE_DIRS} | ||
) | ||
set_source_files_properties(${LUA_SRC} PROPERTIES LANGUAGE C) | ||
set_target_properties(${liblua} PROPERTIES | ||
LANGUAGE CXX | ||
LINKER_LANGUAGE CXX | ||
CXX_STANDARD 98 | ||
CXX_EXTENSIONS TRUE | ||
) | ||
set_source_files_properties(${LUA_SRC} PROPERTIES LANGUAGE CXX) |
Submodule src
updated
70 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.