diff options
author | Torfinn Berset <torfinn@bloom-life.com> | 2019-01-31 14:25:36 +0100 |
---|---|---|
committer | Torfinn Berset <torfinn@bloom-life.com> | 2019-01-31 14:25:36 +0100 |
commit | 8f778c3d8854bc392bcac5067eb979be7f206882 (patch) | |
tree | 9fc079f5359a6d097ac688c3ce532d86c0837be8 | |
parent | Also try to compile C++ version of test (diff) | |
download | tiny-AES-c-8f778c3d8854bc392bcac5067eb979be7f206882.tar tiny-AES-c-8f778c3d8854bc392bcac5067eb979be7f206882.tar.gz tiny-AES-c-8f778c3d8854bc392bcac5067eb979be7f206882.tar.bz2 tiny-AES-c-8f778c3d8854bc392bcac5067eb979be7f206882.tar.lz tiny-AES-c-8f778c3d8854bc392bcac5067eb979be7f206882.tar.xz tiny-AES-c-8f778c3d8854bc392bcac5067eb979be7f206882.tar.zst tiny-AES-c-8f778c3d8854bc392bcac5067eb979be7f206882.zip |
Diffstat (limited to '')
-rw-r--r-- | conanfile.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/conanfile.py b/conanfile.py index 20023bd..2baa361 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,4 +1,5 @@ from conans import ConanFile, CMake +from conans.errors import ConanException class TinyAesCConan(ConanFile): @@ -40,11 +41,15 @@ class TinyAesCConan(ConanFile): "AES128": True, "AES192": False, "AES256": False, - "CBC": False, - "ECB": False, - "CTR": False + "CBC": True, + "ECB": True, + "CTR": True } + def configure(self): + if not self.options.CBC and not self.options.ECB and not self.options.CTR: + raise ConanException("Need to at least specify one of CBC, ECB or CTR modes") + def build(self): cmake = CMake(self) |