diff options
author | Araq <rumpf_a@web.de> | 2012-09-08 15:39:37 -0700 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-08 15:39:37 -0700 |
commit | 9c63d12cef05709c79ce6d0f6b0cffd0f2243fe7 (patch) | |
tree | 5403ed6c16295dca3cd6f60971e0e40583e64af7 /examples/cross_calculator/android/scripts/jnibuild.sh | |
parent | 4cd795b3eefce8fad3a933848455e677b2e2c67b (diff) | |
parent | f6e7aebbd9a7185b3c45f2734636090c0efd2b2b (diff) | |
download | Nim-9c63d12cef05709c79ce6d0f6b0cffd0f2243fe7.tar.gz |
Merge pull request #199 from gradha/implement_cross_platform_example
Implement cross platform example
Diffstat (limited to 'examples/cross_calculator/android/scripts/jnibuild.sh')
-rwxr-xr-x | examples/cross_calculator/android/scripts/jnibuild.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/cross_calculator/android/scripts/jnibuild.sh b/examples/cross_calculator/android/scripts/jnibuild.sh new file mode 100755 index 000000000..8b61f20f7 --- /dev/null +++ b/examples/cross_calculator/android/scripts/jnibuild.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Force errors to fail script. +set -e + +# If we are running from inside the scripts subdir, get out. +if [ ! -d src ] +then + cd .. +fi + +# Ok, are we out now? +if [ -d src ] +then + javah -classpath bin/classes \ + -o jni/backend-jni.h \ + com.github.nimrod.crosscalculator.CrossCalculator +else + echo "Uh oh, bin/classes directory not found?" + echo "Try compiling your java code, or opening in eclipse." + exit 1 +fi |