summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-25 23:49:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-25 23:49:46 +0300
commit99382ed565d36422cc25230da31e334f1f161771 (patch)
treee6b0616ae22e1a5ace7d8046dd9da547a297bcb3
parent2eba488b67413f4a713d5313fd654ec6a4d463f6 (diff)
downloadmanaverse-99382ed565d36422cc25230da31e334f1f161771.tar.gz
manaverse-99382ed565d36422cc25230da31e334f1f161771.tar.bz2
manaverse-99382ed565d36422cc25230da31e334f1f161771.tar.xz
manaverse-99382ed565d36422cc25230da31e334f1f161771.zip
Add eAthena support to cmake build files.
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/CMakeLists.txt64
2 files changed, 63 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3259f04d6..a4910b551 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,7 @@ FIND_PACKAGE(Gettext)
OPTION(WITH_OPENGL "Enable OpenGL support" ON)
OPTION(ENABLE_NLS "Enable building of tranlations" ON)
OPTION(ENABLE_MANASERV "Enable Manaserv support" OFF)
+OPTION(ENABLE_EATHENA "Enable eAthena support" ON)
IF (WIN32)
SET(PKG_DATADIR ".")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a05dcabda..b22bde560 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -26,6 +26,10 @@ IF (ENABLE_MANASERV)
SET(FLAGS "${FLAGS} -DMANASERV_SUPPORT=1")
ENDIF()
+IF (ENABLE_EATHENA)
+ SET(FLAGS "${FLAGS} -DEATHENA_SUPPORT=1")
+ENDIF()
+
IF (CMAKE_BUILD_TYPE)
STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER)
IF(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug OR
@@ -810,6 +814,54 @@ SET(SRCS_TMWA
net/tmwa/tradehandler.h
)
+SET(SRCS_EATHENA
+ net/eathena/gui/guildtab.cpp
+ net/eathena/gui/guildtab.h
+ net/eathena/gui/partytab.cpp
+ net/eathena/gui/partytab.h
+ net/eathena/adminhandler.cpp
+ net/eathena/adminhandler.h
+ net/eathena/beinghandler.cpp
+ net/eathena/beinghandler.h
+ net/eathena/buysellhandler.cpp
+ net/eathena/buysellhandler.h
+ net/eathena/charserverhandler.cpp
+ net/eathena/charserverhandler.h
+ net/eathena/chathandler.cpp
+ net/eathena/chathandler.h
+ net/eathena/gamehandler.cpp
+ net/eathena/gamehandler.h
+ net/eathena/generalhandler.cpp
+ net/eathena/generalhandler.h
+ net/eathena/guildhandler.cpp
+ net/eathena/guildhandler.h
+ net/eathena/inventoryhandler.cpp
+ net/eathena/inventoryhandler.h
+ net/eathena/itemhandler.cpp
+ net/eathena/itemhandler.h
+ net/eathena/loginhandler.cpp
+ net/eathena/loginhandler.h
+ net/eathena/messagehandler.cpp
+ net/eathena/messagehandler.h
+ net/eathena/messagein.cpp
+ net/eathena/messagein.h
+ net/eathena/messageout.cpp
+ net/eathena/messageout.h
+ net/eathena/network.cpp
+ net/eathena/network.h
+ net/eathena/npchandler.cpp
+ net/eathena/npchandler.h
+ net/eathena/partyhandler.cpp
+ net/eathena/partyhandler.h
+ net/eathena/playerhandler.cpp
+ net/eathena/playerhandler.h
+ net/eathena/protocol.h
+ net/eathena/specialhandler.cpp
+ net/eathena/specialhandler.h
+ net/eathena/tradehandler.cpp
+ net/eathena/tradehandler.h
+ )
+
SET(SRCS_MANASERV
gui/specialswindow.cpp
gui/specialswindow.h
@@ -881,9 +933,17 @@ ENDIF ()
SET (PROGRAMS manaplus)
IF (ENABLE_MANASERV)
- ADD_EXECUTABLE(manaplus WIN32 ${SRCS_GUICHAN} ${SRCS} ${SRCS_MANASERV} ${SRCS_TMWA} ${SRCS_EVOL})
+ IF (ENABLE_EATHENA)
+ ADD_EXECUTABLE(manaplus WIN32 ${SRCS_GUICHAN} ${SRCS} ${SRCS_MANASERV} ${SRCS_EATHENA} ${SRCS_TMWA} ${SRCS_EVOL})
+ ELSE(ENABLE_EATHENA)
+ ADD_EXECUTABLE(manaplus WIN32 ${SRCS_GUICHAN} ${SRCS} ${SRCS_MANASERV} ${SRCS_TMWA} ${SRCS_EVOL})
+ ENDIF(ENABLE_EATHENA)
ELSE(ENABLE_MANASERV)
- ADD_EXECUTABLE(manaplus WIN32 ${SRCS_GUICHAN} ${SRCS} ${SRCS_TMWA} ${SRCS_EVOL})
+ IF (ENABLE_EATHENA)
+ ADD_EXECUTABLE(manaplus WIN32 ${SRCS_GUICHAN} ${SRCS} ${SRCS_EATHENA} ${SRCS_TMWA} ${SRCS_EVOL})
+ ELSE(ENABLE_EATHENA)
+ ADD_EXECUTABLE(manaplus WIN32 ${SRCS_GUICHAN} ${SRCS} ${SRCS_TMWA} ${SRCS_EVOL})
+ ENDIF(ENABLE_EATHENA)
ENDIF(ENABLE_MANASERV)
TARGET_LINK_LIBRARIES(manaplus