linux arm
parent
a13873ca9e
commit
6bb803e791
|
@ -17,7 +17,9 @@ def get_libname(platform):
|
||||||
libname=['libtorrent.so']
|
libname=['libtorrent.so']
|
||||||
elif platform['system'] == 'windows':
|
elif platform['system'] == 'windows':
|
||||||
libname=['libtorrent.pyd']
|
libname=['libtorrent.pyd']
|
||||||
elif platform['system'] in ['android_armv7','android_x86']:
|
elif platform['system'] in ['linux_arm']:
|
||||||
|
libname=['libtorrent.so', 'libtorrent-rasterbar.so.7']
|
||||||
|
elif platform['system'] in ['android_armv7', 'android_x86']:
|
||||||
libname=['libtorrent.so', 'liblibtorrent.so']
|
libname=['libtorrent.so', 'liblibtorrent.so']
|
||||||
return libname
|
return libname
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,10 @@ log('platform ' + str(platform))
|
||||||
try:
|
try:
|
||||||
if platform['system'] in ['darwin', 'linux_x86', 'linux_x86_64', 'windows']:
|
if platform['system'] in ['darwin', 'linux_x86', 'linux_x86_64', 'windows']:
|
||||||
import libtorrent
|
import libtorrent
|
||||||
|
elif platform['system'] in ['linux_arm']:
|
||||||
|
from ctypes import *
|
||||||
|
cdll.LoadLibrary(dirname + '/libtorrent-rasterbar.so.7')
|
||||||
|
import libtorrent
|
||||||
elif platform['system'] in ['android_armv7', 'android_x86']:
|
elif platform['system'] in ['android_armv7', 'android_x86']:
|
||||||
import imp
|
import imp
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7165568
|
7145572
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
2309928
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
1188592
|
Binary file not shown.
|
@ -10,13 +10,11 @@ from platform_pulsar import get_libname
|
||||||
|
|
||||||
class Public:
|
class Public:
|
||||||
def __init__( self ):
|
def __init__( self ):
|
||||||
self.platforms=[{'system':'darwin'},
|
self.platforms=[]
|
||||||
{'system':'linux_x86'},
|
|
||||||
{'system':'linux_x86_64'},
|
|
||||||
{'system':'windows'},
|
|
||||||
{'system':'android_armv7'},
|
|
||||||
{'system':'android_x86'}]
|
|
||||||
self.root=os.path.dirname(__file__)
|
self.root=os.path.dirname(__file__)
|
||||||
|
for dir in os.listdir(self.root):
|
||||||
|
if os.path.isdir(os.path.join(self.root,dir)):
|
||||||
|
self.platforms.append({'system':dir})
|
||||||
self._generate_size_file()
|
self._generate_size_file()
|
||||||
|
|
||||||
def _generate_size_file( self ):
|
def _generate_size_file( self ):
|
||||||
|
|
Loading…
Reference in New Issue