summaryrefslogtreecommitdiff
path: root/src/libaudcore/meson.build
blob: 9c04bb3460a86e13c7a6876897367e4225083987 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
libaudcore_inc = include_directories('.')


libaudcore_sources = [
  'adder.cc',
  'art.cc',
  'art-search.cc',
  'audio.cc',
  'audstrings.cc',
  'charset.cc',
  'config.cc',
  'cue-cache.cc',
  'drct.cc',
  'effect.cc',
  'equalizer.cc',
  'equalizer-preset.cc',
  'eventqueue.cc',
  'fft.cc',
  'history.cc',
  'hook.cc',
  'index.cc',
  'inifile.cc',
  'interface.cc',
  'list.cc',
  'logger.cc',
  'mainloop.cc',
  'multihash.cc',
  'output.cc',
  'parse.cc',
  'playback.cc',
  'playlist.cc',
  'playlist-cache.cc',
  'playlist-data.cc',
  'playlist-files.cc',
  'playlist-utils.cc',
  'plugin-init.cc',
  'plugin-load.cc',
  'plugin-registry.cc',
  'preferences.cc',
  'probe.cc',
  'probe-buffer.cc',
  'ringbuf.cc',
  'runtime.cc',
  'scanner.cc',
  'stringbuf.cc',
  'strpool.cc',
  'tinylock.cc',
  'timer.cc',
  'tuple.cc',
  'tuple-compiler.cc',
  'util.cc',
  'vfs.cc',
  'vfs_async.cc',
  'vfs_local.cc',
  'vis-runner.cc',
  'visualization.cc'
]


libaudcore_headers = [
  'audstrings.h',
  'drct.h',
  'equalizer.h',
  'export.h',
  'hook.h',
  'i18n.h',
  'index.h',
  'inifile.h',
  'interface.h',
  'list.h',
  'mainloop.h',
  'multihash.h',
  'objects.h',
  'playlist.h',
  'plugin.h',
  'plugins.h',
  'preferences.h',
  'probe.h',
  'ringbuf.h',
  'runtime.h',
  'templates.h',
  'tinylock.h',
  'threads.h',
  'tuple.h',
  'visualizer.h',
  'vfs.h',
  'vfs_async.h'
]


audio_h = configure_file(input: 'audio.h.in',
  output: 'audio.h',
  configuration: conf,
  install: true,
  install_dir: join_paths(get_option('includedir'), 'libaudcore'))


libaudcore_deps = [glib_dep, gmodule_dep]

if get_option('qt')
  libaudcore_deps += [qt_dep]
endif


if cc.has_function('iconv')
  iconv_dep = []
else
  iconv_dep = cc.find_library('iconv', required: true)
endif

libaudcore_deps += [iconv_dep]


libaudcore_lib = library('audcore',
  libaudcore_sources,
  cpp_args: ['-DLIBAUDCORE_BUILD'],
  include_directories: src_inc,
  dependencies: libaudcore_deps,
  link_with: libguess_lib,
  version: '5.1.0',
  soversion: '5',
  install: true
)


install_headers(libaudcore_headers, subdir: 'libaudcore')