mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
[CMake] impl. ADD_SCRIPTS macro for modules
and renamed old to ADD_SCRIPT_LOADER
This commit is contained in:
@@ -30,9 +30,9 @@ set(scripts_STAT_SRCS
|
||||
../game/AI/ScriptedAI/ScriptedFollowerAI.cpp
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("Spell" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPTS("SC_Smart" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPTS("Command" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("Spell" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("SC_Smart" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("Command" "ScriptLoader.h")
|
||||
|
||||
if(SCRIPTS)
|
||||
include(World/CMakeLists.txt)
|
||||
@@ -48,6 +48,12 @@ endif()
|
||||
|
||||
AZTH_GET_GLOBAL("AZTH_ADD_SCRIPTS_LIST")
|
||||
AZTH_GET_GLOBAL("AZTH_ADD_SCRIPTS_INCLUDE")
|
||||
AZTH_GET_GLOBAL("AZTH_SCRIPTS_SOURCES")
|
||||
|
||||
set(scripts_STAT_SRCS
|
||||
${scripts_STAT_SRCS}
|
||||
${AZTH_SCRIPTS_SOURCES}
|
||||
)
|
||||
|
||||
set("AZTH_SCRIPTS_INCLUDES" "")
|
||||
|
||||
|
||||
@@ -164,6 +164,6 @@ set(scripts_STAT_SRCS
|
||||
EasternKingdoms/TheStockade/instance_the_stockade.cpp
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("EasternKingdoms" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("EasternKingdoms" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Eastern Kingdoms")
|
||||
|
||||
@@ -9,6 +9,6 @@ set(scripts_STAT_SRCS
|
||||
Events/midsummer.cpp
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("Event" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("Event" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Events")
|
||||
|
||||
@@ -105,6 +105,6 @@ set(scripts_STAT_SRCS
|
||||
Kalimdor/DireMaul/dire_maul.h
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("Kalimdor" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("Kalimdor" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Kalimdor")
|
||||
|
||||
@@ -196,6 +196,6 @@ set(scripts_STAT_SRCS
|
||||
Northrend/DraktharonKeep/boss_dred.cpp
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("Northrend" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("Northrend" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Northrend")
|
||||
|
||||
@@ -26,6 +26,6 @@ set(scripts_STAT_SRCS
|
||||
OutdoorPvP/OutdoorPvPGH.h
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("OutdoorPvP" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("OutdoorPvP" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Outdoor PVP Zones")
|
||||
|
||||
@@ -109,6 +109,6 @@ set(scripts_STAT_SRCS
|
||||
Outland/zone_zangarmarsh.cpp
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("Outland" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("Outland" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Outland")
|
||||
|
||||
@@ -18,6 +18,6 @@ set(scripts_STAT_SRCS
|
||||
Pet/pet_shaman.cpp
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("Pet" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("Pet" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Pet")
|
||||
|
||||
@@ -23,6 +23,6 @@ set(scripts_STAT_SRCS
|
||||
World/npcs_special.cpp
|
||||
)
|
||||
|
||||
AZTH_ADD_SCRIPTS("World" "ScriptLoader.h")
|
||||
AZTH_ADD_SCRIPT_LOADER("World" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: World")
|
||||
|
||||
Reference in New Issue
Block a user