forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#14871) [sail] Bump to 0.9.0-rc2, migrate to Conan V2
* Added libjpeg-turbo option * Use SAIL_ENABLE_CODECS * [sail] Update to 0.9.0-rc1 * [sail] Fix linter errors * [sail] Migrate to new CMake * [sail] Use apply_conandata_patches * [sail] Update libwebp 1.2.2 -> 1.2.3 * [sail] Fix libjpeg-turbo target name * [sail] Remove unused imports * [sail] Refactor libjpeg-turbo usage * [sail] Added missing self * [sail] Use copy from CMake tools * [sail] Remove root CMakeLists and generators * [sail] Update avif rc1 patch * [sail] Remove CONFIG * [sail] Disable pre23 for testing * [sail] Disable AVIF for testing * Workaroud Windows SDK bug * Update to RC2 * Bump versions * Remove pre23 patch * V1 test suite * Update RC1 to RC2 in config.yml * Added missing CMakeDeps * Enable AVIF * Update recipes/sail/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/sail/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/sail/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/sail/all/test_v1_package/CMakeLists.txt Co-authored-by: Uilian Ries <uilianries@gmail.com> * Use self.options.rm_safe("fPIC") * Fix typo * Delete test_package.c * Delete test_package.cpp * Try workaround for check_c_source_compiles * Test * Try workaround for check_c_source_compiles for Windows only * Use str() * Update libavif version Co-authored-by: Uilian Ries <uilianries@gmail.com>
- Loading branch information
1 parent
13a65b1
commit e347e82
Showing
13 changed files
with
131 additions
and
99 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
sources: | ||
"0.9.0-pre23": | ||
url: "https://github.com/smoked-herring/sail/archive/v0.9.0-pre23.tar.gz" | ||
sha256: "6c5314561fda3d388b4653e7424cdf2ae2c65767e79203576804ca41fc930a6b" | ||
"0.9.0-rc2": | ||
url: "https://github.com/smoked-herring/sail/archive/v0.9.0-rc2.tar.gz" | ||
sha256: "988d318fd4cfbc77ccbda49f4ac751d1998b990db157aef32b0dbd32d11f8fd6" | ||
patches: | ||
"0.9.0-pre23": | ||
- patch_file: "patches/0.9.0-pre23-avif-find-package.patch" | ||
base_path: "src" | ||
"0.9.0-rc2": | ||
- patch_file: "patches/0.9.0-rc2-avif-find-package.patch" | ||
patch_type: "conan" | ||
patch_description: "Make the AVIF codec use find_package()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...tches/0.9.0-pre23-avif-find-package.patch → ...patches/0.9.0-rc2-avif-find-package.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
from conan import ConanFile | ||
from conan.tools.build import can_run | ||
from conan.tools.cmake import CMake, cmake_layout | ||
import os | ||
|
||
from conans import ConanFile, CMake, tools | ||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "cmake", "cmake_find_package", "cmake_find_package_multi" | ||
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv" | ||
test_type = "explicit" | ||
|
||
def requirements(self): | ||
self.requires(self.tested_reference_str) | ||
|
||
def layout(self): | ||
cmake_layout(self) | ||
|
||
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_c") | ||
self.run(bin_path, run_environment=True) | ||
if can_run(self): | ||
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package_c") | ||
self.run(bin_path, env="conanrun") | ||
|
||
bin_path = os.path.join("bin", "test_package_cxx") | ||
self.run(bin_path, run_environment=True) | ||
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package_cxx") | ||
self.run(bin_path, env="conanrun") |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package C CXX) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/ | ||
${CMAKE_CURRENT_BINARY_DIR}/test_package/) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
|
||
from conans import ConanFile, CMake, tools | ||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "cmake", "cmake_find_package", "cmake_find_package_multi" | ||
|
||
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_c") | ||
self.run(bin_path, run_environment=True) | ||
|
||
bin_path = os.path.join("bin", "test_package_cxx") | ||
self.run(bin_path, run_environment=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
versions: | ||
"0.9.0-pre23": | ||
"0.9.0-rc2": | ||
folder: all |