|
@@ -1,4 +1,5 @@
|
|
|
from conans import ConanFile, CMake, tools
|
|
|
+import os
|
|
|
|
|
|
|
|
|
class LibOggConan(ConanFile):
|
|
@@ -17,17 +18,15 @@ class LibOggConan(ConanFile):
|
|
|
default_options = {"shared": False}
|
|
|
generators = "cmake"
|
|
|
|
|
|
+ @property
|
|
|
+ def subfolder(self):
|
|
|
+ return os.path.join(self.source_folder, f"libogg-{self.version}")
|
|
|
+
|
|
|
def source(self):
|
|
|
- self.run("git clone https://github.com/conan-io/hello.git")
|
|
|
- # This small hack might be useful to guarantee proper /MT /MD linkage
|
|
|
- # in MSVC if the packaged project doesn't have variables to set it
|
|
|
- # properly
|
|
|
- tools.replace_in_file("hello/CMakeLists.txt", "PROJECT(HelloWorld)",
|
|
|
- '''PROJECT(HelloWorld)
|
|
|
-include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
|
|
-conan_basic_setup()''')
|
|
|
+ tools.get(**self.conan_data["sources"][self.version])
|
|
|
|
|
|
def configure(self):
|
|
|
+ del self.settings.compiler.cppstd
|
|
|
del self.settings.compiler.libcxx
|
|
|
|
|
|
def build(self):
|