Skip to content

Commit

Permalink
Update Eluna
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed May 5, 2024
1 parent 81fe14f commit 09b3416
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
16 changes: 10 additions & 6 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 @@ -150,7 +150,9 @@ if(NOT BUILD_PLAYERBOTS)
${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 All @@ -161,7 +163,9 @@ else()
${CMAKE_CURRENT_SOURCE_DIR}/AuctionHouseBot
${CMAKE_CURRENT_SOURCE_DIR}/BattleGround
${CMAKE_CURRENT_SOURCE_DIR}/OutdoorPvP
${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 @@ -160,6 +160,9 @@ endif()

# Define BUILD_ELUNA if needed
if (BUILD_ELUNA)
include_directories(
${CMAKE_SOURCE_DIR}/src/game/LuaEngine/hooks
)
add_definitions(-DBUILD_ELUNA -DTBC -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 09b3416

Please sign in to comment.