@@ -53,6 +53,7 @@ def find_binary_files() -> List[Path]:
53
53
)
54
54
return [Path (x ) for x in result .stdout .decode ().splitlines ()]
55
55
56
+
56
57
def remove_broken_symlinks () -> None :
57
58
"""Remove all broken symlinks that are in the vtd_folder."""
58
59
subprocess .run (
@@ -75,7 +76,7 @@ class VtdConan(ConanFile):
75
76
options = {
76
77
"with_osi" : [True , False ],
77
78
"with_road_designer" : [True , False ],
78
- "with_image_generator" : [True , False ],
79
+ "with_image_generator" : [True , False ],
79
80
}
80
81
default_options = {
81
82
"with_osi" : True ,
@@ -98,8 +99,7 @@ def export_sources(self):
98
99
99
100
def configure (self ):
100
101
if self .settings .os == "Windows" :
101
- raise ConanInvalidConfiguration (
102
- "VTD binaries do not exist for Windows" )
102
+ raise ConanInvalidConfiguration ("VTD binaries do not exist for Windows" )
103
103
104
104
def build (self ):
105
105
src = Path (self .source_folder )
@@ -130,11 +130,11 @@ def extract_archive(archive):
130
130
)
131
131
patch_rpath (
132
132
vtddir / "Runtime/Core/ModuleManager/lib/libVTDModulePlugin.so.2022" ,
133
- ["$ORIGIN/../../Lib" ]
133
+ ["$ORIGIN/../../Lib" ],
134
134
)
135
135
patch_rpath (
136
136
vtddir / "Runtime/Core/ModuleManager/lib/libprotobuf.so.9" ,
137
- ["$ORIGIN/../../Lib" ]
137
+ ["$ORIGIN/../../Lib" ],
138
138
)
139
139
patch_rpath (
140
140
vtddir / "Runtime/Core/ModuleManager/lib/libopen_simulation_interface.so" ,
@@ -145,7 +145,8 @@ def extract_archive(archive):
145
145
["$ORIGIN/../Lib" , "$ORIGIN/lib" ],
146
146
)
147
147
patch_rpath (
148
- vtddir / "Runtime/Core/ModuleManager.cxx98/lib/libopen_simulation_interface.so" ,
148
+ vtddir
149
+ / "Runtime/Core/ModuleManager.cxx98/lib/libopen_simulation_interface.so" ,
149
150
["$ORIGIN/../../Lib" , "$ORIGIN" ],
150
151
)
151
152
patch_rpath (
@@ -165,17 +166,17 @@ def extract_archive(archive):
165
166
["$ORIGIN/../../Lib" ],
166
167
)
167
168
patch_rpath (
168
- vtddir / "Runtime/Core/ModuleManager.cxx11/lib/libopen_simulation_interface.so" ,
169
+ vtddir
170
+ / "Runtime/Core/ModuleManager.cxx11/lib/libopen_simulation_interface.so" ,
169
171
["$ORIGIN/../../Lib" , "$ORIGIN" ],
170
172
)
171
173
patch_rpath (
172
174
vtddir / "Runtime/Core/ModuleManager.cxx11/lib/libprotobuf.so.9" ,
173
175
["$ORIGIN/../../Lib" ],
174
176
)
175
177
patch_rpath (
176
- vtddir /
177
- "Runtime/Core/ParamServer/paramServer.2022.3.40" , [
178
- "$ORIGIN/../Lib" ]
178
+ vtddir / "Runtime/Core/ParamServer/paramServer.2022.3.40" ,
179
+ ["$ORIGIN/../Lib" ],
179
180
)
180
181
patch_rpath (
181
182
vtddir / "Runtime/Core/Traffic/ghostdriver.2022.3.40_flexlm" ,
@@ -186,8 +187,11 @@ def extract_archive(archive):
186
187
for file in find_binary_files ():
187
188
try :
188
189
patch_rpath (
189
- file , [
190
- f"$ORIGIN/{ os .path .relpath (libdir , (dst / file ).parent )} " ]
190
+ file ,
191
+ [
192
+ f"$ORIGIN/{ os .path .relpath (libdir , (dst / file ).parent )} " ,
193
+ "$ORIGIN" ,
194
+ ],
191
195
)
192
196
except :
193
197
# Not all files can be set, but even if this happens it doesn't appear
0 commit comments