|
3 | 3 |
|
4 | 4 |
|
5 | 5 | class ClioConan(ConanFile): |
6 | | - name = 'clio' |
7 | | - license = 'ISC' |
8 | | - author = 'Alex Kremer <akremer@ripple.com>, John Freeman <jfreeman@ripple.com>, Ayaz Salikhov <asalikhov@ripple.com>' |
9 | | - url = 'https://github.com/xrplf/clio' |
10 | | - description = 'Clio RPC server' |
11 | | - settings = 'os', 'compiler', 'build_type', 'arch' |
| 6 | + name = "clio" |
| 7 | + license = "ISC" |
| 8 | + author = "Alex Kremer <akremer@ripple.com>, John Freeman <jfreeman@ripple.com>, Ayaz Salikhov <asalikhov@ripple.com>" |
| 9 | + url = "https://github.com/xrplf/clio" |
| 10 | + description = "Clio RPC server" |
| 11 | + settings = "os", "compiler", "build_type", "arch" |
12 | 12 | options = {} |
13 | 13 |
|
14 | 14 | requires = [ |
15 | | - 'boost/1.83.0', |
16 | | - 'cassandra-cpp-driver/2.17.0', |
17 | | - 'protobuf/3.21.12', |
18 | | - 'grpc/1.50.1', |
19 | | - 'openssl/1.1.1w', |
20 | | - 'xrpl/3.0.0-rc1', |
21 | | - 'zlib/1.3.1', |
22 | | - 'libbacktrace/cci.20210118', |
23 | | - 'spdlog/1.16.0', |
| 15 | + "boost/1.83.0", |
| 16 | + "cassandra-cpp-driver/2.17.0", |
| 17 | + "protobuf/3.21.12", |
| 18 | + "grpc/1.50.1", |
| 19 | + "openssl/1.1.1w", |
| 20 | + "xrpl/3.0.0-rc1", |
| 21 | + "zlib/1.3.1", |
| 22 | + "libbacktrace/cci.20210118", |
| 23 | + "spdlog/1.16.0", |
24 | 24 | ] |
25 | 25 |
|
26 | 26 | default_options = { |
27 | | - 'xrpl/*:tests': False, |
28 | | - 'xrpl/*:rocksdb': False, |
29 | | - 'cassandra-cpp-driver/*:shared': False, |
30 | | - 'date/*:header_only': True, |
31 | | - 'grpc/*:shared': False, |
32 | | - 'grpc/*:secure': True, |
33 | | - 'libpq/*:shared': False, |
34 | | - 'lz4/*:shared': False, |
35 | | - 'openssl/*:shared': False, |
36 | | - 'protobuf/*:shared': False, |
37 | | - 'protobuf/*:with_zlib': True, |
38 | | - 'snappy/*:shared': False, |
39 | | - 'gtest/*:no_main': True, |
| 27 | + "xrpl/*:tests": False, |
| 28 | + "xrpl/*:rocksdb": False, |
| 29 | + "cassandra-cpp-driver/*:shared": False, |
| 30 | + "date/*:header_only": True, |
| 31 | + "grpc/*:shared": False, |
| 32 | + "grpc/*:secure": True, |
| 33 | + "libpq/*:shared": False, |
| 34 | + "lz4/*:shared": False, |
| 35 | + "openssl/*:shared": False, |
| 36 | + "protobuf/*:shared": False, |
| 37 | + "protobuf/*:with_zlib": True, |
| 38 | + "snappy/*:shared": False, |
| 39 | + "gtest/*:no_main": True, |
40 | 40 | } |
41 | 41 |
|
42 | | - exports_sources = ( |
43 | | - 'CMakeLists.txt', 'cmake/*', 'src/*' |
44 | | - ) |
| 42 | + exports_sources = ("CMakeLists.txt", "cmake/*", "src/*") |
45 | 43 |
|
46 | 44 | def requirements(self): |
47 | | - self.requires('gtest/1.14.0') |
48 | | - self.requires('benchmark/1.9.4') |
49 | | - self.requires('fmt/12.1.0', force=True) |
| 45 | + self.requires("gtest/1.14.0") |
| 46 | + self.requires("benchmark/1.9.4") |
| 47 | + self.requires("fmt/12.1.0", force=True) |
50 | 48 |
|
51 | 49 | def configure(self): |
52 | | - if self.settings.compiler == 'apple-clang': |
53 | | - self.options['boost'].visibility = 'global' |
| 50 | + if self.settings.compiler == "apple-clang": |
| 51 | + self.options["boost"].visibility = "global" |
54 | 52 |
|
55 | 53 | def layout(self): |
56 | 54 | cmake_layout(self) |
57 | 55 | # Fix this setting to follow the default introduced in Conan 1.48 |
58 | 56 | # to align with our build instructions. |
59 | | - self.folders.generators = 'build/generators' |
| 57 | + self.folders.generators = "build/generators" |
60 | 58 |
|
61 | | - generators = 'CMakeDeps' |
| 59 | + generators = "CMakeDeps" |
62 | 60 |
|
63 | 61 | def generate(self): |
64 | 62 | tc = CMakeToolchain(self) |
|
0 commit comments