+3
-13
@@ -27,8 +27,8 @@ class product_vamp_conan(conan.ConanFile):
|
||||
"cmake/*.cmake",
|
||||
"data/*.json",
|
||||
"data/**/*.json",
|
||||
"data/*.musicxml",
|
||||
"data/**/*.musicxml",
|
||||
"data/*.xml",
|
||||
"data/**/*.xml",
|
||||
"tests/fixtures/*",
|
||||
"tests/fixtures/**/*",
|
||||
"generator/*.py",
|
||||
@@ -59,7 +59,6 @@ class product_vamp_conan(conan.ConanFile):
|
||||
"tools/*.py",
|
||||
"tools/requirements.txt",
|
||||
)
|
||||
|
||||
def requirements(self):
|
||||
self.requires(
|
||||
str(self.python_requires["modulus"].ref),
|
||||
@@ -77,12 +76,7 @@ class product_vamp_conan(conan.ConanFile):
|
||||
"luma/latest",
|
||||
"sonus/latest",
|
||||
):
|
||||
self.requires(
|
||||
reference,
|
||||
transitive_headers=True,
|
||||
transitive_libs=True,
|
||||
)
|
||||
|
||||
self.requires(reference, transitive_headers=True, transitive_libs=True)
|
||||
def generate(self):
|
||||
dependencies = conan.tools.cmake.CMakeDeps(self)
|
||||
dependencies.generate()
|
||||
@@ -91,20 +85,16 @@ class product_vamp_conan(conan.ConanFile):
|
||||
toolchain.user_presets_path = False
|
||||
toolchain.variables["BUILD_TESTING"] = bool(self.options.with_tests)
|
||||
toolchain.generate()
|
||||
|
||||
def build(self):
|
||||
cmake = conan.tools.cmake.CMake(self)
|
||||
cmake.configure()
|
||||
cmake.build()
|
||||
if self.options.with_tests and conan.tools.build.can_run(self):
|
||||
cmake.test(target="check")
|
||||
|
||||
def package_id(self):
|
||||
self.info.options.rm_safe("with_tests")
|
||||
|
||||
def package(self):
|
||||
cmake = conan.tools.cmake.CMake(self)
|
||||
cmake.install()
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.bindirs = ["zero/bin"]
|
||||
|
||||
Reference in New Issue
Block a user