|
@@ -13,21 +13,24 @@ class LibFlacConan(ConanFile):
|
|
homepage = "https://xiph.org/flac/"
|
|
homepage = "https://xiph.org/flac/"
|
|
topics = ("media", "audio", "lossless", "xiph.org")
|
|
topics = ("media", "audio", "lossless", "xiph.org")
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
- options = {"shared": [True, False]}
|
|
|
|
- default_options = {"shared": False}
|
|
|
|
- generators = "cmake"
|
|
|
|
|
|
+ options = {"shared": [True, False], "fPIC": [True, False]}
|
|
|
|
+ default_options = {"shared": True, "fPIC": True}
|
|
|
|
|
|
@property
|
|
@property
|
|
def subfolder(self):
|
|
def subfolder(self):
|
|
return os.path.join(self.source_folder, f"flac-{self.version}")
|
|
return os.path.join(self.source_folder, f"flac-{self.version}")
|
|
|
|
|
|
- def source(self):
|
|
|
|
- tools.get(**self.conan_data["sources"][self.version])
|
|
|
|
|
|
+ def config_options(self):
|
|
|
|
+ if self.settings.os == "Windows":
|
|
|
|
+ self.options.remove("fPIC")
|
|
|
|
|
|
def configure(self):
|
|
def configure(self):
|
|
del self.settings.compiler.cppstd
|
|
del self.settings.compiler.cppstd
|
|
del self.settings.compiler.libcxx
|
|
del self.settings.compiler.libcxx
|
|
|
|
|
|
|
|
+ def source(self):
|
|
|
|
+ tools.get(**self.conan_data["sources"][self.version])
|
|
|
|
+
|
|
def build(self):
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
cmake = CMake(self)
|
|
cmake.configure(source_folder="hello")
|
|
cmake.configure(source_folder="hello")
|