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 install
to speed up)
(Native part test)
$ ctest
after make.$ ctest -V
for more datailed results.
(Java part)
- Install JDK 8 or later.
- Build tool is
Gradle
but it will be automatically downloaded bygradlew
command. Of course you can use your own Gradle installed. - cd to
/java
dir in this repository. $ ./gradlew app
to start a sample application. (GUI needed)
(Java part test)
$ ./gradlew test
to test the native and java library. If failed, check the native build and install results.
- Install Android Studio.
- Open SDK Manager and install
CMake
andNDK
. Open an existing Android Studio project
orFile
Open
.- Select
/android
dir in this repository. Make
Make project
.app
dir is a sample application project.Run
Run 'app'
to run.