-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
25 lines (21 loc) · 808 Bytes
/
conanfile.py
File metadata and controls
25 lines (21 loc) · 808 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
25
from conans import ConanFile, CMake, tools
class SourceModAddonManager(ConanFile):
generators = "cmake"
settings = "os", "compiler", "build_type", "arch"
requires = (
"cmake_installer/3.14.5@conan/stable",
("zlib/1.2.9@conan/stable", "override"),
"boost/1.71.0@conan/stable",
"gtest/1.8.1@bincrafters/stable",
"pugixml/1.9@bincrafters/stable",
"libzip/1.2.0@bincrafters/stable",
"libcurl/7.64.1@bincrafters/stable",
"jsonformoderncpp/3.6.1@vthiery/stable"
)
def build(self):
cmake = CMake(self)
if tools.get_env("ISOLATED", False):
cmake.definitions["ISOLATED"] = 1
cmake.definitions["CMAKE_BUILD_TYPE"] = str(self.settings.build_type)
cmake.configure()
cmake.build()