diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-05 03:33:40 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-05 03:33:40 +0200 |
commit | 29950f9eddf803031d9158273e9280e177f109c8 (patch) | |
tree | 3ac26b8f3db35f0af160d41d44f5ce67c8dad755 /meson.build | |
parent | 857488e91b588e73d46948988ffce18ed9cb59fc (diff) |
Add meson build
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..90fa050 --- /dev/null +++ b/meson.build @@ -0,0 +1,26 @@ +project('gsr-notify', ['cpp'], version : '1.0.0', default_options : ['warning_level=2'], subproject_dir : 'depends') + +if get_option('buildtype') == 'debug' + add_project_arguments('-g3', language : ['cpp']) +elif get_option('buildtype') == 'release' + add_project_arguments('-DNDEBUG', language : ['cpp']) +endif + +src = [ + 'src/main.cpp', +] + +mglpp_proj = subproject('mglpp') +mglpp_dep = mglpp_proj.get_variable('mglpp_dep') + +dep = [ + mglpp_dep, + dependency('xfixes'), +] + +executable( + meson.project_name(), + src, + install : true, + dependencies : dep, +)
\ No newline at end of file |