26 lines
575 B
Python
26 lines
575 B
Python
import shutil
|
|
|
|
from .base import Dependency, NoopBuilder, NoopSource
|
|
|
|
from kiwixbuild.utils import SkipCommand, colorize
|
|
|
|
|
|
class Qt(Dependency):
|
|
name = "qt"
|
|
|
|
Source = NoopSource
|
|
|
|
class Builder(NoopBuilder):
|
|
def build(self):
|
|
error_msg = f"""WARNING: kiwix-build cannot build {self.name} for you.
|
|
You must install it yourself using official Qt installer or your distribution system."""
|
|
print(colorize(error_msg, "WARNING"))
|
|
|
|
|
|
class QtWebEngine(Dependency):
|
|
name = "qtwebengine"
|
|
|
|
Source = NoopSource
|
|
|
|
Builder = Qt.Builder
|