mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-16 19:41:57 +00:00

* Add wavelet_buffer v0.4.0 * Fix for linter * Fix for linter * Fix for linter * Fix fPic * Fix fPic * Fix import * Fix compiler version check * Fix for conan hook * Bump compilers version * Black reformat * Remove build_type set * Move CmakeDeps * Add can_run() * Add test_v1_package * Refactor requirements set * Change msvc compiler version * Change default options * Remove unnecessary deletions * Refactor and fix test_package * Exclude shared linking * Remove rm import * Fix url attribute * Change compiler check shared exclusion * Fix fPIC deletion * Add more validation for cimg options * Fixes for cpp_info, compiler versions, etc
20 lines
540 B
Python
20 lines
540 B
Python
from conans import ConanFile, CMake
|
|
from conan.tools.build import cross_building
|
|
import os
|
|
|
|
|
|
# legacy validation with Conan 1.x
|
|
class TestPackageV1Conan(ConanFile):
|
|
settings = "os", "arch", "compiler", "build_type"
|
|
generators = "cmake", "cmake_find_package_multi"
|
|
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
cmake.configure()
|
|
cmake.build()
|
|
|
|
def test(self):
|
|
if not cross_building(self):
|
|
bin_path = os.path.join("bin", "test_package")
|
|
self.run(bin_path, run_environment=True)
|