forked from PeterSommerlad/PSsimplesafeint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
29 lines (23 loc) · 953 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
import os
from conans import ConanFile, tools
class PssimplesafeintConan(ConanFile):
name = "pssimplesafeint"
version = "0.1"
license = "MIT license"
author = "Peter Sommerlad peter.cpp@sommerlad.ch"
url = "https://github.com/PeterSommerlad/PSsimplesafeint"
description = "A single header library for integers without UB (but wrapping)"
topics = ("C++", "MISRA-C++ compliance", "Safe C++")
no_copy_source = True
exports_sources = "include/*"
# No settings/options are necessary, this is header only
def source(self):
'''retrieval of the source code here. Remember you can also put the code
in the folder and use exports instead of retrieving it with this
source() method
'''
self.run("git clone https://github.com/PeterSommerlad/PSsimplesafeint.git")
def package(self):
self.copy("*.h")
def package_id(self):
self.info.header_only()