Skip to content

Commit 274a84e

Browse files
committed
Swith to conanfile.py
1 parent abe362e commit 274a84e

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

conanfile.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from conans import ConanFile, CMake
2+
3+
class SystemShockConan(ConanFile):
4+
settings = "os", "compiler", "build_type", "arch"
5+
# Comma-separated list of requirements
6+
build_requires = \
7+
"fluidsynth/2.0.5@bincrafters/stable", \
8+
"glew/2.1.0@bincrafters/stable", \
9+
"sdl2/2.0.9@bincrafters/stable", \
10+
"sdl2_mixer/2.0.4@bincrafters/stable"
11+
generators = "cmake_find_package"
12+
13+
def configure(self):
14+
if self.settings.os == "Linux":
15+
# Disable unused dependencies
16+
self.options["sdl2"].jack = False
17+
self.options["sdl2"].nas = False
18+
self.options["sdl2_mixer"].mad = False
19+
self.options["sdl2_mixer"].modplug = False
20+
self.options["sdl2_mixer"].mpg123 = False
21+
self.options["sdl2_mixer"].ogg = False
22+
self.options["sdl2_mixer"].opus = False
23+
self.options["sdl2_mixer"].tinymidi = False
24+

conanfile.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)