Added bindings for iAcceleration sensors
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
f992876461
commit
b6e53f7da8
@@ -263,10 +263,21 @@ function (_get_current_dot_i_file filePrefix varDotIFile)
|
||||
# Set up Java bindings
|
||||
string(APPEND JAVA_TYPEMAPS "%typemap(javaimports) SWIGTYPE %{\n")
|
||||
string(APPEND JAVA_TYPEMAPS "import upm_new_interfaces.*;\n%}")
|
||||
if (CMAKE_VERSION VERSION_LESS "3.3" )
|
||||
list (FIND module_iface "iAcceleration.hpp" _index)
|
||||
if (${_index} GREATER -1)
|
||||
set(JAVA_TYPEMAPS "%typemap(javaimports) SWIGTYPE %{\nimport upm_new_interfaces.*;\n\nimport java.util.AbstractList;\nimport java.lang.Float;\n%}\n")
|
||||
endif()
|
||||
else()
|
||||
cmake_policy(SET CMP0057 NEW)
|
||||
if ("iAcceleration.hpp" IN_LIST module_iface)
|
||||
set(JAVA_TYPEMAPS "%typemap(javaimports) SWIGTYPE %{\nimport upm_new_interfaces.*;\n\nimport java.util.AbstractList;\nimport java.lang.Float;\n%}\n")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
# Write the interface file
|
||||
configure_file (${PROJECT_SOURCE_DIR}/src/swigme.i.in "${${varDotIFile}}" @ONLY)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
set(${varDotIFile} "${${varDotIFile}}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user