diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-06-11 21:22:51 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-06-11 21:22:51 +0200 |
commit | f1cc116af11d5f334609330dac6d3d22fa6ecee9 (patch) | |
tree | 9002c6e6a18d8fe4c6aa6687f2a068fbf28cbaff /meson.build | |
parent | 5710cb1662d02432c68ce287624b3eadaa122d76 (diff) |
Convert build script to meson
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..2a84f30 --- /dev/null +++ b/meson.build @@ -0,0 +1,44 @@ +project('gpu-screen-recorder-gtk', ['c', 'cpp'], version : '3.8.0', default_options : ['warning_level=2']) + +add_project_arguments('-Wshadow', language : ['c', 'cpp']) +if get_option('buildtype') == 'debug' + add_project_arguments('-g3', language : ['c', 'cpp']) +elif get_option('buildtype') == 'release' + add_project_arguments('-DNDEBUG', language : ['c', 'cpp']) +endif + +src = [ + 'src/egl.c', + 'src/library_loader.c', + 'src/main.cpp', +] +dep = [ + dependency('gtk+-3.0'), + dependency('x11'), + dependency('xrandr'), + dependency('libpulse'), + dependency('libdrm'), + dependency('wayland-egl'), + dependency('wayland-client'), + dependency('ayatana-appindicator3-0.1'), +] + +executable('gpu-screen-recorder-gtk', src, dependencies : dep, install : true) + +install_data('gpu-screen-recorder-gtk.desktop', install_dir : '/usr/share/applications') +install_data('com.dec05eba.gpu_screen_recorder.appdata.xml', install_dir : '/usr/share/metainfo') + +install_data('icons/hicolor/32x32/status/com.dec05eba.gpu_screen_recorder.tray-idle.png', install_dir : '/usr/share/icons/hicolor/32x32/status') +install_data('icons/hicolor/32x32/status/com.dec05eba.gpu_screen_recorder.tray-recording.png', install_dir : '/usr/share/icons/hicolor/32x32/status') +install_data('icons/hicolor/32x32/status/com.dec05eba.gpu_screen_recorder.tray-paused.png', install_dir : '/usr/share/icons/hicolor/32x32/status') +install_data('icons/hicolor/32x32/apps/com.dec05eba.gpu_screen_recorder.png', install_dir : '/usr/share/icons/hicolor/32x32/apps') + +install_data('icons/hicolor/64x64/status/com.dec05eba.gpu_screen_recorder.tray-idle.png', install_dir : '/usr/share/icons/hicolor/64x64/status') +install_data('icons/hicolor/64x64/status/com.dec05eba.gpu_screen_recorder.tray-recording.png', install_dir : '/usr/share/icons/hicolor/64x64/status') +install_data('icons/hicolor/64x64/status/com.dec05eba.gpu_screen_recorder.tray-paused.png', install_dir : '/usr/share/icons/hicolor/64x64/status') +install_data('icons/hicolor/64x64/apps/com.dec05eba.gpu_screen_recorder.png', install_dir : '/usr/share/icons/hicolor/64x64/apps') + +install_data('icons/hicolor/128x128/status/com.dec05eba.gpu_screen_recorder.tray-idle.png', install_dir : '/usr/share/icons/hicolor/128x128/status') +install_data('icons/hicolor/128x128/status/com.dec05eba.gpu_screen_recorder.tray-recording.png', install_dir : '/usr/share/icons/hicolor/128x128/status') +install_data('icons/hicolor/128x128/status/com.dec05eba.gpu_screen_recorder.tray-paused.png', install_dir : '/usr/share/icons/hicolor/128x128/status') +install_data('icons/hicolor/128x128/apps/com.dec05eba.gpu_screen_recorder.png', install_dir : '/usr/share/icons/hicolor/128x128/apps') |