Skip to content

Commit 25d3036

Browse files
committed
unversion libssl and libcrypto
1 parent c044e70 commit 25d3036

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonUtil.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ protected static ArrayList<String> getLibraries(File filesDir) {
4141
libsList.add("SDL2_image");
4242
libsList.add("SDL2_mixer");
4343
libsList.add("SDL2_ttf");
44-
addLibraryIfExists(libsList, "ssl.*", libsDir);
45-
addLibraryIfExists(libsList, "crypto.*", libsDir);
44+
addLibraryIfExists(libsList, "ssl", libsDir);
45+
addLibraryIfExists(libsList, "crypto", libsDir);
46+
addLibraryIfExists(libsList, "ffi", libsDir);
4647
libsList.add("python2.7");
4748
libsList.add("python3.5m");
4849
libsList.add("main");

pythonforandroid/recipe.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import glob
66
from shutil import rmtree
77
from six import PY2, with_metaclass
8-
98
import hashlib
109
from re import match
1110

@@ -556,15 +555,15 @@ def clean_build(self, arch=None):
556555

557556
def install_libs(self, arch, *libs, **links):
558557
libs_dir = self.ctx.get_libs_dir(arch.arch)
559-
if not libs:
560-
warning('install_libs called with no libraries to install!')
561-
return
562-
args = libs + (libs_dir,)
563-
shprint(sh.cp, *args)
564558
if links:
565-
with current_directory(libs_dir):
566-
for lib, link in links.iteritems():
567-
shprint(sh.ln, '-s', lib, link)
559+
for lib, link in links.iteritems():
560+
shprint(sh.cp, lib, join(libs_dir, link))
561+
else:
562+
if not libs:
563+
warning('install_libs called with no libraries to install!')
564+
return
565+
args = libs + (libs_dir,)
566+
shprint(sh.cp, *args)
568567

569568
def has_libs(self, arch, *libs):
570569
return all(map(lambda l: self.ctx.has_lib(arch.arch, l), libs))

0 commit comments

Comments
 (0)