2024-07-08 00:44:20 +00:00
|
|
|
from conan import ConanFile
|
|
|
|
from conan.tools.cmake import cmake_layout, CMake
|
|
|
|
|
|
|
|
|
2024-09-25 18:33:46 +00:00
|
|
|
class TownEngine(ConanFile):
|
2024-07-08 00:44:20 +00:00
|
|
|
settings = 'os', 'compiler', 'build_type', 'arch'
|
|
|
|
generators = 'CMakeToolchain', 'CMakeDeps'
|
|
|
|
|
|
|
|
def requirements(self):
|
2024-09-25 18:33:46 +00:00
|
|
|
self.requires('sdl/2.30.7')
|
2024-07-08 00:44:20 +00:00
|
|
|
|
|
|
|
def build_requirements(self):
|
|
|
|
self.tool_requires('cmake/3.22.6')
|
|
|
|
|
|
|
|
def layout(self):
|
|
|
|
cmake_layout(self)
|
|
|
|
|
|
|
|
def build(self):
|
|
|
|
cmake = CMake(self)
|
|
|
|
cmake.configure()
|
|
|
|
cmake.build()
|