meson.build 1.12 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
generate_parse_name = executable(
  'GenParseName',
  'GenParseName.cxx',
  'Names.c',
  native: true,
)

parse_name_cxx = custom_target(
  'RunGenParseName',
  output: ['ParseName2.cxx'],
  command : [
    generate_parse_name, '@OUTPUT@',
  ],
)

16 17 18 19 20 21 22
tag_sources = [
  'Tag.cxx',
  'Builder.cxx',
  'Handler.cxx',
  'Settings.cxx',
  'Config.cxx',
  'ParseName.cxx',
23
  parse_name_cxx,
24 25 26 27 28 29 30 31 32 33
  'Names.c',
  'FixString.cxx',
  'Pool.cxx',
  'Table.cxx',
  'Format.cxx',
  'VorbisComment.cxx',
  'ReplayGain.cxx',
  'MixRamp.cxx',
  'Generic.cxx',
  'Id3MusicBrainz.cxx',
34
  'Id3Picture.cxx',
35 36 37 38 39 40 41 42 43 44 45
  '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',
46
    'Id3ReplayGain.cxx',
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    'Rva2.cxx',
    'Riff.cxx',
    'Aiff.cxx',
  ]
endif

tag = static_library(
  'tag',
  tag_sources,
  include_directories: inc,
  dependencies: [
    libid3tag_dep,
  ],
)

tag_dep = declare_dependency(
  link_with: tag,
  dependencies: [
65
    time_dep,
66 67 68
    util_dep,
  ],
)