diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-16 18:34:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-16 18:34:10 +0300 |
commit | 001e6b5234cd4867845144b10f11cd727e7f309a (patch) | |
tree | bfbcc0211db4ed7170674a16e8a2123e5a749323 | |
parent | cb16bee18580b7123711054f3d6b91d3b5d80724 (diff) | |
download | mv-001e6b5234cd4867845144b10f11cd727e7f309a.tar.gz mv-001e6b5234cd4867845144b10f11cd727e7f309a.tar.bz2 mv-001e6b5234cd4867845144b10f11cd727e7f309a.tar.xz mv-001e6b5234cd4867845144b10f11cd727e7f309a.zip |
Build shopselldialog only if tmwa support enabled.
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/gui/windows/shopselldialog.h | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 48ae4792a..762a0b2ed 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -422,8 +422,6 @@ SET(SRCS gui/windows/serverdialog.h gui/windows/setupwindow.cpp gui/windows/setupwindow.h - gui/windows/shopselldialog.cpp - gui/windows/shopselldialog.h gui/widgets/tabs/setup_audio.cpp gui/widgets/tabs/setup_audio.h gui/widgets/tabs/setup_colors.cpp @@ -1330,6 +1328,8 @@ SET(SRCS_TMWA guildmanager.h gui/widgets/tabs/chat/emulateguildtab.cpp gui/widgets/tabs/chat/emulateguildtab.h + gui/windows/shopselldialog.cpp + gui/windows/shopselldialog.h net/tmwa/adminhandler.cpp net/tmwa/adminhandler.h net/tmwa/auctionhandler.cpp diff --git a/src/Makefile.am b/src/Makefile.am index 4f748735f..cc7665aff 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -552,8 +552,6 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \ gui/windows/serverdialog.h \ gui/windows/setupwindow.cpp \ gui/windows/setupwindow.h \ - gui/windows/shopselldialog.cpp \ - gui/windows/shopselldialog.h \ gui/widgets/tabs/setup_audio.cpp \ gui/widgets/tabs/setup_audio.h \ gui/widgets/tabs/setup_colors.cpp \ @@ -1265,6 +1263,8 @@ manaplus_SOURCES += \ guildmanager.h \ gui/widgets/tabs/chat/emulateguildtab.cpp \ gui/widgets/tabs/chat/emulateguildtab.h \ + gui/windows/shopselldialog.cpp \ + gui/windows/shopselldialog.h \ net/tmwa/adminhandler.cpp \ net/tmwa/adminhandler.h \ net/tmwa/auctionhandler.cpp \ diff --git a/src/gui/windows/shopselldialog.h b/src/gui/windows/shopselldialog.h index 99e120395..8fad55345 100644 --- a/src/gui/windows/shopselldialog.h +++ b/src/gui/windows/shopselldialog.h @@ -23,6 +23,8 @@ #ifndef GUI_WINDOWS_SHOPSELLDIALOG_H #define GUI_WINDOWS_SHOPSELLDIALOG_H +#ifdef TMWA_SUPPORT + #include "gui/widgets/selldialog.h" /** @@ -48,4 +50,5 @@ class ShopSellDialog final : public SellDialog std::string mNick; }; +#endif // TMWA_SUPPORT #endif // GUI_WINDOWS_SHOPSELLDIALOG_H |