54 lines
986 B
Meson
54 lines
986 B
Meson
tag_sources = [
|
|
'Tag.cxx',
|
|
'Builder.cxx',
|
|
'Handler.cxx',
|
|
'Settings.cxx',
|
|
'Config.cxx',
|
|
'ParseName.cxx',
|
|
'Names.c',
|
|
'FixString.cxx',
|
|
'Pool.cxx',
|
|
'Table.cxx',
|
|
'Format.cxx',
|
|
'VorbisComment.cxx',
|
|
'ReplayGain.cxx',
|
|
'MixRamp.cxx',
|
|
'Generic.cxx',
|
|
'Id3MusicBrainz.cxx',
|
|
'ApeLoader.cxx',
|
|
'ApeReplayGain.cxx',
|
|
'ApeTag.cxx',
|
|
]
|
|
|
|
libid3tag_dep = dependency('id3tag', required: get_option('id3tag'))
|
|
conf.set('ENABLE_ID3TAG', libid3tag_dep.found())
|
|
if libid3tag_dep.found()
|
|
tag_sources += [
|
|
'Id3Load.cxx',
|
|
'Id3Scan.cxx',
|
|
'Id3ReplayGain.cxx',
|
|
'Rva2.cxx',
|
|
'Riff.cxx',
|
|
'Aiff.cxx',
|
|
]
|
|
endif
|
|
|
|
chromaprint_dep = dependency('libchromaprint', required: get_option('chromaprint'))
|
|
conf.set('ENABLE_CHROMAPRINT', chromaprint_dep.found())
|
|
|
|
tag = static_library(
|
|
'tag',
|
|
tag_sources,
|
|
include_directories: inc,
|
|
dependencies: [
|
|
libid3tag_dep,
|
|
],
|
|
)
|
|
|
|
tag_dep = declare_dependency(
|
|
link_with: tag,
|
|
dependencies: [
|
|
util_dep,
|
|
],
|
|
)
|