Mercurial > hg > graal-compiler
comparison mxtool/mx.py @ 17013:0b2675391d01
mx library: support platform/architecture specific libraries
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Tue, 02 Sep 2014 14:46:22 +0200 |
parents | ad10671d1bbd |
children | 49b8c8932786 |
comparison
equal
deleted
inserted
replaced
17012:ad10671d1bbd | 17013:0b2675391d01 |
---|---|
903 optional = attrs.pop('optional', 'true') != 'false' | 903 optional = attrs.pop('optional', 'true') != 'false' |
904 l = JreLibrary(self, name, jar, optional) | 904 l = JreLibrary(self, name, jar, optional) |
905 self.jreLibs.append(l) | 905 self.jreLibs.append(l) |
906 | 906 |
907 for name, attrs in libsMap.iteritems(): | 907 for name, attrs in libsMap.iteritems(): |
908 if "|" in name: | |
909 assert name.count("|") == 2, "syntax: libname|os-platform|architecture" | |
910 name, platform, architecture = name.split("|") | |
911 if platform != get_os() or architecture != get_arch(): | |
912 continue | |
908 path = attrs.pop('path') | 913 path = attrs.pop('path') |
909 urls = pop_list(attrs, 'urls') | 914 urls = pop_list(attrs, 'urls') |
910 sha1 = attrs.pop('sha1', None) | 915 sha1 = attrs.pop('sha1', None) |
911 sourcePath = attrs.pop('sourcePath', None) | 916 sourcePath = attrs.pop('sourcePath', None) |
912 sourceUrls = pop_list(attrs, 'sourceUrls') | 917 sourceUrls = pop_list(attrs, 'sourceUrls') |