-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
33 lines (27 loc) · 1.02 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from conans import ConanFile, CMake, tools
class TaglibConan(ConanFile):
name = "taglib"
version = "1.11.1"
license = "LGPL"
author = "Julien Graziano [email protected]"
url = "<Package recipe repository url here, for issues about the package>"
description = """
TagLib is a library for reading and editing the metadata of several popular audio formats.
"""
topics = ("ID3v1", "ID3v2")
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = "shared=False"
generators = "cmake"
def source(self):
self.run("git clone https://github.com/taglib/taglib.git")
self.run("cd taglib && git checkout v{}".format(self.version))
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="taglib", defs={
"BUILD_SHARED_LIBS": "ON" if self.options.shared else "OFF"
})
cmake.build()
cmake.install()
def package_info(self):
self.cpp_info.libs = ["tag"]