Setup native build for Windows Java.

Still need to do Mac & Linux
This commit is contained in:
Grant Limberg 2015-04-30 21:50:28 -07:00
parent 75d7137025
commit 0a15eae00f
4 changed files with 118 additions and 5 deletions

View file

@ -1,5 +1,6 @@
#ifndef ZT1_jniutils_h_
#define ZT1_jniutils_h_
#include <stdio.h>
#include <jni.h>
#include <ZeroTierOne.h>
@ -15,9 +16,9 @@ extern "C" {
#define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__))
#else
#define LOGI(...)
#define LOGD(...)
#define LOGE(...)
#define LOGI(...) fprintf(stdout, __VA_ARGS__)
#define LOGD(...) fprintf(stdout, __VA_ARGS__)
#define LOGE(...) fprintf(stdout, __VA_ARGS__)
#endif
jobject createResultObject(JNIEnv *env, ZT1_ResultCode code);