Skip to content

Commit

Permalink
fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
onecoolx committed Feb 16, 2016
1 parent 60741bb commit 1b1d223
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 234 deletions.
229 changes: 0 additions & 229 deletions INSTALL

This file was deleted.

8 changes: 4 additions & 4 deletions android/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/$(SOURCE_PATH)/src/ \
$(LOCAL_PATH)/$(SOURCE_PATH)/src/include/ \
$(LOCAL_PATH)/$(SOURCE_PATH)/src/gfx/ \
$(LOCAL_PATH)/$(SOURCE_PATH)/src/gfx/include/ \
$(LOCAL_PATH)/$(SOURCE_PATH)/src/simd/

LOCAL_SRC_FILES := \
$(SOURCE_PATH)/src/core/curve.cpp \
$(SOURCE_PATH)/src/core/clipper.cpp \
$(SOURCE_PATH)/src/core/device.cpp \
$(SOURCE_PATH)/src/core/graphic_path.cpp \
$(SOURCE_PATH)/src/gfx/gfx_device.cpp \
Expand All @@ -36,7 +36,6 @@ LOCAL_SRC_FILES := \
$(SOURCE_PATH)/src/picasso_canvas.cpp \
$(SOURCE_PATH)/src/picasso_font_api.cpp \
$(SOURCE_PATH)/src/picasso_font.cpp \
$(SOURCE_PATH)/src/picasso_gpc.cpp \
$(SOURCE_PATH)/src/picasso_gradient_api.cpp \
$(SOURCE_PATH)/src/picasso_gradient.cpp \
$(SOURCE_PATH)/src/picasso_image.cpp \
Expand All @@ -58,7 +57,7 @@ LOCAL_CPPFLAGS := -DEXPORT=1 -DNDEBUG=1 -D__ANDROID__=1 \

LOCAL_CFLAGS := $(LOCAL_CPPFLAGS)

LOCAL_LDLIBS := \
LOCAL_STATIC_LIBRARIES := \
$(LOCAL_PATH)/$(SOURCE_PATH)/android/freetype/obj/local/armeabi/libft2.a \
$(LOCAL_PATH)/$(SOURCE_PATH)/android/expat/obj/local/armeabi/libexpat.a

Expand All @@ -85,9 +84,10 @@ LOCAL_CFLAGS := $(LOCAL_CPPFLAGS)
LOCAL_SRC_FILES := test_android.cpp \
$(SOURCE_PATH)/test/alpha_func.c


LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM

LOCAL_STATIC_LIBRARIES := android_native_app_glue picasso
LOCAL_STATIC_LIBRARIES := android_native_app_glue

LOCAL_LDFLAGS := \
$(LOCAL_PATH)/$(SOURCE_PATH)/android/obj/local/armeabi/libpicasso.a \
Expand Down
13 changes: 13 additions & 0 deletions android/jni/test_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@ static void engine_handle_cmd(struct android_app* app, int32_t cmd)

}

static int __argc = 0;
static const char** __argv = NULL;

int argc(void)
{
return __argc;
}

const char** argv(void)
{
return __argv;
}

/**
* This is the main entry point of a native application that is using
* android_native_app_glue. It runs in its own thread, with its own
Expand Down
2 changes: 2 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

touch ./INSTALL

echo n | libtoolize --copy --force
aclocal
autoconf
Expand Down
2 changes: 1 addition & 1 deletion build_android.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

export NDK_ROOT=/d/android-ndk-r8b-windows/android-ndk-r8b
export NDK_ROOT=/d/android-ndk-r10b

export PROJECT_ROOT=`pwd`

Expand Down

0 comments on commit 1b1d223

Please sign in to comment.