Skip to content

Commit

Permalink
Update Eluna files for repo reorg
Browse files Browse the repository at this point in the history
-Update submodule
  • Loading branch information
Niam5 committed Aug 14, 2023
1 parent 190e763 commit 37db297
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/game/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,28 @@ if(NOT BUILD_ELUNA)
endif ()
endforeach()
else()
# Exclude other cores
set (EXCLUDE_DIR "LuaEngine/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/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/")
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()
add_definitions(-DBUILD_ELUNA -DCMANGOS -DTBC)
endif()

Expand Down Expand Up @@ -109,6 +131,7 @@ 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_SOURCE_DIR}/dep/lualib
${CMAKE_BINARY_DIR}
)
Expand Down

0 comments on commit 37db297

Please sign in to comment.