java_interfaces: Moved ifdefs for swig version

Moved the SWIG version check from each sensor library .i file to
the base SWIG .i file (per interface).  This cleans up the number
of #if SWIG_VERSION's across the code base, and will make cleanup
of these easier at a later date.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2017-03-03 10:24:26 -08:00
parent cfb4105dd8
commit 51a181a14f
19 changed files with 39 additions and 44 deletions

View File

@ -1,16 +1,9 @@
%module javaupm_bmp280
%include "../upm.i"
#if SWIG_VERSION >= 0x030009
%include "../interfaces/javaupm_iTemperatureSensor.i"
%include "../interfaces/javaupm_iHumiditySensor.i"
%include "../interfaces/javaupm_iPressureSensor.i"
#else
%include "iModuleStatus.hpp"
%include "iTemperatureSensor.hpp"
%include "iPressureSensor.hpp"
%include "iHumiditySensor.hpp"
#endif
%include "cpointer.i"
%include "typemaps.i"