-
Notifications
You must be signed in to change notification settings - Fork 21
/
conanfile.py
27 lines (20 loc) · 880 Bytes
/
conanfile.py
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
from conans import ConanFile
from conans.tools import download, untargz
import os
class DebugAssert(ConanFile):
name = 'debug_assert'
url = 'https://foonathan.github.io/blog/2016/09/16/assertions.html'
version = '1.3.4'
exports = '*.hpp'
generators = 'cmake'
def source(self):
tar = 'debug_assert-{}.tar.gz'.format(self.version)
url = 'https://github.com/foonathan/debug_assert/archive/v{}.tar.gz'.format(self.version)
download(url, tar)
untargz(tar)
def package(self):
srcdir = 'debug_assert-{}'.format(self.version)
# The header is packaged twice: At include/ (for unqualified #include
# directives) and include/debug_assert/
self.copy('debug_assert.hpp', src=srcdir, dst=os.path.join('include', 'debug_assert'))
self.copy('debug_assert.hpp', src=srcdir, dst='include')