2016-03-03 17:22:12 -08:00
|
|
|
%module javaupm_ssd1351
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
%include "typemaps.i"
|
|
|
|
|
%include "stdint.i"
|
|
|
|
|
|
|
|
|
|
%ignore m_map;
|
|
|
|
|
%ignore font;
|
|
|
|
|
|
2016-03-31 16:30:54 -07:00
|
|
|
%include "ssd1351_gfx.h"
|
2016-03-03 17:22:12 -08:00
|
|
|
%{
|
2016-03-31 16:30:54 -07:00
|
|
|
#include "ssd1351_gfx.h"
|
2016-03-03 17:22:12 -08:00
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%include "ssd1351.h"
|
|
|
|
|
%{
|
|
|
|
|
#include "ssd1351.h"
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
|
static {
|
|
|
|
|
try {
|
|
|
|
|
System.loadLibrary("javaupm_ssd1351");
|
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
|
System.exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|