input: binary: relative or absolute path (no @executable_path syntax) process: - first fix the rpath for the qt libs on which 'binary' depend - copy into the bundle of exepath the eventual libraries that are missing - (create the soft links) needed
(binary)
| 291 | |
| 292 | |
| 293 | def fix_binary(binary): |
| 294 | """ |
| 295 | input: |
| 296 | binary: relative or absolute path (no @executable_path syntax) |
| 297 | process: |
| 298 | - first fix the rpath for the qt libs on which 'binary' depend |
| 299 | - copy into the bundle of exepath the eventual libraries that are missing |
| 300 | - (create the soft links) needed ? |
| 301 | - do the same for all qt dependencies of binary (recursive) |
| 302 | """ |
| 303 | GlobalConfig.logger.debug('fix_binary({0})'.format(binary)) |
| 304 | |
| 305 | # loop on 'binary' dependencies |
| 306 | for dep in get_dependencies(binary): |
| 307 | if not fix_dependency(binary, dep): |
| 308 | GlobalConfig.logger.error('quitting early: couldn\'t fix dependency {0} of {1}'.format(dep, binary)) |
| 309 | return False |
| 310 | return True |
| 311 | |
| 312 | |
| 313 | def fix_main_binaries(): |
no test coverage detected