From 8420f143d7fcba111af7250e9b265de62710949a Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 20 Aug 2020 12:11:43 +0200 Subject: [PATCH] Add conan option to change level size. Signed-off-by: Deukhoofd --- conanfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index 6a6fc33..f4876a5 100644 --- a/conanfile.py +++ b/conanfile.py @@ -7,8 +7,8 @@ class CreatureLibConan(ConanFile): url = "https://git.p-epsilon.com/Deukhoofd/CreatureLib" description = "The core implementation for turn based battling using creatures." settings = "os", "compiler" - options = {"shared": [True, False], "staticC": [True, False]} - default_options = {"shared": True, "staticC": False} + options = {"shared": [True, False], "staticC": [True, False], "level_size": [8, 16, 32, 64]} + default_options = {"shared": True, "staticC": False, "level_size": 8} generators = "cmake" exports_sources = "*" compiler = "clang" @@ -25,6 +25,8 @@ class CreatureLibConan(ConanFile): if self.options.staticC: self.output.info("Linking C libraries statically") cmake.definitions["STATICC"] = "ON" + cmake.definitions["LEVEL_SIZE"] = self.options.level_size; + cmake.configure() cmake.build()