Skip to content

Commit

Permalink
push out the LuaJava sources to submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Ildar Mulyukov committed Jun 19, 2020
1 parent b820895 commit d5b9694
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 6,414 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
path = app/src/main/jni/lua/lua
url = https://github.com/ildar/lua
branch = branch-5.1
[submodule "luajava/luajava"]
path = luajava/luajava
url = https://github.com/ildar/luajava
branch = stevedonovan_mkottman
1 change: 0 additions & 1 deletion app/src/main/jni/luajava

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../../app/src/main/jni/lua/lua
LOCAL_C_INCLUDES += $(LOCAL_PATH)/c
LOCAL_MODULE := luajava
LOCAL_SRC_FILES := luajava.c
LOCAL_SRC_FILES := c/luajava.c
LOCAL_STATIC_LIBRARIES := liblua
# LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog

Expand Down
1 change: 1 addition & 0 deletions app/src/main/jni/luajava/c
File renamed without changes.
12 changes: 9 additions & 3 deletions luajava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,28 @@ android {
}
}
*/
sourceSets { main { jni.srcDirs = [] } }
sourceSets {
main {
jni.srcDirs = []
java.srcDirs = ['luajava/src']
manifest.srcFile './AndroidManifest.xml'
}
}
}

task gen_luajava_h {
doLast {
exec {
commandLine 'javah',
'-o', 'src/main/jni/luajava/luajava.h',
'-o', 'luajava/src/c/luajava.h',
'-classpath', "build/intermediates/javac/debug/compileDebugJavaWithJavac/classes",
'org.keplerproject.luajava.LuaState'
}
}
}

tasks.whenTaskAdded { task ->
if (task.name == 'externalNativeBuildDebug') {
if (task.name == 'compileDebugNdk') {
task.dependsOn( gen_luajava_h )
} else if (task.name == 'compileDebugJavaWithJavac') {
gen_luajava_h.dependsOn(task)
Expand Down
1 change: 1 addition & 0 deletions luajava/luajava
Submodule luajava added at d5cc01
71 changes: 0 additions & 71 deletions luajava/src/main/java/org/keplerproject/luajava/CPtr.java

This file was deleted.

103 changes: 0 additions & 103 deletions luajava/src/main/java/org/keplerproject/luajava/Console.java

This file was deleted.

86 changes: 0 additions & 86 deletions luajava/src/main/java/org/keplerproject/luajava/JavaFunction.java

This file was deleted.

59 changes: 0 additions & 59 deletions luajava/src/main/java/org/keplerproject/luajava/LuaException.java

This file was deleted.

Loading

0 comments on commit d5b9694

Please sign in to comment.