summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-12 11:40:14 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-14 17:40:17 +0200
commitb0233216691fc52c6886a7f53c650d56a651cc84 (patch)
treee7424326ef33a43904419f42683ba95e02443d1d /wscript
parent0f49a589013d0f5c75cccf75ee2dd6cc99ce3d91 (diff)
downloadlibgit2-b0233216691fc52c6886a7f53c650d56a651cc84.tar.gz
Remove custom backends
All the custom backend code will be moved to a separate project, together with the new MySQL backend.
Diffstat (limited to 'wscript')
-rw-r--r--wscript18
1 files changed, 1 insertions, 17 deletions
diff --git a/wscript b/wscript
index fd877e468..92f00da17 100644
--- a/wscript
+++ b/wscript
@@ -17,7 +17,7 @@ CFLAGS_WIN32_L = ['/RELEASE'] # used for /both/ debug and release builds.
# sets the module's checksum in the header.
CFLAGS_WIN32_L_DBG = ['/DEBUG']
-ALL_LIBS = ['crypto', 'pthread', 'sqlite3', 'hiredis']
+ALL_LIBS = ['crypto', 'pthread']
def options(opt):
opt.load('compiler_c')
@@ -30,10 +30,6 @@ PPC optimized version (ppc) or the SHA1 functions from OpenSSL (openssl)")
help='Force a specific MSVC++ version (7.1, 8.0, 9.0, 10.0), if more than one is installed')
opt.add_option('--arch', action='store', default='x86',
help='Select target architecture (ia64, x64, x86, x86_amd64, x86_ia64)')
- opt.add_option('--with-sqlite', action='store_true', default=False,
- dest='use_sqlite', help='Enable sqlite support')
- opt.add_option('--with-hiredis', action='store_true', default=False,
- dest='use_hiredis', help='Enable redis support using hiredis')
opt.add_option('--threadsafe', action='store_true', default=False,
help='Make libgit2 thread-safe (requires pthreads)')
@@ -73,17 +69,6 @@ def configure(conf):
conf.check_cc(lib='pthread', uselib_store='pthread')
conf.env.DEFINES += ['GIT_THREADS']
- # check for sqlite3
- if conf.options.use_sqlite and conf.check_cc(
- lib='sqlite3', uselib_store='sqlite3', install_path=None, mandatory=False):
- conf.env.DEFINES += ['GIT2_SQLITE_BACKEND']
-
- # check for hiredis
- if conf.options.use_hiredis and conf.check_cc(
- lib='hiredis', uselib_store='hiredis', install_path=None, mandatory=False):
- conf.env.DEFINES += ['GIT2_HIREDIS_BACKEND']
-
-
if conf.options.sha1 not in ['openssl', 'ppc', 'builtin']:
conf.fatal('Invalid SHA1 option')
@@ -149,7 +134,6 @@ def build_library(bld, build_type):
# E.g. src/unix/*.c
# src/win32/*.c
sources = sources + directory.ant_glob('src/%s/*.c' % bld.env.PLATFORM)
- sources = sources + directory.ant_glob('src/backends/*.c')
sources = sources + directory.ant_glob('deps/zlib/*.c')
# SHA1 methods source