diff options
author | Olivier Ramonat <ramonat@adacore.com> | 2011-02-21 13:14:01 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-02-21 21:57:27 +0200 |
commit | af774b012cba233a577a95ee9b15944df6f3bbbf (patch) | |
tree | a6ece71e03eee46ad38451d0bcdc0696cbaadf6d | |
parent | 817c28201e2a9564b38a624be491245aa025c77f (diff) | |
download | libgit2-af774b012cba233a577a95ee9b15944df6f3bbbf.tar.gz |
Add --without-sqlite option to waf configure
Disable sqlite support when ./waf configure is run with --without-sqlite
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | wscript | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -78,6 +78,9 @@ The waf build system for libgit2 accepts the following flags: --arch=[ia64|x64|x86|x86_amd64|x86_ia64] Force a specific architecture for compilers that support it. + --without-sqlite + Disable sqlite support. + You can run `./waf --help` to see a full list of install options and targets. @@ -29,6 +29,8 @@ 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('--without-sqlite', action='store_false', default=True, + dest='use_sqlite', help='Disable sqlite support') def configure(conf): @@ -67,7 +69,8 @@ def configure(conf): conf.check_cc(lib=zlib_name, uselib_store='z', install_path=None) # check for sqlite3 - if conf.check_cc(lib='sqlite3', uselib_store='sqlite3', install_path=None, mandatory=False): + 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'] if conf.options.sha1 not in ['openssl', 'ppc', 'builtin']: |