Set up suffix translation performed by the Boost Build testing framework to accomodate different toolsets generating targets of the same type using different filename extensions (suffixes).
(toolset)
| 99 | |
| 100 | |
| 101 | def prepare_suffix_map(toolset): |
| 102 | """ |
| 103 | Set up suffix translation performed by the Boost Build testing framework |
| 104 | to accomodate different toolsets generating targets of the same type using |
| 105 | different filename extensions (suffixes). |
| 106 | |
| 107 | """ |
| 108 | global suffixes |
| 109 | suffixes = {} |
| 110 | if windows: |
| 111 | if toolset == "gcc": |
| 112 | suffixes[".lib"] = ".a" # mingw static libs use suffix ".a". |
| 113 | suffixes[".obj"] = ".o" |
| 114 | if cygwin: |
| 115 | suffixes[".implib"] = ".lib.a" |
| 116 | else: |
| 117 | suffixes[".implib"] = ".lib" |
| 118 | else: |
| 119 | suffixes[".exe"] = "" |
| 120 | suffixes[".dll"] = ".so" |
| 121 | suffixes[".lib"] = ".a" |
| 122 | suffixes[".obj"] = ".o" |
| 123 | suffixes[".implib"] = ".no_implib_files_on_this_platform" |
| 124 | |
| 125 | if hasattr(os, "uname") and os.uname()[0] == "Darwin": |
| 126 | suffixes[".dll"] = ".dylib" |
| 127 | |
| 128 | |
| 129 | def prepare_library_prefix(toolset): |
no outgoing calls
no test coverage detected