Files
conan-center-index/recipes/dav1d/all/test_package/conanfile.py
theirix 8f5161a8ae (#9854) [package] dav1d/1.0.0
* Add version 1.0.0

* Use helpers from conan v2 package

* Require Conan older than 1.46.0

* Remove option with_avx512 for dav1d 1.0.0
2022-05-17 09:44:44 +02:00

19 lines
460 B
Python

from conan import ConanFile
from conans import CMake, tools
import os
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)