Simplify cross-compilation

Now we can make reference to build step in another target platform, we can
simplify cross-compilation fo libmagic and icu4c.
This commit is contained in:
Matthieu Gautier
2018-05-29 17:42:42 +02:00
parent a87ba06bf3
commit c8c0192675
6 changed files with 33 additions and 81 deletions

View File

@ -12,11 +12,4 @@ class Libzim(Dependency):
class Builder(MesonBuilder):
test_option = "-t 8"
@classmethod
def get_dependencies(cls, platformInfo):
base_dependencies = ['zlib', 'lzma', 'xapian-core']
if platformInfo.build != 'native':
return base_dependencies + ["icu4c_cross-compile"]
else:
return base_dependencies + ["icu4c"]
dependencies = ['zlib', 'lzma', 'xapian-core', 'icu4c']