forked from mathworks/llfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
97 lines (72 loc) · 2.8 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#=##=##=#==#=#==#===#+==#+==========+==+=+=+=+=+=++=+++=+++++=-++++=-+++++++++++
#
# Part of the LLFS Project, under Apache License v2.0.
# See https://www.apache.org/licenses/LICENSE-2.0 for license information.
# SPDX short identifier: Apache-2.0
#
#+++++++++++-+-+--+----- --- -- - - - -
from conan import ConanFile
import os, sys, platform
#==#==========+==+=+=++=+++++++++++-+-+--+----- --- -- - - - -
# Import batt helper utilities module.
#
import script.batt
from script.batt import VISIBLE, OVERRIDE
#
#+++++++++++-+-+--+----- --- -- - - - -
class LlfsConan(ConanFile):
name = "llfs"
#----- --- -- - - - -
# version is set automatically from Git tags - DO NOT SET IT HERE
#----- --- -- - - - -
license = "Apache Public License 2.0"
author = "The MathWorks, Inc."
url = "https://github.com/mathworks/llfs"
description = "Low-Level File System Utilities (C++)"
settings = "os", "compiler", "build_type", "arch"
options = {
"shared": [True, False],
}
default_options = {
"shared": False,
}
build_policy = "missing"
exports = [
"script/*.py",
"script/*.sh",
]
exports_sources = [
"src/CMakeLists.txt",
"src/**/*.hpp",
"src/**/*.ipp",
"src/**/*.cpp",
]
#+++++++++++-+-+--+----- --- -- - - - -
def configure(self):
self.options["gtest"].shared = False
self.options["boost"].shared = False
self.options["boost"].without_test = True
self.options["batteries"].with_glog = True
self.options["batteries"].header_only = False
def requirements(self):
self.requires("batteries/0.52.4", **VISIBLE)
self.requires("boost/1.83.0", **VISIBLE)
self.requires("cli11/2.3.2", **VISIBLE)
self.requires("glog/0.6.0", **VISIBLE)
self.requires("gtest/1.14.0", **VISIBLE)
self.requires("libbacktrace/cci.20210118", **VISIBLE)
self.requires("openssl/3.2.0", **VISIBLE)
self.requires("zlib/1.3", **OVERRIDE)
if platform.system() == "Linux":
self.requires("liburing/2.4", **VISIBLE)
self.requires("libfuse/3.16.2", **VISIBLE)
self.requires("libunwind/1.7.2", **VISIBLE, **OVERRIDE)
#+++++++++++-+-+--+----- --- -- - - - -
from script.batt import set_version_from_git_tags as set_version
from script.batt import cmake_in_src_layout as layout
from script.batt import default_cmake_generate as generate
from script.batt import default_cmake_build as build
from script.batt import default_cmake_lib_package as package
from script.batt import default_lib_package_info as package_info
from script.batt import default_lib_package_id as package_id
#+++++++++++-+-+--+----- --- -- - - - -