diff --git a/create_libkiwix.so.py b/create_libkiwix.so.py index c8ef6e839..3f4c7a642 100755 --- a/create_libkiwix.so.py +++ b/create_libkiwix.so.py @@ -26,11 +26,16 @@ ORIGINAL_ENVIRON = copy.deepcopy(os.environ) # the directory of this file for relative referencing CURRENT_PATH = os.path.dirname(os.path.abspath(__file__)) +# target platform to compile for +# list of available toolchains in /toolchains +# arm-linux-androideabi, mipsel-linux-android, x86, llvm +ARCHS = ('arm-linux-androideabi', 'mipsel-linux-android', 'x86') + +# different names of folder path for accessing files ARCHS_FULL_NAMES = { 'arm-linux-androideabi': 'arm-linux-androideabi', 'mipsel-linux-android': 'mipsel-linux-android', 'x86': 'i686-linux-android'} - ARCHS_SHORT_NAMES = { 'arm-linux-androideabi': 'armeabi', 'mipsel-linux-android': 'mips', @@ -39,11 +44,6 @@ ARCHS_SHORT_NAMES = { # store host machine name UNAME = check_output(['uname', '-s']).strip() -# target platform to compile for -# list of available toolchains in /toolchains -# arm-linux-androideabi, mipsel-linux-android, x86, llvm -ARCHS = ('arm-linux-androideabi', 'mipsel-linux-android', 'x86') - # compiler version to use # list of available toolchains in /toolchains # 4.4.3, 4.6, 4.7, clang3.1, clang3.2 @@ -106,7 +106,7 @@ def fail_on_missing(path): sys.exit(1) def syscall(args, shell=False, with_print=True): - ''' make a system call via bash ''' + ''' make a system call ''' args = args.split() if with_print: print(u"-----------\n" + u" ".join(args) + u"\n-----------")