2jciebu01: fix base class and build dependencies

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2019-04-11 04:57:12 +00:00
parent 2a948ca687
commit 2b6f2c5b53
15 changed files with 20 additions and 23 deletions

@ -1,10 +0,0 @@
if (TINYB_FOUND)
set (libname "2jciebu01-ble")
set (libdescription "Omron BLE Environment Sensor")
set (module_src "2jciebu01_ble.cxx")
set (module_hpp "2jciebu01_ble.hpp")
set (reqlibname "libtinyb")
upm_module_init(2jciebu01-usb ${TINYB_LIBRARIES})
target_include_directories(${libname} PUBLIC ${TINYB_INCLUDE_DIRS})
endif()

@ -1,5 +0,0 @@
set (libname "2jciebu01-usb")
set (libdescription "Omron USB Environment Sensor")
set (module_src "2jciebu01_usb.cxx" "2jciebu01.cxx")
set (module_hpp "2jciebu01_usb.hpp" "2jciebu01.hpp")
upm_module_init(mraa)

@ -1,5 +1,5 @@
#ifdef SWIGPYTHON
%module (package="upm") 2jciebu01_ble
%module (package="upm") om2jciebu01_ble
#endif
%include "../common_top.i"
@ -10,13 +10,12 @@ JAVA_JNI_LOADLIBRARY(javaupm_2jciebu01_ble)
#endif
/* END Java syntax */
%import "2jciebu01.hpp"
/* BEGIN Common SWIG syntax ------------------------------------------------- */
%{
#include "2jciebu01_ble.hpp"
#include "2jciebu01.hpp"
%}
%include "2jciebu01_ble.hpp"
%include "2jciebu01.hpp"
/* END Common SWIG syntax */

@ -0,0 +1,8 @@
if (TINYB_FOUND)
set (libname "2jciebu01_ble")
set (libdescription "Omron BLE Environment Sensor")
set (module_src "${libname}.cxx")
set (module_hpp "${libname}.hpp")
upm_module_init(tinyb 2jciebu01_usb)
endif()

@ -1,5 +1,5 @@
#ifdef SWIGPYTHON
%module (package="upm") 2jciebu01_usb
%module (package="upm") om2jciebu01_usb
#endif
%include "../common_top.i"
@ -12,11 +12,10 @@ JAVA_JNI_LOADLIBRARY(javaupm_2jciebu01_usb)
/* BEGIN Common SWIG syntax ------------------------------------------------- */
%{
#include "2jciebu01_usb.hpp"
#include "2jciebu01.hpp"
#include "2jciebu01_usb.hpp"
%}
%include "2jciebu01_usb.hpp"
%include "2jciebu01.hpp"
%include "2jciebu01_usb.hpp"
/* END Common SWIG syntax */

@ -0,0 +1,5 @@
set (libname "2jciebu01_usb")
set (libdescription "Omron USB Environment Sensor")
set (module_src "${libname}.cxx" "2jciebu01.cxx")
set (module_hpp "${libname}.hpp" "2jciebu01.hpp")
upm_module_init(mraa)

@ -0,0 +1 @@
2jciebu01_ble