Add conan option to change level size.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
39e1295013
commit
8420f143d7
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue