linux arm

pull/1/head
DiMartinoXBMC 2015-07-14 20:42:31 +03:00
parent a13873ca9e
commit 6bb803e791
9 changed files with 14 additions and 8 deletions

View File

@ -17,7 +17,9 @@ def get_libname(platform):
libname=['libtorrent.so']
elif platform['system'] == 'windows':
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']
return libname

View File

@ -34,6 +34,10 @@ log('platform ' + str(platform))
try:
if platform['system'] in ['darwin', 'linux_x86', 'linux_x86_64', 'windows']:
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']:
import imp
from ctypes import *

View File

@ -1 +1 @@
7165568
7145572

View File

@ -0,0 +1 @@
2309928

View File

@ -0,0 +1 @@
1188592

Binary file not shown.

View File

@ -10,13 +10,11 @@ from platform_pulsar import get_libname
class Public:
def __init__( self ):
self.platforms=[{'system':'darwin'},
{'system':'linux_x86'},
{'system':'linux_x86_64'},
{'system':'windows'},
{'system':'android_armv7'},
{'system':'android_x86'}]
self.platforms=[]
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()
def _generate_size_file( self ):