Java and Android porting of native Lua
https://yappy.github.io/ajlua/
Official: https://www.lua.org/manual/5.3/
Unofficial Japanese: http://milkpot.sakura.ne.jp/lua/lua53_manual_ja.html
(Native part)
- Install CMake and C/C++ build tools. (make, gcc, g++, or clang, etc.)
- Create cmake build directory and cd to it.
build/will be ignored by git. e.g.$ mkdir build; cd build - CMake configure the
native/dir in this repository. e.g.$ cmake ../native $ make install($ make -j installto speed up)
(Native part test)
$ ctestafter make.$ ctest -Vfor more datailed results.
(Java part)
- Install JDK 8 or later.
- Build tool is
Gradlebut it will be automatically downloaded bygradlewcommand. Of course you can use your own Gradle installed. - cd to
/javadir in this repository. $ ./gradlew appto start a sample application. (GUI needed)
(Java part test)
$ ./gradlew testto test the native and java library. If failed, check the native build and install results.
- Install Android Studio.
- Open SDK Manager and install
CMakeandNDK. Open an existing Android Studio projectorFileOpen.- Select
/androiddir in this repository. MakeMake project.appdir is a sample application project.RunRun 'app'to run.