From 2c3545e040f24acdc615ac545d8e51cf485ddc3b Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sun, 16 Jul 2023 20:45:12 +0200 Subject: [PATCH] add meson build --- meson.build | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..0e705c6 --- /dev/null +++ b/meson.build @@ -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, +)