| 1 |
# SPDX-License-Identifier: Apache-2.0 |
| 2 |
# Copyright 2015 The Meson development team |
| 3 |
|
| 4 |
from __future__ import annotations |
| 5 |
import typing as T |
| 6 |
|
| 7 |
from ._qt import QtBaseModule |
| 8 |
from . import ModuleInfo |
| 9 |
|
| 10 |
if T.TYPE_CHECKING: |
| 11 |
from ..interpreter import Interpreter |
| 12 |
|
| 13 |
|
| 14 |
class Qt5Module(QtBaseModule): |
| 15 |
|
| 16 |
INFO = ModuleInfo('qt5') |
| 17 |
|
| 18 |
def __init__(self, interpreter: Interpreter): |
| 19 |
QtBaseModule.__init__(self, interpreter, qt_version=5) |
| 20 |
|
| 21 |
|
| 22 |
def initialize(interp: Interpreter) -> Qt5Module: |
| 23 |
return Qt5Module(interp) |