-
Notifications
You must be signed in to change notification settings - Fork 48
/
meson.build
30 lines (26 loc) · 977 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
project('split-monitor-workspaces', 'cpp',
version: '1.2.0',
default_options: ['buildtype=release'],
)
cpp_compiler = meson.get_compiler('cpp')
if cpp_compiler.has_argument('-std=c++23')
add_global_arguments('-std=c++23', language: 'cpp')
elif cpp_compiler.has_argument('-std=c++2b')
add_global_arguments('-std=c++2b', language: 'cpp')
else
error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)')
endif
add_global_arguments('-DWLR_USE_UNSTABLE', language: 'cpp')
add_global_arguments('-fno-gnu-unique', language: 'cpp')
globber = run_command('find', './src', '-name', '*.cpp', check: true)
src = globber.stdout().strip().split('\n')
include = include_directories('include')
shared_module(meson.project_name(), src,
dependencies: [
dependency('hyprland'),
dependency('pixman-1'),
dependency('libdrm'),
],
include_directories: include,
install: true,
)