aboutsummaryrefslogtreecommitdiffstats
path: root/conanfile.py
diff options
context:
space:
mode:
authorJavier Jerónimo Suárez <jcjeronimo@genexies.net>2016-11-19 11:35:49 +0100
committerJavier Jerónimo Suárez <jcjeronimo@genexies.net>2016-11-19 11:35:49 +0100
commitbcf943b9b19552465c2482652444178152799cb4 (patch)
treed6390e20fdc9ef15bde553ea12894d849c6aae05 /conanfile.py
parent990a8a34d090db2754d5004d0f793ea149fcd330 (diff)
downloadcrow-bcf943b9b19552465c2482652444178152799cb4.tar.gz
crow-bcf943b9b19552465c2482652444178152799cb4.zip
Trying to add support for conan.io
Diffstat (limited to 'conanfile.py')
-rw-r--r--conanfile.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py
new file mode 100644
index 0000000..416ffd1
--- /dev/null
+++ b/conanfile.py
@@ -0,0 +1,23 @@
+from conans import ConanFile, CMake
+
+class CrowConan(ConanFile):
+ name = "Crow"
+ version = "0.1"
+ settings = "os", "compiler", "build_type", "arch"
+ # 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)
+ self.run("cmake . %s" % cmake.build_config)
+ self.run("make")
+
+ def package(self):
+ self.copy("*.h", dst="include", src="amalgamate")
+
+ def package_info(self):
+ self.cpp_info.libs = ["crow"]
+