From 23a7f3baa33265519840609dc54e950615ec39b1 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 3 Jan 2020 18:04:08 +0200 Subject: Merge some QoL improvements from staging branch - Build executable in top-level buildroot - Use meson sourceset - Pull in poi-crash and poi-update from staging - Remove extraneous scripts in tools/ - Pull in configure scripts in scripts/ --- linux/meson.build | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 linux/meson.build (limited to 'linux/meson.build') diff --git a/linux/meson.build b/linux/meson.build new file mode 100644 index 0000000..5b5c79e --- /dev/null +++ b/linux/meson.build @@ -0,0 +1,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 + -- cgit v1.2.1