-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmeson.build
49 lines (37 loc) · 1.17 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
project('pi-peps','cpp','c',
default_options : ['cpp_std=c++14',
'buildtype=release',
'warning_level=3'],
version: '1.0')
# useful variables
project_name = meson.project_name()
project_version = meson.project_version()
short_name = 'pi-peps'
include_dirs = []
source_files = []
deps = []
# everything related to header files:
# - where to look for them (populating variable include_dirs)
# - list which headers should be installed
subdir('include')
# populate the variable source_files
subdir('src')
# deal with bundled dependencies
subdir('bundled')
# dependencies and configurations
# populate the variable deps with all the dependencies
subdir('meson')
our_lib = library(project_name,
source_files,
dependencies: deps,
include_directories: include_dirs,
version: project_version,
install: true)
our_lib_dep = declare_dependency(dependencies: deps,
link_with: our_lib,
include_directories: include_dirs)
subdir('examples')
if get_option('enable-tests')
subdir('tests')
endif
subdir('pkgconfig')