-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
32 lines (23 loc) · 835 Bytes
/
meson.build
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
project('microlog', 'c',
version : files('version'),
license : 'MIT',
default_options : ['warning_level=3'])
# ========================
# Library
# ========================
public_include = ['include']
src = [ 'src/ulog.c' ]
lib = static_library(meson.project_name(),
src,
include_directories : public_include,
install : true,
install_dir: meson.project_name() + '/lib',
)
install_subdir(public_include,
install_dir: meson.project_name())
# ========================
# Dependency
# ========================
ulog_dep = declare_dependency(link_with : lib,
include_directories : public_include)
meson.override_dependency(meson.project_name(), ulog_dep)