diff options
author | Araq <rumpf_a@web.de> | 2018-09-03 18:29:00 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-03 18:29:11 +0200 |
commit | 320582a55c9ba1f91d70a3f120413e305fda2962 (patch) | |
tree | 6114d47a5342adfd4d1f472bb3484a73ad11cf06 /examples/cross_calculator/android/readme.txt | |
parent | 1a60ffcf1dc265c6b92dfd757e1bfd5e904c1f3d (diff) | |
download | Nim-320582a55c9ba1f91d70a3f120413e305fda2962.tar.gz |
cleanup Nim's examples/ directory; closes #7725
Diffstat (limited to 'examples/cross_calculator/android/readme.txt')
-rw-r--r-- | examples/cross_calculator/android/readme.txt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/cross_calculator/android/readme.txt b/examples/cross_calculator/android/readme.txt deleted file mode 100644 index 96bd403ca..000000000 --- a/examples/cross_calculator/android/readme.txt +++ /dev/null @@ -1,24 +0,0 @@ -In this directory you will find the Android platform cross-calculator sample. - -Due to the nature of Android being java and Nim generating C code, the build -process is slightly more complex because jni code has to be written to bridge -both languages. In a distant future it may be possible for Nim to generate -the whole jni bridge, but for the moment this is manual work. - -For the jni bridge to work first the java code is compiled with the Nim code -just declared as a native method which will be resolved at runtime. The scripts -nimbuild.sh and jnibuild.sh are in charge of building the Nim code and -generating the jni bridge from the java code respectively. Finally, the -ndk-build command from the android ndk tools has to be run to build the binary -library which will be installed along the final apk. - -All these steps are wrapped in the ant build script through the customization -of the -post-compile rule. If you have the android ndk tools installed and you -modify scripts/nimbuild.sh to point to the directory where you have Nim -installed on your system, you can simply run "ant debug" to build everything. - -Once the apk is built you can install it on your device or emulator with the -command "adb install bin/CrossCalculator-debug.apk". - -This example runs against the Android level 3 API, meaning devices from -Android 1.5 and above should be able to run the generated binary. |