(version=None, options=None)
| 119 | configure(version,options) |
| 120 | |
| 121 | def configure(version=None, options=None): |
| 122 | if version == "all": |
| 123 | if options: |
| 124 | raise RuntimeError("MSVC toolset configuration: options should be empty when '{}' is specified.".format(version)) |
| 125 | |
| 126 | # Configure (i.e. mark as used) all registered versions. |
| 127 | all_versions = __versions.all() |
| 128 | if not all_versions: |
| 129 | if debug(): |
| 130 | print "notice: [msvc-cfg] Asked to configure all registered" \ |
| 131 | "msvc toolset versions when there are none currently" \ |
| 132 | "registered." ; |
| 133 | else: |
| 134 | for v in all_versions: |
| 135 | # Note that there is no need to skip already configured |
| 136 | # versions here as this will request configure-really rule |
| 137 | # to configure the version using default options which will |
| 138 | # in turn cause it to simply do nothing in case the version |
| 139 | # has already been configured. |
| 140 | configure_really(v) |
| 141 | elif version == "default": |
| 142 | configure_really(None,options) |
| 143 | else: |
| 144 | configure_really(version, options) |
| 145 | |
| 146 | def extend_conditions(conditions,exts): |
| 147 | return [ cond + '/' + ext for cond in conditions for ext in exts ] |
no test coverage detected