@@ -23,6 +23,8 @@ class Cloe(ConanFile):
23
23
24
24
"test" : True ,
25
25
"pedantic" : True ,
26
+
27
+ "cloe-engine:server" : True ,
26
28
}
27
29
generators = "cmake"
28
30
no_copy_source = True
@@ -38,30 +40,33 @@ def set_version(self):
38
40
self .version = git .run ("describe --dirty=-dirty" )[1 :]
39
41
40
42
def requirements (self ):
41
- self .requires ("boost/[~=1.69]" , override = True )
42
- self .requires ("fmt/[~=8.1.1]" , override = True )
43
- self .requires ("inja/[~=3.3.0]" , override = True )
44
- self .requires ("nlohmann_json/[~=3.10.5]" , override = True )
45
- self .requires ("incbin/[~=0.88.0]@cloe/stable" , override = True ),
46
- requires = [
47
- "cloe-runtime" ,
48
- "cloe-models" ,
49
- "cloe-plugin-basic" ,
50
- "cloe-plugin-gndtruth-extractor" ,
51
- "cloe-plugin-minimator" ,
52
- "cloe-plugin-mocks" ,
53
- "cloe-plugin-noisy-sensor" ,
54
- "cloe-plugin-speedometer" ,
55
- "cloe-plugin-virtue" ,
56
- ]
43
+ def cloe_requires (dep ):
44
+ self .requires (f"{ dep } /{ self .version } @cloe/develop" )
45
+
46
+ cloe_requires ("cloe-runtime" )
47
+ cloe_requires ("cloe-models" )
48
+ cloe_requires ("cloe-plugin-basic" )
49
+ cloe_requires ("cloe-plugin-gndtruth-extractor" )
50
+ cloe_requires ("cloe-plugin-minimator" )
51
+ cloe_requires ("cloe-plugin-mocks" )
52
+ cloe_requires ("cloe-plugin-noisy-sensor" )
53
+ cloe_requires ("cloe-plugin-speedometer" )
54
+ cloe_requires ("cloe-plugin-virtue" )
57
55
if self .options .with_vtd :
58
- requires . append ("cloe-plugin-vtd" )
56
+ cloe_requires ("cloe-plugin-vtd" )
59
57
58
+ boost_version = "[>=1.65.0]"
60
59
if self .options .with_engine :
61
- requires .append ("cloe-engine" )
60
+ cloe_requires ("cloe-engine" )
61
+ if self .options ["cloe-engine" ].server :
62
+ boost_version = "[<1.70]"
62
63
63
- for dep in requires :
64
- self .requires (f"{ dep } /{ self .version } @cloe/develop" )
64
+ # Overrides:
65
+ self .requires ("fmt/[~=8.1.1]" , override = True )
66
+ self .requires ("inja/[~=3.3.0]" , override = True )
67
+ self .requires ("nlohmann_json/[~=3.10.5]" , override = True )
68
+ self .requires ("incbin/[~=0.88.0]@cloe/stable" , override = True ),
69
+ self .requires (f"boost/{ boost_version } " , override = True )
65
70
66
71
def _configure_cmake (self ):
67
72
if self ._cmake :
0 commit comments