diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-06-19 23:17:58 +0200 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-06-19 23:17:58 +0200 |
| commit | 1af3d14f3f995645a0de08a54b244c19840709e9 (patch) | |
| tree | 3c4098863d8a8fd004a2acc8912a23b6036ab4dd /csrc/meson.build | |
| parent | 40efcf60a5f39674b5137f11de7bcfe37fb121b5 (diff) | |
init hs project
Diffstat (limited to 'csrc/meson.build')
| -rw-r--r-- | csrc/meson.build | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/csrc/meson.build b/csrc/meson.build new file mode 100644 index 0000000..b9383fb --- /dev/null +++ b/csrc/meson.build @@ -0,0 +1,74 @@ +foobar_sources = files( + 'application.c', + 'utils.c', + 'panel.c', + 'launcher.c', + 'launcher-item.c', + 'control-center.c', + 'notification-area.c', +) +foobar_tests = {} + +subdir('dbus') +subdir('services') +subdir('widgets') + +c_args = [ + '-Wall', + '-Werror', + '-Wswitch-enum', + '-Wswitch-default', + '-Wunused', + '-Wuninitialized', +] + +deps = [ + glib_dep, + gio_dep, + gio_unix_dep, + gtk_dep, + json_dep, + gmp_dep, + nm_dep, + m_dep, + layershell_dep, + gvc_dep, +] + +libfoobar = static_library( + meson.project_name(), + foobar_sources, + include_directories: include_directories('.'), + dependencies: deps, + install: false, + c_args: c_args +) + +libfoobar_dep = declare_dependency( + link_with: libfoobar, + include_directories: include_directories('.'), + dependencies: deps, +) + +executable( + meson.project_name(), + 'main.c', + styles_resource, + icons_resource, + dependencies: [ libfoobar_dep ], + install: true, + c_args: c_args +) + +if mutest_dep.found() + foreach name, sources : foobar_tests + test( + name, + executable( + 'foobar-test-' + name, + sources, + dependencies: [ libfoobar_dep, mutest_dep ], + ), + ) + endforeach +endif |
