Skip to content

Commit

Permalink
Merge pull request #547 from kiwix/update_android_ndk
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr authored Oct 13, 2022
2 parents 3c7c604 + 3847844 commit 3c44538
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions kiwixbuild/dependencies/android_ndk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ class android_ndk(Dependency):
neutral = False
name = 'android-ndk'
gccver = '4.9.x'
api = '24'

class Source(ReleaseDownload):
archive = Remotefile('android-ndk-r13b-linux-x86_64.zip',
'3524d7f8fca6dc0d8e7073a7ab7f76888780a22841a6641927123146c3ffd29c',
'https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip')
archive = Remotefile('android-ndk-r21e-linux-x86_64.zip',
'ad7ce5467e18d40050dc51b8e7affc3e635c85bd8c59be62de32352328ed467e',
'https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip')

@property
def source_dir(self):
Expand All @@ -28,7 +29,7 @@ def install_path(self):

@property
def api(self):
return '21' if self.arch in ('arm64', 'x86_64') else '14'
return self.target.api

@property
def platform(self):
Expand Down
4 changes: 2 additions & 2 deletions kiwixbuild/platforms/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def libdir(self):
def binaries_name(self):
arch_full = self.arch_full
return {
'CC': '{}-{}'.format(arch_full, 'gcc'),
'CXX': '{}-{}'.format(arch_full, 'g++'),
'CC': '{}-{}'.format(arch_full, 'clang'),
'CXX': '{}-{}'.format(arch_full, 'clang++'),
'AR': '{}-{}'.format(arch_full, 'ar'),
'STRIP': '{}-{}'.format(arch_full, 'strip'),
'RANLIB': '{}-{}'.format(arch_full, 'ranlib'),
Expand Down
4 changes: 2 additions & 2 deletions kiwixbuild/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# This is the "version" of the whole base_deps_versions dict.
# Change this when you change base_deps_versions.
base_deps_meta_version = '77'
base_deps_meta_version = '78'

base_deps_versions = {
'zlib' : '1.2.12',
Expand All @@ -55,7 +55,7 @@
'icu4c' : '58.2',
'libaria2' : '1.36.0',
'libmagic' : '5.35',
'android-ndk' : 'r13b',
'android-ndk' : 'r21e',
'qt' : '5.10.1',
'qtwebengine' : '5.10.1',
'org.kde' : '5.15-21.08',
Expand Down

0 comments on commit 3c44538

Please sign in to comment.