1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
from conans import ConanFile, CMake
class LibtcodSamplesConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
requires = (
"libtcod/[~=1.15]@hexdecimal/stable",
"sdl2/[~=2.0.5]@bincrafters/stable",
)
default_options = {"*:shared": True}
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def imports(self):
self.copy("*.dll", dst="bin", src="bin")
self.copy("*.pdb", dst="bin", src="bin")
self.copy("*.dylib*", dst="bin", src="lib")
self.copy("*.so*", dst="bin", src="lib")
|