-
Notifications
You must be signed in to change notification settings - Fork 1
/
conanfile.py
38 lines (33 loc) · 1.01 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
38
from conans import ConanFile, CMake
class CarmaBypass(ConanFile):
name = "rec2"
description = "Carmageddon II, revisited"
settings = "os", "arch", "compiler", "build_type"
generators = "cmake"
options = {
"hook": [True, False],
}
default_options = {
"hook": True,
"libtiff:lzma": False,
"libtiff:jpeg": False,
"libtiff:zlib": False,
"libtiff:libdeflate": False,
"libtiff:zstd": False,
"libtiff:jbig": False,
"libtiff:webp": False,
"libtiff:cxx": False,
}
def requirements(self):
if self.options.hook:
self.requires("detours/cci.20220630")
self.requires("libtiff/4.4.0")
def validate(self):
assert self.settings.os == "Windows"
assert self.settings.arch == "x86"
def build(self):
cmake = CMake(self)
cmake.generator = "Ninja"
cmake.definitions["C2_STANDALONE"] = not self.options.hook
cmake.configure()
cmake.build()