summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-16 18:34:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-16 18:34:10 +0300
commit001e6b5234cd4867845144b10f11cd727e7f309a (patch)
treebfbcc0211db4ed7170674a16e8a2123e5a749323
parentcb16bee18580b7123711054f3d6b91d3b5d80724 (diff)
downloadplus-001e6b5234cd4867845144b10f11cd727e7f309a.tar.gz
plus-001e6b5234cd4867845144b10f11cd727e7f309a.tar.bz2
plus-001e6b5234cd4867845144b10f11cd727e7f309a.tar.xz
plus-001e6b5234cd4867845144b10f11cd727e7f309a.zip
Build shopselldialog only if tmwa support enabled.
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/Makefile.am4
-rw-r--r--src/gui/windows/shopselldialog.h3
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