1libaudcore_inc = include_directories('.')
2
3
4libaudcore_sources = [
5  'adder.cc',
6  'archive_reader.cc',
7  'art.cc',
8  'art-search.cc',
9  'audio.cc',
10  'audstrings.cc',
11  'charset.cc',
12  'config.cc',
13  'cue-cache.cc',
14  'drct.cc',
15  'effect.cc',
16  'equalizer.cc',
17  'equalizer-preset.cc',
18  'eventqueue.cc',
19  'fft.cc',
20  'history.cc',
21  'hook.cc',
22  'index.cc',
23  'inifile.cc',
24  'interface.cc',
25  'list.cc',
26  'logger.cc',
27  'mainloop.cc',
28  'multihash.cc',
29  'output.cc',
30  'parse.cc',
31  'playback.cc',
32  'playlist.cc',
33  'playlist-cache.cc',
34  'playlist-data.cc',
35  'playlist-files.cc',
36  'playlist-utils.cc',
37  'plugin-init.cc',
38  'plugin-load.cc',
39  'plugin-registry.cc',
40  'preferences.cc',
41  'probe.cc',
42  'probe-buffer.cc',
43  'ringbuf.cc',
44  'runtime.cc',
45  'scanner.cc',
46  'stringbuf.cc',
47  'strpool.cc',
48  'threads.cc',
49  'tinylock.cc',
50  'timer.cc',
51  'tuple.cc',
52  'tuple-compiler.cc',
53  'util.cc',
54  'vfs.cc',
55  'vfs_async.cc',
56  'vfs_local.cc',
57  'vis-runner.cc',
58  'visualization.cc'
59]
60
61
62libaudcore_headers = [
63  'archive_reader.h',
64  'audstrings.h',
65  'drct.h',
66  'equalizer.h',
67  'export.h',
68  'hook.h',
69  'i18n.h',
70  'index.h',
71  'inifile.h',
72  'interface.h',
73  'list.h',
74  'mainloop.h',
75  'multihash.h',
76  'objects.h',
77  'playlist.h',
78  'plugin.h',
79  'plugins.h',
80  'preferences.h',
81  'probe.h',
82  'ringbuf.h',
83  'runtime.h',
84  'templates.h',
85  'tinylock.h',
86  'threads.h',
87  'tuple.h',
88  'visualizer.h',
89  'vfs.h',
90  'vfs_async.h'
91]
92
93
94audio_h = configure_file(input: 'audio.h.in',
95  output: 'audio.h',
96  configuration: conf,
97  install_dir: join_paths(get_option('includedir'), 'libaudcore'))
98
99
100libaudcore_deps = [glib_dep, gmodule_dep]
101
102if get_option('qt')
103  libaudcore_deps += [qt_dep]
104endif
105
106
107if get_option('gtk')
108  libaudcore_deps += [gtk_dep]
109endif
110
111
112if get_option('libarchive')
113  libaudcore_deps += [libarchive_dep]
114endif
115
116
117if cc.has_function('iconv')
118  iconv_dep = []
119else
120  iconv_dep = cc.find_library('iconv', required: true)
121endif
122
123libaudcore_deps += [iconv_dep]
124
125
126libaudcore_lib = library('audcore',
127  libaudcore_sources,
128  cpp_args: ['-DLIBAUDCORE_BUILD'],
129  include_directories: src_inc,
130  dependencies: libaudcore_deps,
131  link_with: libguess_lib,
132  version: '5.3.0',
133  soversion: '5',
134  install: true
135)
136
137
138install_headers(libaudcore_headers, subdir: 'libaudcore')
139