summaryrefslogtreecommitdiffstats
path: root/spa/plugins/support/meson.build
blob: 1672d38df91c5b940fe55530a2a3d44fdb344d87 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
spa_support_sources = [
  'cpu.c',
  'logger.c',
  'log-patterns.c',
  'loop.c',
  'node-driver.c',
  'null-audio-sink.c',
  'plugin.c',
  'system.c'
]

simd_cargs = []

if have_sse
  simd_cargs += [sse_args, '-DHAVE_SSE']
endif

spa_support_lib = shared_library('spa-support',
  spa_support_sources,
  c_args : [ simd_cargs ],
  dependencies : [ spa_dep, pthread_lib, epoll_shim_dep ],
  install : true,
  install_dir : spa_plugindir / 'support')
spa_support_dep = declare_dependency(link_with: spa_support_lib)

if get_option('evl').allowed()
  evl_inc = include_directories('/usr/evl/include')
  evl_lib = cc.find_library('evl',
                            dirs: ['/usr/evl/lib/'],
                            required: get_option('evl'))

  spa_evl_sources = ['evl-system.c', 'evl-plugin.c']

  spa_evl_lib = shared_library('spa-evl',
    spa_evl_sources,
    include_directories : [ evl_inc],
    dependencies : [ spa_dep, pthread_lib, evl_lib ],
    install : true,
    install_dir : spa_plugindir / 'support')
endif

if dbus_dep.found()
  spa_dbus_sources = ['dbus.c']

  spa_dbus_lib = shared_library('spa-dbus',
    spa_dbus_sources,
    dependencies : [ spa_dep, dbus_dep ],
    install : true,
    install_dir : spa_plugindir / 'support')
  spa_dbus_dep = declare_dependency(link_with: spa_dbus_lib)
else
  spa_dbus_dep = declare_dependency()
endif


if systemd_dep.found()
  spa_journal_sources = [
    'journal.c',
    'log-patterns.c',
  ]

  spa_journal_lib = shared_library('spa-journal',
    spa_journal_sources,
    dependencies : [ spa_dep, systemd_dep ],
    install : true,
    install_dir : spa_plugindir / 'support')
  spa_journal_dep = declare_dependency(link_with: spa_journal_lib)
else
  spa_journal_dep = declare_dependency()
endif