-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathmeson.build
More file actions
38 lines (33 loc) · 908 Bytes
/
meson.build
File metadata and controls
38 lines (33 loc) · 908 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
project(
'Simplex',
'cpp',
meson_version : '>=1.7.0',
version : configure_file(
capture : true,
command : [
find_program('python', required: true),
meson.project_source_root() / 'get_version.py',
meson.project_source_root(),
find_program('git', native: true, required: true).full_path(),
],
output : 'version.txt',
),
default_options: ['cpp_std=c++20'],
)
maya_build = get_option('maya_build')
python_build = get_option('python_build')
if not maya_build and not python_build
error('No builds requested')
endif
conf_data = configuration_data()
conf_data.set('VCS_TAG', meson.project_version())
subdir('src/simplexlib')
if maya_build
maya_dep = dependency('maya')
maya_name_suffix = maya_dep.get_variable('name_suffix')
maya_version = maya_dep.get_variable('maya_version')
subdir('src/maya')
endif
if python_build
subdir('src/python')
endif