MCPcopy Create free account
hub / github.com/boostorg/build / prepare_suffix_map

Function prepare_suffix_map

v2/test/BoostBuild.py:101–126  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

99
100
101def 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
129def prepare_library_prefix(toolset):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected