Skip to content

Commit

Permalink
MMDevice/MMCore: Export SWIG include dir for Meson
Browse files Browse the repository at this point in the history
This is required for pymmcore and MMCoreJ Meson build to get the include
directories to pass to SWIG, due to the lack of direct SWIG support in
Meson.
  • Loading branch information
marktsuchida committed Jan 22, 2024
1 parent 6857bb2 commit d5ea2cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MMCore/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,8 @@ mmcore = declare_dependency(
link_with: mmcore_lib,
dependencies: mmdevice_dep,
)

# For providing include dir to SWIG when using this project as a subproject
swig_include_dirs = mmdevice_proj.get_variable('swig_include_dirs') + [
meson.current_source_dir(),
]
3 changes: 3 additions & 0 deletions MMDevice/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ mmdevice = declare_dependency(
include_directories: mmdevice_include_dir,
link_with: mmdevice_lib,
)

# For providing include dir to SWIG when using this project as a subproject
swig_include_dirs = [meson.current_source_dir()]

0 comments on commit d5ea2cf

Please sign in to comment.