2016-08-25 13:54:49 -06:00
|
|
|
%module javaupm_nmea_gps
|
2016-08-24 13:24:30 -06:00
|
|
|
%include "../upm.i"
|
|
|
|
|
%include "std_string.i"
|
|
|
|
|
%include "typemaps.i"
|
|
|
|
|
|
2016-08-25 13:54:49 -06:00
|
|
|
%include "nmea_gps.hpp"
|
2016-08-24 13:24:30 -06:00
|
|
|
%{
|
2016-08-25 13:54:49 -06:00
|
|
|
#include "nmea_gps.hpp"
|
2016-08-24 13:24:30 -06:00
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
|
static {
|
|
|
|
|
try {
|
2016-08-25 13:54:49 -06:00
|
|
|
System.loadLibrary("javaupm_nmea_gps");
|
2016-08-24 13:24:30 -06:00
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
|
System.exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|