Commit c8a28cf1 authored by kenan's avatar kenan

fix lua and libygo

parent 2ef38969
......@@ -56,3 +56,5 @@ libYGOMobile.so
Thumbs.db
output.json
/libcore/.cxx
/libygo/.cxx
......@@ -38,8 +38,8 @@ LOCAL_SRC_FILES := lapi.c \
lundump.c \
lutf8lib.c \
lvm.c \
lzio.c
lzio.c
LOCAL_CFLAGS := -DLUA_USE_POSIX -O2 -Wall -DLUA_COMPAT_5_2 -D"getlocaledecpoint()='.'" -Wno-psabi -fexceptions
LOCAL_CPP_EXTENSION := .c
#LOCAL_CPP_EXTENSION := .c
include $(BUILD_STATIC_LIBRARY)
......@@ -8,9 +8,7 @@
#ifndef INTERPRETER_H_
#define INTERPRETER_H_
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "lua.hpp"
#include "common.h"
#include <unordered_map>
#include <list>
......
apply plugin: 'com.android.library'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
ndk {
moduleName "YGOMobile"
abiFilters "armeabi-v7a"//,"x86"
}
}
externalNativeBuild {
ndkBuild {
path "../libcore/jni/Android.mk"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="cn.garymb.ygomobile.so">
<application />
</manifest>
include ':libcore', ':mobile'
include ':libcore', ':mobile', ':libygo'
//include ':app'
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