From 319ad7846b8db6194429a6a35103d2ae008218c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Feb 2015 22:51:57 +0300 Subject: Build shoprenamelistener only if eathena support enabled. --- src/CMakeLists.txt | 4 ++-- src/Makefile.am | 4 ++-- src/listeners/shoprenamelistener.h | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3d598636e..886cc620e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1124,8 +1124,6 @@ SET(SRCS gui/rect.h events/selectionevent.h listeners/selectionlistener.h - listeners/shoprenamelistener.cpp - listeners/shoprenamelistener.h listeners/statlistener.cpp listeners/statlistener.h listeners/tablemodellistener.h @@ -1414,6 +1412,8 @@ SET(SRCS_EATHENA listeners/buyingstoreslotslistener.h listeners/pincodelistener.cpp listeners/pincodelistener.h + listeners/shoprenamelistener.cpp + listeners/shoprenamelistener.h net/eathena/adminhandler.cpp net/eathena/adminhandler.h net/eathena/auctionhandler.cpp diff --git a/src/Makefile.am b/src/Makefile.am index 73c5e4bba..80c191839 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -212,8 +212,6 @@ manaplus_SOURCES += events/actionevent.h \ gui/rect.h \ events/selectionevent.h \ listeners/selectionlistener.h \ - listeners/shoprenamelistener.cpp \ - listeners/shoprenamelistener.h \ listeners/statlistener.cpp \ listeners/statlistener.h \ listeners/tablemodellistener.h \ @@ -1350,6 +1348,8 @@ manaplus_SOURCES += gui/windows/bankwindow.cpp \ listeners/buyingstoreslotslistener.h \ listeners/pincodelistener.cpp \ listeners/pincodelistener.h \ + listeners/shoprenamelistener.cpp \ + listeners/shoprenamelistener.h \ net/eathena/adminhandler.cpp \ net/eathena/adminhandler.h \ net/eathena/auctionhandler.cpp \ diff --git a/src/listeners/shoprenamelistener.h b/src/listeners/shoprenamelistener.h index 4cafe9d0b..5b6ca3387 100644 --- a/src/listeners/shoprenamelistener.h +++ b/src/listeners/shoprenamelistener.h @@ -21,6 +21,8 @@ #ifndef LISTENERS_SHOPRENAMELISTENER_H #define LISTENERS_SHOPRENAMELISTENER_H +#ifdef EATHENA_SUPPORT + #include "listeners/actionlistener.h" #include "localconsts.h" @@ -45,4 +47,5 @@ class ShopRenameListener final : public ActionListener extern ShopRenameListener shopRenameListener; +#endif // EATHENA_SUPPORT #endif // LISTENERS_SHOPRENAMELISTENER_H -- cgit v1.2.3-70-g09d2