mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00
Add --without-sqlite option to waf configure
Disable sqlite support when ./waf configure is run with --without-sqlite
This commit is contained in:
parent
817c28201e
commit
af774b012c
@ -78,6 +78,9 @@ The waf build system for libgit2 accepts the following flags:
|
|||||||
--arch=[ia64|x64|x86|x86_amd64|x86_ia64]
|
--arch=[ia64|x64|x86|x86_amd64|x86_ia64]
|
||||||
Force a specific architecture for compilers that support it.
|
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
|
You can run `./waf --help` to see a full list of install options and
|
||||||
targets.
|
targets.
|
||||||
|
|
||||||
|
5
wscript
5
wscript
@ -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')
|
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',
|
opt.add_option('--arch', action='store', default='x86',
|
||||||
help='Select target architecture (ia64, x64, x86, x86_amd64, x86_ia64)')
|
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):
|
def configure(conf):
|
||||||
|
|
||||||
@ -67,7 +69,8 @@ def configure(conf):
|
|||||||
conf.check_cc(lib=zlib_name, uselib_store='z', install_path=None)
|
conf.check_cc(lib=zlib_name, uselib_store='z', install_path=None)
|
||||||
|
|
||||||
# check for sqlite3
|
# 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']
|
conf.env.DEFINES += ['GIT2_SQLITE_BACKEND']
|
||||||
|
|
||||||
if conf.options.sha1 not in ['openssl', 'ppc', 'builtin']:
|
if conf.options.sha1 not in ['openssl', 'ppc', 'builtin']:
|
||||||
|
Loading…
Reference in New Issue
Block a user