diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-16 18:15:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-16 18:15:50 +0300 |
commit | 1e686fc91d98f13211d40c39bb02d427414bd1a7 (patch) | |
tree | 704709915345aefa962f6ecb11a564be43aefbb6 | |
parent | 91639f6f2834d93e1c285bfc4060262537cc9358 (diff) | |
download | manaplus-1e686fc91d98f13211d40c39bb02d427414bd1a7.tar.gz manaplus-1e686fc91d98f13211d40c39bb02d427414bd1a7.tar.bz2 manaplus-1e686fc91d98f13211d40c39bb02d427414bd1a7.tar.xz manaplus-1e686fc91d98f13211d40c39bb02d427414bd1a7.zip |
Build buyingstoreselldialog only if eathena support enabled.
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/gui/windows/buyingstoreselldialog.h | 3 |
3 files changed, 7 insertions, 4 deletions
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 |