Skip to content

Commit

Permalink
Update Eluna
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Apr 25, 2024
1 parent 9291724 commit 9423df5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/game/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,28 @@ if(NOT BUILD_ELUNA)
endforeach()
else()
# Exclude other cores
set (EXCLUDE_DIR "LuaEngine/Mangos/")
set (EXCLUDE_DIR "LuaEngine/methods/Mangos/")
foreach (TMP_PATH ${LIBRARY_SRCS})
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND)
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1)
list(REMOVE_ITEM LIBRARY_SRCS ${TMP_PATH})
endif ()
endforeach()
set (EXCLUDE_DIR "LuaEngine/VMangos/")
set (EXCLUDE_DIR "LuaEngine/methods/VMangos/")
foreach (TMP_PATH ${LIBRARY_SRCS})
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND)
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1)
list(REMOVE_ITEM LIBRARY_SRCS ${TMP_PATH})
endif ()
endforeach()
set (EXCLUDE_DIR "LuaEngine/TrinityCore/")
set (EXCLUDE_DIR "LuaEngine/methods/TrinityCore/")
foreach (TMP_PATH ${LIBRARY_SRCS})
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND)
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1)
list(REMOVE_ITEM LIBRARY_SRCS ${TMP_PATH})
endif ()
endforeach()
set (EXCLUDE_DIR "LuaEngine/AzerothCore/")
set (EXCLUDE_DIR "LuaEngine/methods/AzerothCore/")
foreach (TMP_PATH ${LIBRARY_SRCS})
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND)
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1)
Expand Down Expand Up @@ -138,7 +138,9 @@ set(ADDITIONAL_INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}/BattleGround
${CMAKE_CURRENT_SOURCE_DIR}/OutdoorPvP
${CMAKE_CURRENT_SOURCE_DIR}/PlayerBot
${CMAKE_CURRENT_SOURCE_DIR}/LuaEngine/CMangos
${CMAKE_CURRENT_SOURCE_DIR}/LuaEngine/
${CMAKE_CURRENT_SOURCE_DIR}/LuaEngine/methods/CMangos
${CMAKE_CURRENT_SOURCE_DIR}/LuaEngine/hooks
${CMAKE_SOURCE_DIR}/dep/lualib
${CMAKE_BINARY_DIR}
)
Expand Down
2 changes: 1 addition & 1 deletion src/game/LuaEngine
Submodule LuaEngine updated 107 files
3 changes: 3 additions & 0 deletions src/mangosd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ endif()

# Define BUILD_ELUNA if needed
if (BUILD_ELUNA)
include_directories(
${CMAKE_SOURCE_DIR}/src/game/LuaEngine/hooks
)
add_definitions(-DBUILD_ELUNA -DWOTLK -DCMANGOS)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/lua_scripts/masterscript.lua DESTINATION ${BIN_DIR}/lua_scripts)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/game/LuaEngine/extensions DESTINATION ${BIN_DIR}/lua_scripts)
Expand Down

0 comments on commit 9423df5

Please sign in to comment.