mirror of
https://github.com/Trensa-Organization/split-monitor-workspaces.git
synced 2025-03-15 03:03:39 +01:00
add meson build
This commit is contained in:
parent
ad1966a2b6
commit
2c3545e040
1 changed files with 29 additions and 0 deletions
29
meson.build
Normal file
29
meson.build
Normal file
|
@ -0,0 +1,29 @@
|
|||
project('split-monitor-workspaces', 'cpp',
|
||||
version: '0.1',
|
||||
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')
|
||||
|
||||
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,
|
||||
)
|
Loading…
Add table
Reference in a new issue