Skip to content

Commit

Permalink
Remove WITH_MATLAB_BINDINGS_API defines
Browse files Browse the repository at this point in the history
WITH_MATLAB_BINDINGS_API is not used anymore since the functions are
part of iio.h now and the CMake does not use these variables anymore.

Also remove the reference to the directory, since it is not used
anymore in ./bindings/CMakeLists.txt

Signed-off-by: Travis F. Collins <[email protected]>
Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
tfcollins authored and rgetz committed May 8, 2020
1 parent 098285c commit b968f81
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,8 @@ endif()

option(CSHARP_BINDINGS "Install C# bindings" OFF)
option(PYTHON_BINDINGS "Install Python bindings" OFF)
option(MATLAB_BINDINGS "Build MATLAB bindings" OFF)
add_subdirectory(bindings)

if (WITH_MATLAB_BINDINGS_API)
list(APPEND LIBIIO_EXTRA_HEADERS bindings/matlab/iio-wrapper.h)
endif()

option(WITH_MAN "Generate on-line reference manuals (man pages)" OFF)
add_subdirectory(man)

Expand Down
4 changes: 0 additions & 4 deletions bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ if (CSHARP_BINDINGS)
add_subdirectory(csharp)
endif()

if (MATLAB_BINDINGS)
add_subdirectory(matlab)
endif()

if (PYTHON_BINDINGS)
add_subdirectory(python)
endif()
3 changes: 0 additions & 3 deletions scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ void iio_scan_context_destroy(struct iio_scan_context *ctx)
free(ctx);
}

#ifdef WITH_MATLAB_BINDINGS_API

struct iio_scan_block {
struct iio_scan_context *ctx;
struct iio_context_info **info;
Expand Down Expand Up @@ -233,4 +231,3 @@ void iio_scan_block_destroy(struct iio_scan_block *blk)
iio_scan_context_destroy(blk->ctx);
free(blk);
}
#endif

0 comments on commit b968f81

Please sign in to comment.