-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathmeson.build
More file actions
38 lines (31 loc) · 793 Bytes
/
meson.build
File metadata and controls
38 lines (31 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This Meson script is experimental and potentially incomplete. It is not part
# of the supported build system for Micro-Manager or mmCoreAndDevices (yet).
project(
'mmdev-DemoCamera',
'cpp',
meson_version: '>= 1.8.3',
default_options: [
'cpp_std=c++14',
'warning_level=3',
],
)
cxx = meson.get_compiler('cpp')
if cxx.get_id() in ['msvc', 'clang-cl']
add_project_arguments('-DNOMINMAX', language: 'cpp')
endif
mmdevice_dep = dependency('mmdevice')
winmm_lib = cxx.find_library('Winmm', required: false)
sources = [
'DemoCamera.cpp',
]
shared_module(
'DemoCamera',
sources,
dependencies: [
mmdevice_dep,
winmm_lib,
],
gnu_symbol_visibility: 'inlineshidden',
name_prefix: '',
name_suffix: 'mmdev',
)