mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 08:46:44 +08:00
parent
d72e1bfb86
commit
e23e363b03
37
conanfile.py
Normal file
37
conanfile.py
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from conans import ConanFile, tools
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
git = tools.Git()
|
||||||
|
try:
|
||||||
|
return git.run("describe --tags --abbrev=0")
|
||||||
|
except:
|
||||||
|
return None
|
||||||
|
|
||||||
|
class ContinuableConan(ConanFile):
|
||||||
|
name = "continuable"
|
||||||
|
version = get_version()
|
||||||
|
license = "MIT"
|
||||||
|
url = "https://github.com/Naios/continuable"
|
||||||
|
author = "Denis Blank (denis.blank@outlook.com)"
|
||||||
|
description = "C++14 asynchronous allocation aware futures"
|
||||||
|
homepage = "https://naios.github.io/continuable/"
|
||||||
|
no_copy_source = True
|
||||||
|
scm = {
|
||||||
|
"type": "git",
|
||||||
|
"url": "auto",
|
||||||
|
"revision": "auto"
|
||||||
|
}
|
||||||
|
|
||||||
|
def package(self):
|
||||||
|
self.copy("LICENSE.txt", "licenses")
|
||||||
|
self.copy("include/*.hpp")
|
||||||
|
self.copy("include/*.inl")
|
||||||
|
|
||||||
|
def package_id(self):
|
||||||
|
self.info.header_only()
|
||||||
|
|
||||||
|
def requirements(self):
|
||||||
|
self.requires("function2/4.0.0@naios/stable")
|
||||||
Loading…
x
Reference in New Issue
Block a user