aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build32
1 files changed, 18 insertions, 14 deletions
diff --git a/meson.build b/meson.build
index cdfc095..ee35e06 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gpu-screen-recorder-gtk', ['c', 'cpp'], version : '3.8.0', default_options : ['warning_level=2'])
+project('gpu-screen-recorder-gtk', ['c', 'cpp'], version : '5.7.6', default_options : ['warning_level=2'])
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
if get_option('buildtype') == 'debug'
@@ -8,28 +8,32 @@ elif get_option('buildtype') == 'release'
endif
src = [
- 'src/egl.c',
- 'src/library_loader.c',
+ 'src/global_shortcuts.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)
-
prefix = get_option('prefix')
datadir = get_option('datadir')
-install_data(files('gpu-screen-recorder-gtk.desktop'), install_dir : join_paths(prefix, datadir, 'applications'))
-install_data(files('com.dec05eba.gpu_screen_recorder.appdata.xml'), install_dir : join_paths(prefix, datadir, 'metainfo'))
-install_subdir('icons/hicolor', install_dir : join_paths(prefix, datadir, 'icons'))
+icons_path = join_paths(prefix, datadir, 'icons')
+
+executable('gpu-screen-recorder-gtk',
+ src,
+ dependencies : dep,
+ install : true,
+ cpp_args : [
+ '-DGSR_ICONS_PATH="' + icons_path + '"',
+ '-DGSR_VERSION="' + meson.project_version() + '"'
+ ]
+)
+
+install_data(files('com.dec05eba.gpu_screen_recorder.desktop'), install_dir : join_paths(prefix, datadir, 'applications'))
+install_subdir('icons/hicolor', install_dir : icons_path)
gnome = import('gnome')
-gnome.post_install(gtk_update_icon_cache : true, update_desktop_database : true) \ No newline at end of file
+gnome.post_install(gtk_update_icon_cache : true, update_desktop_database : true)