2020-02-09 12:22:54 +00:00
|
|
|
from conans import ConanFile, CMake
|
|
|
|
from conans.errors import ConanInvalidConfiguration
|
|
|
|
|
|
|
|
|
|
|
|
class PkmnLibConan(ConanFile):
|
|
|
|
name = "PkmnLib-Gen7"
|
|
|
|
license = "TODO"
|
|
|
|
url = "https://git.p-epsilon.com/Deukhoofd/PkmnLib"
|
|
|
|
description = "An implementation of CreatureLib to handle Pokemon battling."
|
|
|
|
settings = "os", "compiler", "build_type"
|
|
|
|
generators = "cmake"
|
|
|
|
exports_sources = "*"
|
|
|
|
compiler = "clang"
|
|
|
|
|
|
|
|
def build(self):
|
|
|
|
cmake = CMake(self)
|
|
|
|
self.output.info("Target OS: %s." % self.settings.os)
|
|
|
|
if self.settings.os == "Windows":
|
|
|
|
self.output.warn("Noticed Windows target, setting Cmake WINDOWS=On.")
|
|
|
|
cmake.definitions["WINDOWS"] = "On"
|
|
|
|
cmake.configure()
|
|
|
|
cmake.build()
|
|
|
|
|
|
|
|
def imports(self):
|
|
|
|
if self.settings.os == "Windows":
|
|
|
|
self.copy("*.dll", "bin", "bin")
|
|
|
|
|
|
|
|
def requirements(self):
|
2020-02-27 18:50:49 +00:00
|
|
|
self.requires("PkmnLib/latest@epsilon/master")
|