summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2005-05-23 07:30:50 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2005-05-23 07:30:50 +0000
commit7594437a36acbdc7fb0c1a0e56b0954910c2543c (patch)
treeb2e1a9212f09ac1b6c1703a44658356bdaa2c24d /src
parent5cf7a669530b9f328fa79c401575cdd0e14a523e (diff)
downloadmanaserv-7594437a36acbdc7fb0c1a0e56b0954910c2543c.tar.gz
manaserv-7594437a36acbdc7fb0c1a0e56b0954910c2543c.tar.bz2
manaserv-7594437a36acbdc7fb0c1a0e56b0954910c2543c.tar.xz
manaserv-7594437a36acbdc7fb0c1a0e56b0954910c2543c.zip
Building sqlite conditionaly
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am8
-rw-r--r--src/sqlite/SQLiteWrapper.cpp1
-rw-r--r--src/sqlite/SQLiteWrapper.h1
-rw-r--r--src/storage.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 7d4a512b..8c3a9271 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -19,8 +19,6 @@ tmwserv_SOURCES = main.cpp \
netsession.cpp \
packet.h \
packet.cpp \
- sqlite/SQLiteWrapper.cpp \
- sqlite/SQLiteWrapper.h \
log.h \
log.cpp \
skill.h \
@@ -31,6 +29,12 @@ tmwserv_SOURCES = main.cpp \
script-squirrel.cpp \
storage.cpp storage.h
+
+if BUILD_SQLITE
+tmwserv_SOURCES += sqlite/SQLiteWrapper.cpp \
+ sqlite/SQLiteWrapper.h
+endif
+
# set the include path found by configure
INCLUDES= $(all_includes) $(SQLITE_CFLAGS)
LIBS = $(SQLITE_LIBS)
diff --git a/src/sqlite/SQLiteWrapper.cpp b/src/sqlite/SQLiteWrapper.cpp
index eef2498f..f5b484b7 100644
--- a/src/sqlite/SQLiteWrapper.cpp
+++ b/src/sqlite/SQLiteWrapper.cpp
@@ -263,4 +263,3 @@ bool SQLiteWrapper::Commit() {
bool SQLiteWrapper::Rollback() {
return DirectStatement("rollback");
}
-
diff --git a/src/sqlite/SQLiteWrapper.h b/src/sqlite/SQLiteWrapper.h
index 324fdb66..419e3d50 100644
--- a/src/sqlite/SQLiteWrapper.h
+++ b/src/sqlite/SQLiteWrapper.h
@@ -137,4 +137,3 @@ class SQLiteWrapper {
};
#endif
-
diff --git a/src/storage.h b/src/storage.h
index da30c083..8fd981a0 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -23,8 +23,6 @@
#ifndef STORAGE_H
#define STORAGE_H
-#define SQLITE_SUPPORT // For now
-
#ifdef SQLITE_SUPPORT
#include "sqlite/SQLiteWrapper.h"
#endif