File tree 3 files changed +7
-17
lines changed
3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 7
7
8
8
## Basic setup
9
9
10
- $ conan install . prometheus-cpp/0.7.0@steakhal/stable
10
+ $ conan install . prometheus-cpp/0.7.0@steakhal/stable -o prometheus-cpp:mode=pull
11
11
12
12
## Project setup
13
13
@@ -28,7 +28,7 @@ If you handle multiple dependencies in your project is better to add a *conanfil
28
28
29
29
Complete the installation of requirements for your project running:
30
30
31
- conan install . -o prometheus-cpp:mode=pull
31
+ conan install .
32
32
33
33
Project setup installs the library (and all his dependencies) and generates the files * conanbuildinfo.cmake* with all the
34
34
paths and variables that you need to link with your dependencies.
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ def package(self):
130
130
self .copy ('LICENSE' , dst = 'licenses' , src = self ._source_subfolder )
131
131
self .copy ('LICENSE.md' , dst = 'licenses' )
132
132
133
+ def imports (self ):
134
+ self .copy ("*.dll" , dst = "bin" , src = "bin" )
135
+ self .copy ("*.dylib" , dst = "bin" , src = "lib" )
136
+ self .copy ("*.so" , dst = "bin" , src = "lib" )
133
137
134
138
def package_info (self ):
135
139
if self .options .mode == 'pull' :
Original file line number Diff line number Diff line change @@ -25,21 +25,7 @@ def test(self):
25
25
if tools .cross_building (self .settings ):
26
26
self .output .warn ('Cross Building: Skipping Test Package' )
27
27
return
28
-
29
- libs = []
30
- libs .append (glob .glob (os .path .join (prometheus_path , 'bin' , '*.dll' )))
31
- libs .append (glob .glob (os .path .join (prometheus_path , 'lib' , '*.so' )))
32
- libs .append (glob .glob (os .path .join (prometheus_path , 'lib' , '*.dylib' )))
33
- dest_path = os .path .join (os .getcwd (), 'bin' )
34
- self .output .info ('Preparing to run test application:' )
35
-
36
- self .output .info (os .getcwd ())
37
- self .output .info (os .listdir (os .getcwd ()))
38
-
39
- for lib in [item for sublist in libs for item in sublist ]:
40
- self .output .info ('Copy %s to %s' % (lib , dest_path ))
41
- shutil .copy (src = lib , dst = 'bin' )
42
-
28
+
43
29
if self .options ['prometheus-cpp' ].mode == 'pull' :
44
30
sample_server_path = os .path .join ('bin' , 'sample_server' )
45
31
sample_server = subprocess .Popen ([sample_server_path ])
You can’t perform that action at this time.
0 commit comments