Create a variation of the library. A variation is a specific combination of settings a library can have. For example, libc++-mt-noexcept is a variation of libc++. There might be only one variation of a library. The constructor keyword arguments will define what variation to use.
(self)
| 394 | force_object_files = False |
| 395 | |
| 396 | def __init__(self): |
| 397 | """Create a variation of the library. |
| 398 | |
| 399 | A variation is a specific combination of settings a library can have. |
| 400 | For example, libc++-mt-noexcept is a variation of libc++. |
| 401 | There might be only one variation of a library. |
| 402 | |
| 403 | The constructor keyword arguments will define what variation to use. |
| 404 | |
| 405 | Use the `variations` classmethod to get the list of all possible constructor |
| 406 | arguments for this library. |
| 407 | |
| 408 | Use the `get_default_variation` classmethod to construct the variation |
| 409 | suitable for the current invocation of emscripten. |
| 410 | """ |
| 411 | if not self.name: |
| 412 | raise NotImplementedError('Cannot instantiate an abstract library') |
| 413 | |
| 414 | def can_use(self): |
| 415 | """Whether this library can be used in the current environment. |
nothing calls this directly
no outgoing calls
no test coverage detected