Mercurial > hg > truffle
comparison mxtool/mx.py @ 15362:f14192b72692
mx exportlibs: fix in calculation of library dependencies
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Thu, 24 Apr 2014 14:03:17 +0200 |
parents | 9e7f87dc6395 |
children | 9693513ce95c |
comparison
equal
deleted
inserted
replaced
15361:2682747f7108 | 15362:f14192b72692 |
---|---|
4381 libsToExport.add(r) | 4381 libsToExport.add(r) |
4382 | 4382 |
4383 # a library can have other libraries as dependency | 4383 # a library can have other libraries as dependency |
4384 size = 0 | 4384 size = 0 |
4385 while size != len(libsToExport): | 4385 while size != len(libsToExport): |
4386 size = len(libsToExport) | |
4386 for lib in libsToExport.copy(): | 4387 for lib in libsToExport.copy(): |
4387 for dep in lib.deps: | 4388 for dep in lib.deps: |
4388 r = isValidLibrary(dep) | 4389 r = isValidLibrary(dep) |
4389 if r: | 4390 if r: |
4390 libsToExport.add(r) | 4391 libsToExport.add(r) |
4391 size = len(libsToExport) | |
4392 | 4392 |
4393 for lib in libsToExport: | 4393 for lib in libsToExport: |
4394 add(lib.get_path(resolve=True), lib.path) | 4394 add(lib.get_path(resolve=True), lib.path) |
4395 if lib.sha1: | 4395 if lib.sha1: |
4396 add(lib.get_path(resolve=True) + ".sha1", lib.path + ".sha1") | 4396 add(lib.get_path(resolve=True) + ".sha1", lib.path + ".sha1") |