mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Added ability to run ndk build script if the ant build doesn't do it
This commit is contained in:
parent
4c2a66b070
commit
10505120d4
2 changed files with 14 additions and 0 deletions
12
build.py
12
build.py
|
@ -326,6 +326,17 @@ for app in apps:
|
|||
tarball.add(build_dir, tarname)
|
||||
tarball.close()
|
||||
|
||||
# Build native stuff if required...
|
||||
if thisbuild.has_key('buildjni') and thisbuild['buildjni'] == 'yes':
|
||||
ndkbuild = os.path.join(ndk_path, "ndk-build")
|
||||
p = subprocess.Popen([ndkbuild], cwd=root_dir,
|
||||
stdout=subprocess.PIPE)
|
||||
output = p.communicate()[0]
|
||||
if p.returncode != 0:
|
||||
print output
|
||||
print "NDK build failed"
|
||||
sys.exit(1)
|
||||
|
||||
# Build the release...
|
||||
if thisbuild.has_key('antcommand'):
|
||||
antcommand = thisbuild['antcommand']
|
||||
|
@ -338,6 +349,7 @@ for app in apps:
|
|||
print output
|
||||
print "Build failed"
|
||||
sys.exit(1)
|
||||
print "Build successful"
|
||||
|
||||
# Find the apk name in the output...
|
||||
if thisbuild.has_key('bindir'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue