-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
37 lines (28 loc) · 699 Bytes
/
meson.build
File metadata and controls
37 lines (28 loc) · 699 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
project('roomba', 'c',
version : '1.0.0',
license : 'GPLv3')
cc = meson.get_compiler('c')
lib_wolfssl = cc.find_library('libwolfssl',
dirs : ['/usr/local/lib/'])
lib_wolfmqtt = cc.find_library('libwolfmqtt',
dirs : ['/usr/local/lib'])
lib_json = dependency('json-c', method: 'pkg-config')
add_project_arguments('-Wno-unused-variable', language : 'c')
inc = include_directories('include')
subdir('include')
sources = [
'src/libroomba.c',
'src/mqtt.c'
]
libroomba = shared_library(
meson.project_name(),
sources,
include_directories : inc,
dependencies: [
lib_wolfssl,
lib_wolfmqtt,
lib_json
],
install: true
)
subdir('examples')