-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
39 lines (30 loc) · 1.09 KB
/
conanfile.py
File metadata and controls
39 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMakeToolchain, CMakeDeps, CMake
class hash23(ConanFile):
name = "hash23"
version = "1.5"
license = "MIT"
author = "Rene Windegger <rene@windegger.wtf>"
url = "https://github.com/rwindegger/hash23"
description = "This library contains various hashing algorithms written in modern C++."
topics = ("hashing", "hash", "sha512", "sha512-hash", "sha2-512")
settings = "os", "compiler", "build_type", "arch"
exports_sources = ( "CMakeLists.txt", "include/*", "tests/*", "cmake/*" )
def layout(self):
cmake_layout(self)
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def requirements(self):
requirements = self.conan_data.get('requirements', [])
for requirement in requirements:
self.requires(requirement)