-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconanfile.py
More file actions
24 lines (20 loc) · 791 Bytes
/
conanfile.py
File metadata and controls
24 lines (20 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from conan import ConanFile
from conan.tools.cmake import CMake, cmake_layout, CMakeDeps, CMakeToolchain
class LiRi(ConanFile):
settings = "os", "compiler", "build_type", "arch"
requires = "sdl/2.32.10", "sdl_mixer/2.8.1", "openssl/1.1.1w"
tool_requires = "cmake/4.2.1"
def layout(self):
cmake_layout(self)
def configure(self):
self.options["sdl_mixer/*"].mpg123 = False
self.options["sdl_mixer/*"].opus = False
self.options["sdl_mixer/*"].ogg = False
self.options["sdl_mixer/*"].flac = False
self.options["sdl_mixer/*"].mad = False
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.user_presets_path = 'ConanPresets.json'
tc.generate()