diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-05 04:24:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-05 04:24:59 +0200 |
commit | f0bcf73ba3d51513e20423fe2f72d93c73efc19a (patch) | |
tree | 29d2d715c4ef57979c1d44d9e8716f8929c6b698 /meson.build | |
parent | 2aa81b741c0097652de0b988ed4d5e071b14501c (diff) |
Add meson build
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..59a02e3 --- /dev/null +++ b/meson.build @@ -0,0 +1,43 @@ +project('gsr-overlay', ['cpp'], version : '1.0.0', default_options : ['warning_level=2', 'cpp_std=c++17'], 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/Theme.cpp', + 'src/gui/ScrollablePage.cpp', + 'src/gui/Button.cpp', + 'src/gui/Entry.cpp', + 'src/gui/ComboBox.cpp', + 'src/gui/Page.cpp', + 'src/gui/StaticPage.cpp', + 'src/gui/Widget.cpp', + 'src/gui/List.cpp', + 'src/gui/Utils.cpp', + 'src/gui/DropdownButton.cpp', + 'src/gui/Label.cpp', + 'src/GsrInfo.cpp', + 'src/Process.cpp', + 'src/main.cpp', +] + +mglpp_proj = subproject('mglpp') +mglpp_dep = mglpp_proj.get_variable('mglpp_dep') + +dep = [ + mglpp_dep, +] + +executable( + meson.project_name(), + src, + install : true, + dependencies : dep, +) + +prefix = get_option('prefix') +datadir = get_option('datadir') +install_subdir('images', install_dir : join_paths(prefix, datadir, 'gsr-overlay'))
\ No newline at end of file |