mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 06:42:21 -04:00
+ Add pathTools.cpp to the compilation script
This commit is contained in:
parent
eb71c02465
commit
57536c65b9
@ -383,8 +383,9 @@ for arch in ARCHS:
|
|||||||
'-D_FILE_OFFSET_BITS=64 '
|
'-D_FILE_OFFSET_BITS=64 '
|
||||||
'-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE '
|
'-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE '
|
||||||
'-DANDROID_NDK '
|
'-DANDROID_NDK '
|
||||||
'kiwix.c %(kwsrc)s/kiwix/reader.cpp %(kwsrc)s'
|
'kiwix.c %(kwsrc)s/kiwix/reader.cpp '
|
||||||
'/stringTools.cpp '
|
'%(kwsrc)s/stringTools.cpp '
|
||||||
|
'%(kwsrc)s/pathTools.cpp '
|
||||||
'-I%(include_paths)s '
|
'-I%(include_paths)s '
|
||||||
% {'platform': platform,
|
% {'platform': platform,
|
||||||
'arch_full': arch_full,
|
'arch_full': arch_full,
|
||||||
@ -403,7 +404,7 @@ for arch in ARCHS:
|
|||||||
link_cmd = ('g++ -fPIC -shared -B%(platform)s/sysroot '
|
link_cmd = ('g++ -fPIC -shared -B%(platform)s/sysroot '
|
||||||
'--sysroot %(platform)s/sysroot '
|
'--sysroot %(platform)s/sysroot '
|
||||||
'-nostdlib '
|
'-nostdlib '
|
||||||
'kiwix.o reader.o stringTools.o '
|
'kiwix.o reader.o stringTools.o pathTools.o '
|
||||||
'%(platform)s/lib/gcc/%(arch_full)s/%(gccver)s/crtbegin.o '
|
'%(platform)s/lib/gcc/%(arch_full)s/%(gccver)s/crtbegin.o '
|
||||||
'%(platform)s/lib/libzim.a %(platform)s/lib/liblzma.a '
|
'%(platform)s/lib/libzim.a %(platform)s/lib/liblzma.a '
|
||||||
'-L%(platform)s/%(arch_full)s/lib '
|
'-L%(platform)s/%(arch_full)s/lib '
|
||||||
@ -432,7 +433,7 @@ for arch in ARCHS:
|
|||||||
syscall(compile_cmd)
|
syscall(compile_cmd)
|
||||||
syscall(link_cmd)
|
syscall(link_cmd)
|
||||||
|
|
||||||
for obj in ('kiwix.o', 'reader.o', 'stringTools.o',
|
for obj in ('kiwix.o', 'reader.o', 'stringTools.o', 'pathTools.o',
|
||||||
'src/org_kiwix_kiwixmobile_JNIKiwix.h'):
|
'src/org_kiwix_kiwixmobile_JNIKiwix.h'):
|
||||||
os.remove(obj)
|
os.remove(obj)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user