Make Android compile from scratch again

parent bc05e031
......@@ -53,7 +53,7 @@ ac_cv_file___arch_368_disasm_fs=yes
ac_cv_func_dlopen=yes
ac_cv_lib_ltdl_lt_dlinit=no
ac_export_dynamic=no
HOSTCC="gcc -m32"
HOSTCC="gcc -m32 -D__ANDROID_API__=19"
GNU_LIBTOOL="i686-linux-android-libtool"
LIBTOOL="i686-linux-android-libtool"
build_libcc_named=build-libcc-named
......
......@@ -53,7 +53,7 @@ ac_cv_file___arch_amd64_disasm_fs=yes
ac_cv_func_dlopen=yes
ac_cv_lib_ltdl_lt_dlinit=no
ac_export_dynamic=no
HOSTCC="gcc -m64"
HOSTCC="gcc -m64 -D__ANDROID_API__=21"
GNU_LIBTOOL="x86_64-linux-android-libtool"
LIBTOOL="x86_64-linux-android-libtool"
build_libcc_named=build-libcc-named
......
......@@ -109,6 +109,7 @@ done
if [ "$1" != "--no-gforthgz" ]
then
mkdir -p build/debian/sdcard/gforth/$machine/gforth/site-forth
(cd build
if [ "$1" != "--no-config" ]
then
......@@ -128,7 +129,6 @@ then
CONFIG=no; shift
fi
mkdir -p build/debian/sdcard/gforth/$machine/gforth/site-forth
mkdir -p res/raw
cp *.{fs,fi,png,jpg} build/debian/sdcard/gforth/$machine/gforth/site-forth
(cd build/debian/sdcard
......
......@@ -70,7 +70,7 @@ ac_cv_file___arch_arm_disasm_fs=yes
ac_cv_func_dlopen=yes
ac_cv_lib_ltdl_lt_dlinit=no
ac_export_dynamic=no
HOSTCC="gcc -m32"
HOSTCC="gcc -m32 -D__ANDROID_API__=19"
GNU_LIBTOOL="arm-linux-androideabi-libtool --tag=CC"
LIBTOOL="arm-linux-androideabi-libtool --tag=CC"
build_libcc_named=build-libcc-named
......
......@@ -16,6 +16,7 @@
\ You should have received a copy of the GNU General Public License
\ along with this program. If not, see http://www.gnu.org/licenses/.
0 to infile-id
." load terminal-server" cr stdout flush-file throw
require ansi.fs
require unix/terminal-server.fs
......
......@@ -53,7 +53,7 @@ ac_cv_file___arch_arm64_disasm_fs=yes
ac_cv_func_dlopen=yes
ac_cv_lib_ltdl_lt_dlinit=no
ac_export_dynamic=no
HOSTCC="gcc -m64"
HOSTCC="gcc -m64 -D__ANDROID_API__=21"
GNU_LIBTOOL="aarch64-linux-android-libtool"
LIBTOOL="aarch64-linux-android-libtool"
build_libcc_named=build-libcc-named
......
......@@ -53,7 +53,7 @@ ac_cv_file___arch_mips_disasm_fs=yes
ac_cv_func_dlopen=yes
ac_cv_lib_ltdl_lt_dlinit=no
ac_export_dynamic=no
HOSTCC="gcc -m32 -D_MIPS_SZLONG=32"
HOSTCC="gcc -m32 -D_MIPS_SZLONG=32 -D__ANDROID_API__=19"
GNU_LIBTOOL=mipsel-linux-android-libtool
LIBTOOL=mipsel-linux-android-libtool
build_libcc_named=build-libcc-named
......
......@@ -8,6 +8,10 @@
#include <android/native_window_jni.h>
#include <android/native_activity.h>
#include <android/looper.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
#define __ANDROID__
......
......@@ -3,6 +3,10 @@
%insert("include")
%{
#include <EGL/egl.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
%apply int { EGLint };
......
......@@ -3,6 +3,10 @@
%insert("include")
%{
#include <freetype-gl.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
%apply short { wchar_t };
......
......@@ -4,6 +4,10 @@
%{
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
#define const
%apply float { GLfloat, GLclampf };
......
......@@ -4,6 +4,10 @@
%{
#include <GLES3/gl3.h>
#include <GLES3/gl3ext.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
#define const
%apply float { GLfloat, GLclampf };
......
......@@ -5,6 +5,10 @@
#define JNINativeInterface_ JNINativeInterface
#define JNIInvokeInterface_ JNIInvokeInterface
#include <jni.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
// #define SWIG_FORTH_OPTIONS ""
......
......@@ -4,6 +4,10 @@
#include <OMXAL/OpenMAXAL_Platform.h>
#include <OMXAL/OpenMAXAL.h>
#include <OMXAL/OpenMAXAL_Android.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
#define __ANDROID__
......
......@@ -3,6 +3,10 @@
%insert("include")
%{
#include <SOIL/SOIL.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
%apply SWIGTYPE * { unsigned char const *const };
......
......@@ -3,6 +3,10 @@
%insert("include")
%{
#include <SOIL2.h>
#ifdef __gnu_linux__
#undef stderr
extern struct _IO_FILE *stderr;
#endif
%}
%apply SWIGTYPE * { unsigned char const *const };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment