-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
29 lines (24 loc) · 856 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
28
29
from conans import ConanFile
from conans.tools import download, unzip
import os
VERSION = "0.0.1"
class SanitizersCMakeConan(ConanFile):
name = "sanitizers-cmake"
version = os.environ.get("CONAN_VERSION_OVERRIDE", VERSION)
generators = "cmake"
requires = tuple()
url = "http://github.com/aresnm/sanitizers-cmake"
license = "MIT"
def source(self):
zip_name = "sanitizers-cmake.zip"
download("https://github.com/arsenm/sanitizers-cmake/"
"archive/master.zip"
"".format(version="sanitizers-cmake-" + VERSION),
zip_name)
unzip(zip_name)
os.unlink(zip_name)
def package(self):
self.copy(pattern="Find*.cmake",
dst="",
src=os.path.join("sanitizers-cmake-master"),
keep_path=True)