Skip to content

Commit

Permalink
fix hello-jni and derivatives for JNIEXPORT and JNICALL modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ggfan committed Sep 19, 2016
1 parent c6f78d2 commit be388d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hello-jni/app/src/main/cpp/hello-jni.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
* to return a new VM String. See the corresponding Java source
* file located at:
*
* apps/samples/hello-jni/project/src/com/example/hellojni/HelloJni.java
* hello-jni/app/src/main/java/com/example/hellojni/HelloJni.java
*/
jstring
JNIEXPORT jstring JNICALL
Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env,
jobject thiz )
{
Expand Down
4 changes: 2 additions & 2 deletions hello-jniCallback/app/src/main/cpp/hello-jnicallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ TickContext g_ctx;
* to return a new VM String. See the corresponding Java source
* file located at:
*
* apps/samples/hello-jni/project/src/com/example/hellojni/HelloJni.java
* hello-jniCallback/app/src/main/java/com/example/hellojnicallback/MainActivity.java
*/
jstring
JNIEXPORT jstring JNICALL
Java_com_example_hellojnicallback_MainActivity_stringFromJNI( JNIEnv* env, jobject thiz )
{
#if defined(__arm__)
Expand Down
3 changes: 3 additions & 0 deletions hello-libs/gen-libs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ android {
cmake {
arguments '-DANDROID_PLATFORM=android-9',
'-DANDROID_TOOLCHAIN=clang'
// explicitly build libs
targets 'gmath', 'gperf'
}

}
}
buildTypes {
Expand Down

0 comments on commit be388d7

Please sign in to comment.