File tree Expand file tree Collapse file tree 4 files changed +61
-4
lines changed
src/src/org/renpy/android Expand file tree Collapse file tree 4 files changed +61
-4
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ VERSION_freetype=${VERSION_freetype:- 2.5.5}
4
+ # DEPS_freetype=(python)
5
+ URL_freetype=http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.gz
6
+ # MD5_freetype=4ba105e2d8535496fd633889396b20b7
7
+ BUILD_freetype=$BUILD_PATH /freetype/$( get_directory $URL_freetype )
8
+ RECIPE_freetype=$RECIPES_PATH /freetype
9
+
10
+ # function called for preparing source code if needed
11
+ # (you can apply patch etc here.)
12
+ function prebuild_freetype() {
13
+ true
14
+ }
15
+
16
+ # ~ function shouldbuild_freetype() {
17
+ # ~ if [ -f "$BUILD_freetype/libfreetype.so" ]; then
18
+ # ~ DO_BUILD=0
19
+ # ~ fi
20
+ # ~ }
21
+
22
+ function build_freetype() {
23
+ cd $BUILD_freetype
24
+
25
+ push_arm
26
+
27
+ # ~ export CC="$CC -I$BUILD_libfreetype/include"
28
+ # ~ export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
29
+ # ~ export LDSHARED="$LIBLINK"
30
+
31
+ # export LDSHARED="$LIBLINK"
32
+ # http://en.wikibooks.org/wiki/OpenGL_Programming/Installation/Android_NDK#FreeType
33
+
34
+
35
+ # try sh autogen.sh
36
+ try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=$BUILD_freetype --without-zlib --with-png=no --without-harfbuzz --enable-shared
37
+ # try ./configure --build=i686-pc-linux-gnu --host=arm-eabi OPT=$OFLAG --enable-shared --disable-toolbox-glue --disable-framework --without-zlib --with-png=no
38
+ try make -j5
39
+ # try make -k CROSS_COMPILE_TARGET=yes INSTSONAME=libfreetype.so#-j4
40
+ pop_arm
41
+ echo ' finished'
42
+ try cp -L $BUILD_freetype /objs/.libs/libfreetype.so $LIBS_PATH /libfreetype.so.6
43
+ try cp -L $BUILD_freetype /objs/.libs/libfreetype.so $LIBS_PATH
44
+
45
+ }
46
+
47
+ # function called after all the compile have been done
48
+ function postbuild_freetype() {
49
+ true
50
+ }
51
+
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function build_libxslt() {
26
26
cd $BUILD_libxslt
27
27
28
28
push_arm
29
-
29
+ try sh autogen.sh
30
30
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi \
31
31
--without-plugins --without-debug --without-python --without-crypto \
32
32
--with-libxml-src=$BUILD_libxml2
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function build_libyaml() {
22
22
push_arm
23
23
24
24
# using arm-linux-eabi does not create a shared library
25
- try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi
25
+ try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix= $BUILD_libyaml
26
26
try make
27
27
28
28
try cp -L $BUILD_libyaml /src/.libs/libyaml.so $LIBS_PATH
Original file line number Diff line number Diff line change @@ -85,11 +85,17 @@ public void run(){
85
85
System .loadLibrary ("python2.7" );
86
86
System .loadLibrary ("application" );
87
87
System .loadLibrary ("sdl_main" );
88
- System .loadLibrary ("ctypes" );
88
+ System .loadLibrary ("ctypes" );
89
89
90
90
System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_io.so" );
91
91
System .load (getFilesDir () + "/lib/python2.7/lib-dynload/unicodedata.so" );
92
- System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_ctypes.so" );
92
+ System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_ctypes.so" );
93
+
94
+ try {
95
+ System .loadLibrary ("freetype" );
96
+ System .load (getFilesDir () + "/lib/python2.7/lib-dynload/freetype.so" );
97
+ } catch (UnsatisfiedLinkError e ) {
98
+ }
93
99
94
100
try {
95
101
System .loadLibrary ("sqlite3" );
You can’t perform that action at this time.
0 commit comments