mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 16:16:27 +00:00
Squashed playerbot custom changes
This commit is contained in:
@@ -37,6 +37,7 @@ set("AC_MODULE_LIST" "")
|
||||
set("AC_SCRIPTS_LIST" "")
|
||||
set(MOD_ALE_FOUND 0)
|
||||
set(MOD_ALE_PATH "")
|
||||
set(MOD_PLAYERBOTS_FOUND 0)
|
||||
|
||||
foreach(include ${AC_ADD_SCRIPTS_INCLUDE})
|
||||
set("AC_SCRIPTS_INCLUDES" "#include \"${include}\"\n${AC_SCRIPTS_INCLUDES}")
|
||||
@@ -81,6 +82,16 @@ foreach(SOURCE_MODULE ${MODULES_MODULE_LIST})
|
||||
ConfigureALEModule(${SOURCE_MODULE})
|
||||
endif()
|
||||
|
||||
if (SOURCE_MODULE MATCHES "mod-playerbots")
|
||||
set(MOD_PLAYERBOTS_FOUND 1)
|
||||
target_compile_options(database
|
||||
PRIVATE
|
||||
-DMOD_PLAYERBOTS)
|
||||
target_compile_options(game-interface
|
||||
INTERFACE
|
||||
-DMOD_PLAYERBOTS)
|
||||
endif()
|
||||
|
||||
# Build the Graph values
|
||||
if(${MODULE_MODULE_VARIABLE} MATCHES "dynamic")
|
||||
GetProjectNameOfModuleName(${SOURCE_MODULE} MODULE_SOURCE_PROJECT_NAME)
|
||||
@@ -289,6 +300,7 @@ endif()
|
||||
target_link_libraries(modules
|
||||
PRIVATE
|
||||
acore-core-interface
|
||||
mysql
|
||||
PUBLIC
|
||||
game-interface)
|
||||
|
||||
@@ -363,6 +375,12 @@ target_compile_options(modules
|
||||
INTERFACE
|
||||
-DCONFIG_FILE_LIST=$<1:"${CONFIG_LIST}">)
|
||||
|
||||
if (MOD_PLAYERBOTS_FOUND)
|
||||
target_compile_options(modules
|
||||
PRIVATE
|
||||
-DMOD_PLAYERBOTS)
|
||||
endif()
|
||||
|
||||
if (MOD_ALE_FOUND)
|
||||
if (APPLE)
|
||||
target_compile_definitions(modules
|
||||
|
||||
Reference in New Issue
Block a user