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
|
# application icon
install_data('../data/poi.svg', install_dir: get_option('datadir') / 'icons/hicolor/scalable/apps')
# firejail profile
install_data('firejail/poi.profile', install_dir: get_option('libdir') / 'smolbote')
# .desktop files
conf = configuration_data({
'exec_poi': get_option('prefix')/get_option('bindir')/get_option('poi'),
'firejail': get_option('firejail'),
'firejail_profile': get_option('prefix')/get_option('libdir')/'smolbote/poi.profile'
})
desktop_files = ['poi.desktop', 'poi_firejail.desktop', 'poi_picksession.desktop']
desktop_dir = get_option('datadir')/'applications'
foreach f : desktop_files
configure_file(input: f + '.in', output: f, configuration: conf, install_dir: desktop_dir)
endforeach
# producing debug symbols
if get_option('crashhandler').enabled()
custom_target('poi-sym',
input: poi_exe,
output: 'poi.sym',
capture: true,
command: [ find_program('dump_syms'), '@INPUT@' ],
build_by_default: false,
# install_dir: symbols/poi/$(head -n1 linux/poi.sym | awk '{ print $(NF-1) }')
)
endif
|