[requires]
flac/1.4.3
NoteSimplest use case consuming this recipe and assuming CMake as your local build tool:
If you are a new Conan user, we recommend reading the how to consume packages tutorial.If you need additional assistance, please ask a question in the Conan Center Index repository.
[requires]
flac/1.4.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout
class ExampleRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
def requirements(self):
self.requires("flac/1.4.3")
def layout(self):
cmake_layout(self)
Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):
$ conan install conanfile.txt --build=missing
Useful information to take into account to consume this library:
These are the main declared targets:
flac
flac::flac
libflac => FLAC::FLAC
libflac++ => FLAC::FLAC++
flac.pc
libflac => flac.pc
libflac++ => flac++.pc
A simple use case using the CMake file name and the global target:
# ...
find_package(flac REQUIRED)
# ...
target_link_libraries(YOUR_TARGET flac::flac)
These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the flac
homepage listed above:
#include "FLAC++/all.h"
#include "FLAC++/decoder.h"
#include "FLAC++/encoder.h"
#include "FLAC++/export.h"
#include "FLAC++/metadata.h"
#include "FLAC/all.h"
#include "FLAC/assert.h"
#include "FLAC/callback.h"
#include "FLAC/export.h"
#include "FLAC/format.h"
#include "FLAC/metadata.h"
#include "FLAC/ordinals.h"
#include "FLAC/stream_decoder.h"
#include "FLAC/stream_encoder.h"
#include "share/alloc.h"
#include "share/compat.h"
#include "share/cuesheet.h"
#include "share/endswap.h"
#include "share/file.h"
#include "share/getopt.h"
#include "share/grabbag.h"
#include "share/grabbag/cuesheet.h"
#include "share/grabbag/file.h"
#include "share/grabbag/picture.h"
#include "share/grabbag/replaygain.h"
#include "share/grabbag/seektable.h"
#include "share/macros.h"
#include "share/picture.h"
#include "share/private.h"
#include "share/replaygain.h"
#include "share/replaygain_analysis.h"
#include "share/replaygain_synthesis.h"
#include "share/safe_str.h"
#include "share/seektable.h"
#include "share/utf8.h"
#include "share/win_utf8_io.h"