Merge branch 'ndk-r12' into 'master'

NDK r12



See merge request !147
This commit is contained in:
Hans-Christoph Steiner 2016-07-18 14:50:51 +00:00
commit 9be1c75e58
10 changed files with 25 additions and 30 deletions

View file

@ -2,6 +2,7 @@ sdk_path = "/home/vagrant/android-sdk"
ndk_paths = { ndk_paths = {
'r9b': "/home/vagrant/android-ndk/r9b", 'r9b': "/home/vagrant/android-ndk/r9b",
'r10e': "/home/vagrant/android-ndk/r10e", 'r10e': "/home/vagrant/android-ndk/r10e",
'r12b': "/home/vagrant/android-ndk/r12b",
} }
java_paths = { java_paths = {
'8': "/usr/lib/jvm/java-8-openjdk-i386", '8': "/usr/lib/jvm/java-8-openjdk-i386",

View file

@ -10,25 +10,20 @@ test -e $NDK_BASE || mkdir -p $NDK_BASE
cd $NDK_BASE cd $NDK_BASE
if [ ! -e $NDK_BASE/r9b ]; then if [ ! -e $NDK_BASE/r9b ]; then
if [ `uname -m` == 'x86_64' ] ; then tar xjf /vagrant/cache/android-ndk-r9b-linux-x86_64.tar.bz2
SUFFIX='_64' tar xjf /vagrant/cache/android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2
else
SUFFIX=''
fi
tar xjf /vagrant/cache/android-ndk-r9b-linux-x86$SUFFIX.tar.bz2
tar xjf /vagrant/cache/android-ndk-r9b-linux-x86$SUFFIX-legacy-toolchains.tar.bz2
mv android-ndk-r9b r9b mv android-ndk-r9b r9b
fi fi
if [ ! -e $NDK_BASE/r10e ]; then if [ ! -e $NDK_BASE/r10e ]; then
if [ `uname -m` == 'x86_64' ] ; then 7zr x /vagrant/cache/android-ndk-r10e-linux-x86_64.bin > /dev/null
SUFFIX='_64'
else
SUFFIX=''
fi
7zr x /vagrant/cache/android-ndk-r10e-linux-x86$SUFFIX.bin > /dev/null
mv android-ndk-r10e r10e mv android-ndk-r10e r10e
fi fi
if [ ! -e $NDK_BASE/r12b ]; then
7zr x /vagrant/cache/android-ndk-r12b-linux-x86_64.bin > /dev/null
mv android-ndk-r12b r12b
fi
chmod -R a+rX $NDK_BASE/ chmod -R a+rX $NDK_BASE/
find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x

View file

@ -1125,9 +1125,9 @@ Version of the NDK to use in this build. Defaults to the latest NDK release
that included legacy toolchains, so as to not break builds that require that included legacy toolchains, so as to not break builds that require
toolchains no longer included in current versions of the NDK. toolchains no longer included in current versions of the NDK.
The buildserver supports r9b with its legacy toolchains and the latest release The buildserver supports r9b with its legacy toolchains, r10e and the
as of writing this document, r10e. You may add support for more versions by latest release as of writing this document, r12b. You may add support
adding them to 'ndk_paths' in your config file. for more versions by adding them to 'ndk_paths' in your config file.
@item gradle=<flavour1>[,<flavour2>,...] @item gradle=<flavour1>[,<flavour2>,...]
Build with Gradle instead of Ant, specifying what flavours to use. Flavours Build with Gradle instead of Ant, specifying what flavours to use. Flavours
@ -1561,9 +1561,7 @@ applications.
@section Setting up a build server @section Setting up a build server
In addition to the basic setup previously described, you will also need In addition to the basic setup previously described, you will also need
a Vagrant-compatible Debian Testing base box called 'jessie32' (or jessie64 a Vagrant-compatible Debian Testing base box called 'jessie64'.
for a 64-bit VM, if you want it to be much slower, and require more disk
space).
You can use a different version or distro for the base box, so long as you You can use a different version or distro for the base box, so long as you
don't expect any help making it work. One thing to be aware of is that don't expect any help making it work. One thing to be aware of is that

View file

@ -12,7 +12,8 @@
# not installed. # not installed.
# ndk_paths = { # ndk_paths = {
# 'r9b': None, # 'r9b': None,
# 'r10e': "$ANDROID_NDK", # 'r10e': None,
# 'r12b': "$ANDROID_NDK",
# } # }
# java_paths = { # java_paths = {

View file

@ -3,16 +3,16 @@
# You may want to alter these before running ./makebuildserver # You may want to alter these before running ./makebuildserver
# Name of the base box to use # Name of the base box to use
# basebox = "jessie32" # basebox = "jessie64"
# Location where testing32.box can be found, if you don't already have # Location where testing32.box can be found, if you don't already have
# it. For security reasons, it's recommended that you make your own # it. For security reasons, it's recommended that you make your own
# in a secure environment using trusted media (see the manual) but # in a secure environment using trusted media (see the manual) but
# you can use this default if you like... # you can use this default if you like...
# baseboxurl = "https://f-droid.org/jessie32.box" # baseboxurl = "https://f-droid.org/jessie64.box"
# #
# or if you have a cached local copy, you can use that first: # or if you have a cached local copy, you can use that first:
# baseboxurl = ["file:///home/fdroid/fdroidserver/cache/jessie32.box", "https://f-droid.org/jessie32.box"] # baseboxurl = ["file:///home/fdroid/fdroidserver/cache/jessie64.box", "https://f-droid.org/jessie64.box"]
# In the process of setting up the build server, many gigs of files # In the process of setting up the build server, many gigs of files
# are downloaded (Android SDK components, gradle, etc). These are # are downloaded (Android SDK components, gradle, etc). These are
@ -43,9 +43,6 @@
# Debian package proxy server - if you have one # Debian package proxy server - if you have one
# aptproxy = "http://192.168.0.19:8000" # aptproxy = "http://192.168.0.19:8000"
# Set to True if your base box is 64 bit (e.g. testing32.box isn't)
# arch64 = True
# If this is running on an older machine or on a virtualized system, # If this is running on an older machine or on a virtualized system,
# it can run a lot slower. If the provisioning fails with a warning # it can run a lot slower. If the provisioning fails with a warning
# about the timeout, extend the timeout here. (default: 600 seconds) # about the timeout, extend the timeout here. (default: 600 seconds)

View file

@ -460,7 +460,7 @@ def build_local(app, build, vcs, build_dir, output_dir, srclib_dir, extlib_dir,
ndk_path = build.ndk_path() ndk_path = build.ndk_path()
if build.ndk or (build.buildjni and build.buildjni != ['no']): if build.ndk or (build.buildjni and build.buildjni != ['no']):
if not ndk_path: if not ndk_path:
logging.critical("Android NDK version '%s' could not be found!" % build.ndk or 'r10e') logging.critical("Android NDK version '%s' could not be found!" % build.ndk or 'r12b')
logging.critical("Configured versions:") logging.critical("Configured versions:")
for k, v in config['ndk_paths'].items(): for k, v in config['ndk_paths'].items():
if k.endswith("_orig"): if k.endswith("_orig"):

View file

@ -56,7 +56,8 @@ default_config = {
'sdk_path': "$ANDROID_HOME", 'sdk_path': "$ANDROID_HOME",
'ndk_paths': { 'ndk_paths': {
'r9b': None, 'r9b': None,
'r10e': "$ANDROID_NDK", 'r10e': None,
'r12b': "$ANDROID_NDK",
}, },
'build_tools': "24.0.0", 'build_tools': "24.0.0",
'force_build_tools': False, 'force_build_tools': False,

View file

@ -235,7 +235,7 @@ def main():
logging.info(' Android SDK:\t\t\t' + config['sdk_path']) logging.info(' Android SDK:\t\t\t' + config['sdk_path'])
if aapt: if aapt:
logging.info(' Android SDK Build Tools:\t' + os.path.dirname(aapt)) logging.info(' Android SDK Build Tools:\t' + os.path.dirname(aapt))
logging.info(' Android NDK r10e (optional):\t$ANDROID_NDK') logging.info(' Android NDK r12b (optional):\t$ANDROID_NDK')
logging.info(' Keystore for signing key:\t' + keystore) logging.info(' Keystore for signing key:\t' + keystore)
if repo_keyalias is not None: if repo_keyalias is not None:
logging.info(' Alias for key in store:\t' + repo_keyalias) logging.info(' Alias for key in store:\t' + repo_keyalias)

View file

@ -348,7 +348,7 @@ class Build():
def ndk_path(self): def ndk_path(self):
version = self.ndk version = self.ndk
if not version: if not version:
version = 'r10e' # falls back to latest version = 'r12b' # falls back to latest
paths = fdroidserver.common.config['ndk_paths'] paths = fdroidserver.common.config['ndk_paths']
if version not in paths: if version not in paths:
return '' return ''

View file

@ -244,6 +244,8 @@ cachefiles = [
'8956e9efeea95f49425ded8bb697013b66e162b064b0f66b5c75628f76e0f532'), '8956e9efeea95f49425ded8bb697013b66e162b064b0f66b5c75628f76e0f532'),
('https://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2', ('https://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2',
'de93a394f7c8f3436db44568648f87738a8d09801a52f459dcad3fc047e045a1'), 'de93a394f7c8f3436db44568648f87738a8d09801a52f459dcad3fc047e045a1'),
('https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip',
'eafae2d614e5475a3bcfd7c5f201db5b963cc1290ee3e8ae791ff0c66757781e'),
] ]