aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: d9eaa1623a68350706aff94c2da4ce91d74bcadd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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)

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'))

gnome = import('gnome')
gnome.post_install(gtk_update_icon_cache : true, update_desktop_database : true)