summaryrefslogtreecommitdiffstats
path: root/conanfile.py
diff options
context:
space:
mode:
authorTorfinn Berset <torfinn@bloom-life.com>2019-01-31 13:50:14 +0100
committerTorfinn Berset <torfinn@bloom-life.com>2019-01-31 13:50:14 +0100
commitcd1db241ad15ea61f3e63547d1178476e1b1a0f4 (patch)
treef59278389b5316882783d454328e387bbcc249b3 /conanfile.py
parentMerge pull request #123 from rkeene/invcipher-not-ctr (diff)
downloadtiny-AES-c-cd1db241ad15ea61f3e63547d1178476e1b1a0f4.tar
tiny-AES-c-cd1db241ad15ea61f3e63547d1178476e1b1a0f4.tar.gz
tiny-AES-c-cd1db241ad15ea61f3e63547d1178476e1b1a0f4.tar.bz2
tiny-AES-c-cd1db241ad15ea61f3e63547d1178476e1b1a0f4.tar.lz
tiny-AES-c-cd1db241ad15ea61f3e63547d1178476e1b1a0f4.tar.xz
tiny-AES-c-cd1db241ad15ea61f3e63547d1178476e1b1a0f4.tar.zst
tiny-AES-c-cd1db241ad15ea61f3e63547d1178476e1b1a0f4.zip
Diffstat (limited to '')
-rw-r--r--conanfile.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py
new file mode 100644
index 0000000..019c3cb
--- /dev/null
+++ b/conanfile.py
@@ -0,0 +1,29 @@
+from conans import ConanFile, CMake
+
+
+class TinyAesCConan(ConanFile):
+ name = "tiny-AES-c"
+ version = "1.0.0"
+ license = "MIT"
+ author = "Torfinn Berset <torfinn@bloomlife.com>"
+ url = "https://github.com/kokke/tiny-AES-c"
+ description = "Small portable AES128/192/256 in C"
+ topics = ("encryption", "crypto", "AES")
+ settings = "os", "compiler", "build_type", "arch"
+
+ generators = "cmake"
+ exports_sources = ["CMakeLists.txt", "*.c", '*.h', '*.h']
+
+ def build(self):
+ cmake = CMake(self)
+ cmake.configure()
+ cmake.build()
+
+ def package(self):
+ self.copy("*.h", dst="include")
+ self.copy("*.hpp", dst="include")
+
+ self.copy("*.a", dst="lib", keep_path=False)
+
+ def package_info(self):
+ self.cpp_info.libs = ["tiny-aes"]