forked from cjameshuff/rigolutils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
34 lines (27 loc) · 762 Bytes
/
meson.build
File metadata and controls
34 lines (27 loc) · 762 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
project('rigolutils', ['c', 'cpp'], default_options : ['c_std=c99'])
libusb_dep = dependency('libusb-1.0', required: false)
if not libusb_dep.found()
message('Using bundled libusb')
libusb = subproject('libusb')
libusb_dep = libusb.get_variable('libusb_dep')
endif
src = [
'src/freetmc_local.cpp',
]
inc = include_directories('.', 'src')
cc = meson.get_compiler('cpp')
args = ['-w']
enc_arg = '-Wno-error=invalid-source-encoding'
if cc.has_argument(enc_arg)
args += enc_arg
endif
rigolutils_lib = static_library('librigolutils',
sources : src,
name_prefix: 'lib',
include_directories : inc,
cpp_args : args,
dependencies: [libusb_dep]
)
rigolutils_dep = declare_dependency(link_with: rigolutils_lib,
include_directories: inc,
)