-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae821d0
commit 0478ea2
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
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,17 +1,19 @@ | ||
from conan import ConanFile | ||
import shutil | ||
|
||
class ApngasmRecipe(ConanFile): | ||
settings = 'os', 'compiler', 'build_type', 'arch' | ||
|
||
def requirements(self): | ||
self.requires("zlib/1.2.13") | ||
self.requires("libpng/1.6.40") | ||
self.requires("boost/1.73.0") | ||
self.requires("boost/1.69.0") | ||
self.generators = ['CMakeToolchain', 'CMakeDeps'] | ||
|
||
def build_requirements(self): | ||
# https://stackoverflow.com/questions/42123509/cmake-finds-boost-but-the-imported-targets-not-available-for-boost-version | ||
self.tool_requires("cmake/[>=3.27]") | ||
self.build_requires("b2/4.5.0") | ||
if not shutil.which('cmake'): | ||
self.tool_requires("cmake/[>=3.27]") | ||
|
||
def build(self): | ||
build_type = 'Release' |