Skip to content

Commit

Permalink
Now using LuaJIT. Closed #91.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jul 9, 2020
1 parent c8643e0 commit 02b9f8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
ignore = dirty
[submodule "external/lua"]
path = external/lua
url = https://github.com/Unarelith/lua
url = https://github.com/WohlSoft/LuaJIT
ignore = dirty
[submodule "external/SFML"]
path = external/SFML
url = https://github.com/SFML/SFML
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,12 @@ include_directories(external/zlib ${CMAKE_CURRENT_BINARY_DIR}/external/zlib)
#------------------------------------------------------------------------------
# - lua
#------------------------------------------------------------------------------
set(LUA_BUILD_LUA_LUAC OFF CACHE BOOL "")
set(LUA_BUILD_WLUA OFF CACHE BOOL "")
set(LUA_USE_READLINE OFF CACHE BOOL "")

add_subdirectory(external/lua)
include_directories(external/lua/src ${CMAKE_CURRENT_BINARY_DIR}/external/lua)
include_directories(external/lua/src)

#------------------------------------------------------------------------------
# - sol3 (sol2 v3.x)
#------------------------------------------------------------------------------
set(LUA_LOCAL_DIR external/lua)

add_subdirectory(external/sol2)

#------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion external/lua
Submodule lua updated from 629d54 to d97096
4 changes: 2 additions & 2 deletions source/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ add_dependencies(${PROJECT_NAME}
zlib
EnTT
gamekit
liblua
libluajit
sol2
)

Expand All @@ -52,7 +52,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
sfml-network
sfml-system
sol2
liblua
libluajit
gamekit
zlib
${OPENGL_LIBRARIES}
Expand Down

0 comments on commit 02b9f8b

Please sign in to comment.