-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
37 lines (29 loc) · 1.07 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMake
class DataDrivenGameEngineRecipe(ConanFile):
name = "data-driven_game_engine"
package_type = "library"
generators = "CMakeDeps", "CMakeToolchain"
# Binary configuration
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = {"shared": False, "fPIC": True}
def requirements(self):
self.requires("gsl-lite/0.42.0")
self.requires("tsl-ordered-map/1.1.0")
self.requires("spdlog/1.15.1")
self.requires("glfw/3.4")
self.requires("vulkan-headers/1.3.296.0")
self.requires("glm/1.0.1")
self.requires("ktx/4.3.2")
self.requires("stb/cci.20240531")
self.requires("entt/3.14.0")
self.requires("catch2/3.8.0", test=True)
def layout(self):
cmake_layout(self)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package_info(self):
self.cpp_info.libs = ["engine"]