mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-10-23 04:37:43 -04:00
Allow SDK and NDK paths to be subsituted into prebuild commands
This commit is contained in:
1 parent
b8d7ed9948
commit
2da03a3940
1 file changed
+2
@@ -895,6 +895,8 @@ def prepare_source(vcs, app, build, build_dir, extlib_dir, sdk_path, ndk_path, j
|
||||
for name, libpath in srclibpaths:
|
||||
libpath = os.path.relpath(libpath, root_dir)
|
||||
prebuild = prebuild.replace('$$' + name + '$$', libpath)
|
||||
prebuild = prebuild.replace('$$SDK$$', sdk_path)
|
||||
prebuild = prebuild.replace('$$NDK$$', ndk_path)
|
||||
if subprocess.call(prebuild, cwd=root_dir, shell=True) != 0:
|
||||
raise BuildException("Error running pre-build command")
|
||||
|
||||
|
||||
Reference in new issue
Block a user