diff options
| author | Dmitry Kovega <arhibot@gmail.com> | 2011-04-03 21:43:51 +0400 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-04-08 03:27:01 +0300 |
| commit | 8a64bc292c36f5af3e42c46712cb449e19dfa125 (patch) | |
| tree | 6e4992d5ae91aff475ce26c13e8e8ead19c9e253 /wscript | |
| parent | 0ad6efa110853763894b60e4c454985a726968da (diff) | |
| download | libgit2-8a64bc292c36f5af3e42c46712cb449e19dfa125.tar.gz | |
redis backend
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -16,7 +16,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'] +ALL_LIBS = ['crypto', 'pthread', 'sqlite3', 'hiredis'] def options(opt): opt.load('compiler_c') @@ -31,6 +31,8 @@ PPC optimized version (ppc) or the SHA1 functions from OpenSSL (openssl)") 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)') @@ -72,6 +74,12 @@ def configure(conf): 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') |
