mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-12 17:43:04 +00:00

* 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
19 lines
460 B
Python
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)
|