diff options
author | Jaeseung Ha <ipknhama@gmail.com> | 2017-09-18 00:43:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-18 00:43:42 +0900 |
commit | 08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e (patch) | |
tree | 77aa4aa0f2cbfd139dc3194a3cf113ed2100454f /conanfile.py | |
parent | e40605da59e368be524dee0e9e9d41ef05149473 (diff) | |
parent | 194a9ef6812e3d5476419e33be2756ab69fc0696 (diff) | |
download | crow-08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e.tar.gz crow-08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e.zip |
Merge branch 'master' into master
Diffstat (limited to 'conanfile.py')
-rw-r--r-- | conanfile.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 0000000..1f7546a --- /dev/null +++ b/conanfile.py @@ -0,0 +1,28 @@ +from conans import ConanFile, CMake + + +class CrowConan(ConanFile): + name = "Crow" + version = "0.1" + url = "https://github.com/ipkn/crow" + license = "MIT; see https://github.com/ipkn/crow/blob/master/LICENSE" + generators = "cmake" + settings = "os", "compiler", "build_type", "arch" + + requires = (("Boost/1.60.0@lasote/stable"), + ("OpenSSL/1.0.2i@lasote/stable")) + + # No exports necessary + + def source(self): + # this will create a hello subfolder, take it into account + self.run("git clone https://github.com/ipkn/crow.git") + + def build(self): + cmake = CMake(self.settings) + self.run('cmake %s/crow %s' % (self.conanfile_directory, cmake.command_line)) + self.run("cmake --build . %s" % cmake.build_config) + self.run("make") + + def package(self): + self.copy("*.h", dst="include", src="amalgamate") |