File: meson.build

package info (click to toggle)
mpd 0.24.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,760 kB
  • sloc: cpp: 75,041; python: 1,408; xml: 628; perl: 469; java: 289; sh: 286; ansic: 235; makefile: 105
file content (22 lines) | stat: -rw-r--r-- 688 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
systemd_unit_conf = configuration_data()
systemd_unit_conf.set('prefix', get_option('prefix'))

address_families = ['AF_INET', 'AF_INET6', 'AF_UNIX']
if get_option('smbclient').enabled()
  # AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
  address_families += 'AF_NETLINK'
endif
systemd_unit_conf.set('address_families', ' '.join(address_families))

systemd_socket_conf = configuration_data()
listen_streams = []
if get_option('local_socket')
  listen_streams += 'ListenStream=%t/mpd/socket'
endif
if get_option('tcp')
  listen_streams += 'ListenStream=6600'
endif
systemd_socket_conf.set('listen_streams', '\n'.join(listen_streams))

subdir('system')
subdir('user')