Add conan option to change level size.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-08-20 12:11:43 +02:00
parent 39e1295013
commit 8420f143d7
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 2 deletions

View File

@ -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()