upm/src/button/javaupm_button.i
Abhishek Malik 81e4eb07bf Fixing build errors
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
2016-09-14 14:09:24 -07:00

22 lines
400 B
OpenEdge ABL

%module javaupm_button
%include "../upm.i"
%apply int {mraa::Edge}
%{
#include "button.hpp"
%}
%include "button.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_button");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}