FileList
0.3.2
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
m
n
o
p
r
s
t
u
Functions
a
b
c
d
e
f
g
i
o
p
s
t
u
Variables
Typedefs
Enumerations
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Functions
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
v
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Typedefs
Related Symbols
Files
File List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
Concepts
Loading...
Searching...
No Matches
conanfile.py
Go to the documentation of this file.
1
from
conan
import
ConanFile
2
from
conan.tools.build
import
check_min_cppstd
3
from
conan.tools.files
import
load
4
from
conan.tools.cmake
import
CMakeToolchain, CMakeDeps, CMake, cmake_layout
5
import
os
6
import
re
7
8
required_conan_version =
">=1.50.0"
9
10
class
FileListRecipe
(ConanFile):
11
implements = [
"auto_shared_fpic"
]
12
name =
"file_list"
13
14
def
set_version
(self):
15
content = load(self, os.path.join(self.recipe_folder,
"CMakeLists.txt"
))
16
version = re.search(
"project\(FL VERSION (.*) LANGUAGES CXX\)"
, content).group(1)
17
self.
version
= version.strip()
18
14
def
set_version
(self):
…
19
# Optional metadata
20
license =
"MIT"
21
author =
"David Ledger davidledger@live.com.au"
22
url =
"https://gitlab.com/seppeon/file_list"
23
homepage =
"https://seppeon.gitlab.io/file_list/"
24
description =
"A library that helps you list, find and move files."
25
topics = (
"filesystem"
,
"c++20"
,
"file listing"
,
"file resolving"
,
"file moving"
)
26
requires =
"nlohmann_json/3.11.2"
,
"catch2/3.4.0"
27
build_policy =
"missing"
28
29
# Binary configuration
30
settings =
"os"
,
"compiler"
,
"build_type"
,
"arch"
31
options = {
32
"shared"
: [
True
,
False
],
33
"fPIC"
: [
True
,
False
]
34
}
35
default_options = {
36
"shared"
:
False
,
37
"fPIC"
:
True
38
}
39
40
# Sources are located in the same place as this recipe, copy them to the recipe
41
exports_sources =
"CMakeLists.txt"
,
"readme.md"
,
"LICENSE.txt"
,
"src/*"
,
"cmake/*"
,
"test/*"
,
"include/*"
,
"private/*"
,
"apps/*"
,
"docs/*"
42
43
def
config_options
(self):
44
if
self.
settings
.os ==
"Windows"
:
45
del self.
options
.fPIC
46
43
def
config_options
(self):
…
47
def
generate
(self):
48
tc = CMakeToolchain(self)
49
tc.generate()
50
deps = CMakeDeps(self)
51
deps.generate()
52
47
def
generate
(self):
…
53
def
layout
(self):
54
cmake_layout(self)
55
53
def
layout
(self):
…
56
def
validate
(self):
57
if
self.
settings
.compiler.get_safe(
"cppstd"
):
58
check_min_cppstd(self,
"20"
)
59
56
def
validate
(self):
…
60
def
build
(self):
61
cmake = CMake(self)
62
cmake.configure()
63
cmake.build()
64
60
def
build
(self):
…
65
def
package
(self):
66
cmake = CMake(self)
67
cmake.install()
68
65
def
package
(self):
…
69
def
package_info
(self):
70
self.cpp_info.set_property(
"cmake_file_name"
,
"FL"
)
71
self.cpp_info.set_property(
"cmake_target_name"
,
"FL::FL"
)
72
self.cpp_info.set_property(
"pkg_config_name"
,
"FL"
)
73
self.cpp_info.libs = [
"FL"
]
69
def
package_info
(self):
…
10
class
FileListRecipe
(ConanFile):
…
conanfile.FileListRecipe
Definition
conanfile.py:10
conanfile.FileListRecipe.set_version
set_version(self)
Definition
conanfile.py:14
conanfile.FileListRecipe.version
version
Definition
conanfile.py:17
conanfile.FileListRecipe.settings
str settings
Definition
conanfile.py:30
conanfile.FileListRecipe.config_options
config_options(self)
Definition
conanfile.py:43
conanfile.FileListRecipe.package_info
package_info(self)
Definition
conanfile.py:69
conanfile.FileListRecipe.layout
layout(self)
Definition
conanfile.py:53
conanfile.FileListRecipe.validate
validate(self)
Definition
conanfile.py:56
conanfile.FileListRecipe.package
package(self)
Definition
conanfile.py:65
conanfile.FileListRecipe.options
dict options
Definition
conanfile.py:31
conanfile.FileListRecipe.build
build(self)
Definition
conanfile.py:60
conanfile.FileListRecipe.generate
generate(self)
Definition
conanfile.py:47
conanfile.py
Generated by
1.9.8