conanfile.py 890 B

12345678910111213141516171819202122232425262728
  1. from conans import ConanFile, CMake
  2. class CrowConan(ConanFile):
  3. name = "Crow"
  4. version = "0.1"
  5. url = "https://github.com/ipkn/crow"
  6. license = "MIT; see https://github.com/ipkn/crow/blob/master/LICENSE"
  7. generators = "cmake"
  8. settings = "os", "compiler", "build_type", "arch"
  9. requires = (("Boost/1.60.0@lasote/stable"),
  10. ("OpenSSL/1.0.2i@lasote/stable"))
  11. # No exports necessary
  12. def source(self):
  13. # this will create a hello subfolder, take it into account
  14. self.run("git clone https://github.com/ipkn/crow.git")
  15. def build(self):
  16. cmake = CMake(self.settings)
  17. self.run('cmake %s/crow %s' % (self.conanfile_directory, cmake.command_line))
  18. self.run("cmake --build . %s" % cmake.build_config)
  19. self.run("make")
  20. def package(self):
  21. self.copy("*.h", dst="include", src="amalgamate")