add linux_mipsel by inpos
This commit is contained in:
1 parent
c8c8f50eea
commit
d9e2de3c06
14 files changed
+74
-10
No files matched your search
File renamed without changes.
@@ -0,0 +1 @@
|
||||
4596396
|
||||
Binary file not shown.
File renamed without changes.
@@ -0,0 +1,24 @@
|
||||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
python-libtorrent for Kodi (script.module.libtorrent)
|
||||
Copyright (C) 2015-2016 DiMartino, srg70, RussakHH, aisman
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
'''
|
||||
File renamed without changes.
BIN
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
python-libtorrent for Kodi (script.module.libtorrent)
|
||||
Copyright (C) 2015-2016 DiMartino, srg70, RussakHH, aisman
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
'''
|
||||
@@ -48,7 +48,8 @@ def log(msg):
|
||||
def get_libname(platform):
|
||||
libname=[]
|
||||
if platform['system'] in ['darwin', 'linux_x86', 'linux_arm', 'linux_armv6',
|
||||
'linux_armv7', 'linux_x86_64', 'ios_arm', 'linux_mips']:
|
||||
'linux_armv7', 'linux_x86_64', 'ios_arm',
|
||||
'linux_mipsel_ucs2', 'linux_mipsel_ucs4']:
|
||||
libname=['libtorrent.so']
|
||||
elif platform['system'] == 'windows':
|
||||
libname=['libtorrent.pyd']
|
||||
@@ -100,7 +101,10 @@ def get_platform():
|
||||
ret["arch"] = "arm"
|
||||
elif system==10:
|
||||
ret["os"] = "linux"
|
||||
ret["arch"] = "mips"
|
||||
ret["arch"] = "mipsel_ucs2"
|
||||
elif system==11:
|
||||
ret["os"] = "linux"
|
||||
ret["arch"] = "mipsel_ucs4"
|
||||
else:
|
||||
|
||||
ret = {
|
||||
@@ -121,7 +125,10 @@ def get_platform():
|
||||
else:
|
||||
ret["arch"] = "arm"
|
||||
elif "mips" in uname:
|
||||
ret["arch"] = "mips"
|
||||
if sys.maxunicode > 65536:
|
||||
ret["arch"] = 'mipsel_ucs4'
|
||||
else:
|
||||
ret["arch"] = 'mipsel_ucs2'
|
||||
elif xbmc.getCondVisibility("system.platform.windows"):
|
||||
ret["os"] = "windows"
|
||||
elif xbmc.getCondVisibility("system.platform.osx"):
|
||||
|
||||
@@ -92,7 +92,7 @@ if platform['system'] not in ['windows']:
|
||||
|
||||
try:
|
||||
if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7',
|
||||
'linux_x86_64', 'linux_mips']:
|
||||
'linux_x86_64', 'linux_mipsel_ucs2', 'linux_mipsel_ucs4']:
|
||||
import libtorrent
|
||||
elif platform['system'] in ['darwin', 'ios_arm']:
|
||||
import imp
|
||||
|
||||
@@ -48,7 +48,8 @@ def log(msg):
|
||||
def get_libname(platform):
|
||||
libname=[]
|
||||
if platform['system'] in ['darwin', 'linux_x86', 'linux_arm', 'linux_armv6',
|
||||
'linux_armv7', 'linux_x86_64', 'ios_arm', 'linux_mips']:
|
||||
'linux_armv7', 'linux_x86_64', 'ios_arm',
|
||||
'linux_mipsel_ucs2', 'linux_mipsel_ucs4']:
|
||||
libname=['libtorrent.so']
|
||||
elif platform['system'] == 'windows':
|
||||
libname=['libtorrent.pyd']
|
||||
@@ -100,7 +101,10 @@ def get_platform():
|
||||
ret["arch"] = "arm"
|
||||
elif system==10:
|
||||
ret["os"] = "linux"
|
||||
ret["arch"] = "mips"
|
||||
ret["arch"] = "mipsel_ucs2"
|
||||
elif system==11:
|
||||
ret["os"] = "linux"
|
||||
ret["arch"] = "mipsel_ucs4"
|
||||
else:
|
||||
|
||||
ret = {
|
||||
@@ -121,7 +125,10 @@ def get_platform():
|
||||
else:
|
||||
ret["arch"] = "arm"
|
||||
elif "mips" in uname:
|
||||
ret["arch"] = "mips"
|
||||
if sys.maxunicode > 65536:
|
||||
ret["arch"] = 'mipsel_ucs4'
|
||||
else:
|
||||
ret["arch"] = 'mipsel_ucs2'
|
||||
elif xbmc.getCondVisibility("system.platform.windows"):
|
||||
ret["os"] = "windows"
|
||||
elif xbmc.getCondVisibility("system.platform.osx"):
|
||||
|
||||
Reference in new issue
Block a user