Pull in lmdb as part of tools/update-deps. Update it to 0.9.19.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3404 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -28,6 +28,10 @@ kV8Repository = 'https://github.com/v8/v8.git'
|
||||
kV8Branch = 'branch-heads/5.8'
|
||||
kV8Work = 'v8'
|
||||
|
||||
kLmdbRepository = 'https://github.com/LMDB/lmdb.git'
|
||||
kLmdbBranch = 'LMDB_0.9.19'
|
||||
kLmdbWork = 'lmdb'
|
||||
|
||||
cores = multiprocessing.cpu_count()
|
||||
if platform.machine() == 'armv7l':
|
||||
cores = 1
|
||||
@ -80,6 +84,27 @@ def updateUv():
|
||||
env['WINDOWSSDKDIR'] = ''
|
||||
run(['cmd', '/C', 'call', 'vcbuild.bat', 'release', 'x64'], cwd=kUvWork, env=env)
|
||||
|
||||
def updateLmdb():
|
||||
print 'liblmdb'
|
||||
print
|
||||
clean = False
|
||||
|
||||
if os.path.exists(os.path.join(kLmdbWork, '.update-deps-branch')):
|
||||
haveBranch = open(os.path.join(kLmdbWork, '.update-deps-branch'), 'r').read().strip()
|
||||
if kLmdbBranch != haveBranch:
|
||||
print haveBranch, '=>', kLmdbBranch
|
||||
clean = True
|
||||
else:
|
||||
clean = True
|
||||
|
||||
if clean:
|
||||
if os.path.isdir(os.path.join(kLmdbWork)):
|
||||
print 'Cleaning', kLmdbWork
|
||||
shutil.rmtree(os.path.join(kLmdbWork), onerror=makeWritableAndRetry)
|
||||
if not os.path.isdir(kLmdbWork):
|
||||
run(['git', 'clone', '--branch', kLmdbBranch, kLmdbRepository, kLmdbWork])
|
||||
open(os.path.join(kLmdbWork, '.update-deps-branch'), 'w').write(kLmdbBranch)
|
||||
|
||||
def updateV8():
|
||||
print 'v8'
|
||||
print
|
||||
@ -129,4 +154,5 @@ def updateV8():
|
||||
|
||||
if __name__ == '__main__':
|
||||
updateUv()
|
||||
updateLmdb()
|
||||
updateV8()
|
||||
|
Reference in New Issue
Block a user