diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-16 20:10:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-16 20:39:42 +0300 |
commit | c6fa5a35e1ed48b6dcb8cc83c7de9563fdca8a71 (patch) | |
tree | 61e3d78cc40814d0961bcdcd0550a69ff437aeab | |
parent | 001e6b5234cd4867845144b10f11cd727e7f309a (diff) | |
download | mv-c6fa5a35e1ed48b6dcb8cc83c7de9563fdca8a71.tar.gz mv-c6fa5a35e1ed48b6dcb8cc83c7de9563fdca8a71.tar.bz2 mv-c6fa5a35e1ed48b6dcb8cc83c7de9563fdca8a71.tar.xz mv-c6fa5a35e1ed48b6dcb8cc83c7de9563fdca8a71.zip |
Build banklistener only if eathena support enabled.
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/listeners/banklistener.h | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 762a0b2ed..f69652617 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -811,8 +811,6 @@ SET(SRCS listeners/attributelistener.h listeners/awaylistener.cpp listeners/awaylistener.h - listeners/banklistener.cpp - listeners/banklistener.h listeners/baselistener.hpp listeners/buyingstoremodelistener.cpp listeners/buyingstoremodelistener.h @@ -1414,6 +1412,8 @@ SET(SRCS_EATHENA gui/windows/buyingstoreselldialog.h gui/windows/eggselectiondialog.cpp gui/windows/eggselectiondialog.h + listeners/banklistener.cpp + listeners/banklistener.h net/eathena/adminhandler.cpp net/eathena/adminhandler.h net/eathena/auctionhandler.cpp diff --git a/src/Makefile.am b/src/Makefile.am index cc7665aff..3ab999fbc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -940,8 +940,6 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \ listeners/attributelistener.h \ listeners/awaylistener.cpp \ listeners/awaylistener.h \ - listeners/banklistener.cpp \ - listeners/banklistener.h \ listeners/baselistener.hpp \ listeners/buyingstoremodelistener.cpp \ listeners/buyingstoremodelistener.h \ @@ -1350,6 +1348,8 @@ manaplus_SOURCES += gui/windows/bankwindow.cpp \ gui/windows/buyingstoreselldialog.h \ gui/windows/eggselectiondialog.cpp \ gui/windows/eggselectiondialog.h \ + listeners/banklistener.cpp \ + listeners/banklistener.h \ net/eathena/adminhandler.cpp \ net/eathena/adminhandler.h \ net/eathena/auctionhandler.cpp \ diff --git a/src/listeners/banklistener.h b/src/listeners/banklistener.h index eaf8412bf..f970eb75e 100644 --- a/src/listeners/banklistener.h +++ b/src/listeners/banklistener.h @@ -21,6 +21,8 @@ #ifndef LISTENERS_BANKLISTENER_H #define LISTENERS_BANKLISTENER_H +#ifdef EATHENA_SUPPORT + #include "listeners/baselistener.hpp" #include "localconsts.h" @@ -35,4 +37,5 @@ class BankListener notfinal defineListenerHeader(BankListener) }; +#endif // EATHENA_SUPPORT #endif // LISTENERS_BANKLISTENER_H |