File: jni.cc

package info (click to toggle)
bazel-bootstrap 3.5.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 82,232 kB
  • sloc: java: 699,320; sh: 50,568; cpp: 34,885; python: 11,961; xml: 295; objc: 269; ansic: 106; makefile: 95; ruby: 3
file content (10 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#include <jni.h>

#include "examples/android/java/bazel/jni_dep.h"

const char* hello = "Hello JNI";

extern "C" JNIEXPORT jstring JNICALL
Java_bazel_Jni_hello(JNIEnv *env, jclass clazz) {
  return NewStringLatin1(env, hello);
}