This repository has been archived by the owner on Oct 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
67 lines (56 loc) · 2.16 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from conans import ConanFile, CMake
class InexorConan(ConanFile):
settings = (
"os",
"compiler",
"build_type",
"arch"
)
requires = (
"benchmark/1.5.0",
"glm/0.9.9.8",
"gtest/1.10.0",
"spdlog/1.5.0",
"nlohmann_json/3.7.3",
"boost_property_tree/1.69.0@bincrafters/stable",
"boost_signals2/1.69.0@bincrafters/stable",
"boost_range/1.69.0@bincrafters/stable",
"freetype/2.10.1",
"magic_enum/0.6.3@neargye/stable",
"boost-di/1.1.0@inexorgame/stable",
"boost-te/19.Jan.19@inexorgame/stable",
"cpp.react/legacy1@inexorgame/stable",
"crossguid/06-03-19@inexorgame/testing",
"magnum/2019.01@inexorgame/testing",
"magnum_plugins/2019.01@inexorgame/testing"
)
generators = "cmake"
default_options = {
"magnum:build_plugins_static": True,
"magnum:with_glfwapplication": True,
"magnum:with_sdl2application": False,
"magnum:with_audio": True,
"magnum:with_anyaudioimporter": True,
"magnum:with_anyimageimporter": True,
"magnum:with_anyimageconverter": True,
"magnum:with_anysceneimporter": True,
"magnum_plugins:with_tinygltfimporter": True,
"magnum_plugins:with_stbimageimporter": True,
"magnum_plugins:with_stbimageconverter": True,
"magnum_plugins:with_stbvorbisaudioimporter": True,
"magnum_plugins:with_stbtruetypefont": True,
"magnum_plugins:with_freetypefont": True,
"magnum_plugins:build_plugins_static": True,
"TBB:shared": True,
}
def imports(self):
# Copies all dll files from packages bin folder to my "bin" folder (win)
self.copy("*.dll", dst="bin", src="bin")
# Copies all dylib files from packages lib folder to my "lib" folder (macosx)
self.copy("*.dylib*", dst="lib", src="lib") # From lib to lib
# Copies all so files from packages lib folder to my "lib" folder (linux)
self.copy("*.so*", dst="lib", src="lib") # From lib to lib
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()