From 94592c14062d5afc9482d11baa401648082022c0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Dec 2017 17:12:55 +0100 Subject: build with Meson instead of autotools So long, autotools! This is my last MPD related project to migrate away from it. It has its strengths, but also very obvious weaknesses and weirdnesses. Today, many of its quirks are not needed anymore, and are cumbersome and slow. Now welcome our new Meson overlords! --- systemd/meson.build | 5 +++++ systemd/system/meson.build | 16 ++++++++++++++++ systemd/user/meson.build | 11 +++++++++++ 3 files changed, 32 insertions(+) create mode 100644 systemd/meson.build create mode 100644 systemd/system/meson.build create mode 100644 systemd/user/meson.build (limited to 'systemd') diff --git a/systemd/meson.build b/systemd/meson.build new file mode 100644 index 000000000..b74d76e6c --- /dev/null +++ b/systemd/meson.build @@ -0,0 +1,5 @@ +systemd_unit_conf = configuration_data() +systemd_unit_conf.set('prefix', get_option('prefix')) + +subdir('system') +subdir('user') diff --git a/systemd/system/meson.build b/systemd/system/meson.build new file mode 100644 index 000000000..96e6a219b --- /dev/null +++ b/systemd/system/meson.build @@ -0,0 +1,16 @@ +systemd_system_unit_dir = get_option('systemd_system_unit_dir') +if systemd_system_unit_dir == '' + systemd_system_unit_dir = join_paths(get_option('prefix'), 'lib', 'systemd', 'system') +endif + +install_data( + 'mpd.socket', + install_dir: systemd_system_unit_dir, +) + +configure_file( + input: 'mpd.service.in', + output: 'mpd.service', + configuration: systemd_unit_conf, + install_dir: systemd_system_unit_dir, +) diff --git a/systemd/user/meson.build b/systemd/user/meson.build new file mode 100644 index 000000000..b1e94b14f --- /dev/null +++ b/systemd/user/meson.build @@ -0,0 +1,11 @@ +systemd_user_unit_dir = get_option('systemd_user_unit_dir') +if systemd_user_unit_dir == '' + systemd_user_unit_dir = join_paths(get_option('prefix'), 'lib', 'systemd', 'user') +endif + +configure_file( + input: 'mpd.service.in', + output: 'mpd.service', + configuration: systemd_unit_conf, + install_dir: systemd_user_unit_dir, +) -- cgit v1.2.3