From 1e686fc91d98f13211d40c39bb02d427414bd1a7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Feb 2015 18:15:50 +0300 Subject: Build buyingstoreselldialog only if eathena support enabled. --- src/CMakeLists.txt | 4 ++-- src/Makefile.am | 4 ++-- src/gui/windows/buyingstoreselldialog.h | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 460587246..9e9083d42 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -330,8 +330,6 @@ SET(SRCS gui/popups/createpartypopup.h gui/windows/buydialog.cpp gui/windows/buydialog.h - gui/windows/buyingstoreselldialog.cpp - gui/windows/buyingstoreselldialog.h gui/windows/buyselldialog.cpp gui/windows/buyselldialog.h gui/windows/changeemaildialog.cpp @@ -1414,6 +1412,8 @@ SET(SRCS_TMWA SET(SRCS_EATHENA gui/windows/bankwindow.cpp gui/windows/bankwindow.h + gui/windows/buyingstoreselldialog.cpp + gui/windows/buyingstoreselldialog.h net/eathena/adminhandler.cpp net/eathena/adminhandler.h net/eathena/auctionhandler.cpp diff --git a/src/Makefile.am b/src/Makefile.am index 1b15adb18..95e64a21d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -460,8 +460,6 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \ gui/popups/createpartypopup.h \ gui/windows/buydialog.cpp \ gui/windows/buydialog.h \ - gui/windows/buyingstoreselldialog.cpp \ - gui/windows/buyingstoreselldialog.h \ gui/windows/buyselldialog.cpp \ gui/windows/buyselldialog.h \ gui/windows/changeemaildialog.cpp \ @@ -1350,6 +1348,8 @@ if ENABLE_EATHENA manaplus_CXXFLAGS += -DEATHENA_SUPPORT manaplus_SOURCES += gui/windows/bankwindow.cpp \ gui/windows/bankwindow.h \ + gui/windows/buyingstoreselldialog.cpp \ + gui/windows/buyingstoreselldialog.h \ net/eathena/adminhandler.cpp \ net/eathena/adminhandler.h \ net/eathena/auctionhandler.cpp \ diff --git a/src/gui/windows/buyingstoreselldialog.h b/src/gui/windows/buyingstoreselldialog.h index d20c6d9ab..39b45a127 100644 --- a/src/gui/windows/buyingstoreselldialog.h +++ b/src/gui/windows/buyingstoreselldialog.h @@ -23,6 +23,8 @@ #ifndef GUI_WINDOWS_BUYINGSTORESELLDIALOG_H #define GUI_WINDOWS_BUYINGSTORESELLDIALOG_H +#ifdef EATHENA_SUPPORT + #include "gui/widgets/selldialog.h" class Being; @@ -52,4 +54,5 @@ class BuyingStoreSellDialog final : public SellDialog int mStoreId; }; +#endif // EATHENA_SUPPORT #endif // GUI_WINDOWS_BUYINGSTORESELLDIALOG_H -- cgit v1.2.3-60-g2f50