2016-11-19 10:35:49 +00:00
|
|
|
from conans import ConanFile, CMake
|
|
|
|
|
2016-11-20 21:43:34 +00:00
|
|
|
|
2016-11-19 10:35:49 +00:00
|
|
|
class CrowConan(ConanFile):
|
|
|
|
name = "Crow"
|
|
|
|
version = "0.1"
|
2016-11-19 10:40:17 +00:00
|
|
|
url = "https://github.com/javierjeronimo/crow"
|
|
|
|
license = "see https://github.com/ipkn/crow/blob/master/LICENSE"
|
2016-11-19 11:00:26 +00:00
|
|
|
generators = "cmake"
|
2016-11-20 21:40:47 +00:00
|
|
|
settings = "os", "compiler", "build_type", "arch"
|
2016-11-19 11:07:14 +00:00
|
|
|
|
|
|
|
requires = (("Boost/1.60.0@lasote/stable"),
|
|
|
|
("OpenSSL/1.0.2i@lasote/stable"))
|
2016-11-20 21:43:34 +00:00
|
|
|
|
2016-11-19 10:35:49 +00:00
|
|
|
# No exports necessary
|
|
|
|
|
|
|
|
def source(self):
|
|
|
|
# this will create a hello subfolder, take it into account
|
|
|
|
self.run("git clone https://github.com/javierjeronimo/crow.git")
|
|
|
|
|
|
|
|
def build(self):
|
|
|
|
cmake = CMake(self.settings)
|
2016-11-20 21:43:34 +00:00
|
|
|
self.run('cmake %s/crow %s' % (self.conanfile_directory, cmake.command_line))
|
|
|
|
self.run("cmake --build . %s" % cmake.build_config)
|
|
|
|
self.run("make")
|
|
|
|
|
2016-11-20 21:47:14 +00:00
|
|
|
def package(self):
|
|
|
|
self.copy("*.h", dst="include", src="amalgamate")
|