• John Regan's avatar
    flac encoder: enable Ogg FLAC and Ogg chaining · 87fa6bca
    John Regan authored
    refactors GenerateOggSerial into a generic GenerateSerial
    utility, under the util lib.
    
    libFLAC may be encoded without Ogg support. If Ogg support is disabled,
    libFLAC will still export Ogg-related methods (like setting a serial
    number), and throw a runtime error when initializing an Ogg stream.
    
    GenerateOggSerial does not depend on libogg. Refactoring it into
    a generic GenerateSerial prevents having to add build-time checks
    for libogg within the FLAC encoder plugin.
    87fa6bca
meson.build 729 Bytes
util = static_library(
  'util',
  'Exception.cxx',
  'Alloc.cxx',
  'UTF8.cxx',
  'HexFormat.cxx',
  'MimeType.cxx',
  'NumberParser.cxx',
  'StringView.cxx',
  'TruncateString.cxx',
  'StringStrip.cxx',
  'StringUtil.cxx',
  'StringCompare.cxx',
  'WStringCompare.cxx',
  'DivideString.cxx',
  'SplitString.cxx',
  'FormatString.cxx',
  'Tokenizer.cxx',
  'UriExtract.cxx',
  'UriQueryParser.cxx',
  'UriRelative.cxx',
  'UriUtil.cxx',
  'LazyRandomEngine.cxx',
  'HugeAllocator.cxx',
  'PeakBuffer.cxx',
  'PrintException.cxx',
  'SparseBuffer.cxx',
  'OptionParser.cxx',
  'ByteReverse.cxx',
  'format.c',
  'BitReverse.cxx',
  'Serial.cxx',
  include_directories: inc,
)

util_dep = declare_dependency(
  link_with: util,
)