actions.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import qt6
  10. from pisi.actionsapi import get
  11. def setup():
  12. # shelltools.system("mkdir .git")
  13. # pisitools.dosed(".qmake.conf", "5.15.10", "5.15.5")
  14. #shelltools.unlinkDir("src/3rdparty")
  15. #shelltools.move("../qtwebengine-chromium-*", "src/3rdparty")
  16. #shelltools.system("mkdir src/3rdparty/chromium/.git")
  17. #shelltools.system("patch -p1 < qtwebengine-5.15.7-build_fixes-1.patch")
  18. # shelltools.system("patch -p1 < qtwebengine-everywhere-src-5.15.5-TRUE.patch")
  19. # shelltools.system("sed -i 's/NINJAJOBS/NINJA_JOBS/' src/core/gn_run.pro")
  20. #shelltools.copy("qtwebengine-release.sh", "%s/qtwebengine-release.sh" % get.workDIR())
  21. #shelltools.cd("%s" % get.workDIR())
  22. #shelltools.system("sh ./qtwebengine-release.sh")
  23. #shelltools.cd("qtwebengine-everywhere-opensource-src-%s" % get.srcVERSION())
  24. # Disable jumbo build https://bugreports.qt.io/browse/QTBUG-88657 gcc10
  25. # shelltools.system("sed -i 's|use_jumbo_build=true|use_jumbo_build=false|' -i src/buildtools/config/common.pri")
  26. #shelltools.system("sh ./qtwebengine-release.sh")
  27. #shelltools.system("git submodule init")
  28. #shelltools.system("git submodule update")
  29. # shelltools.makedirs("build")
  30. # shelltools.cd("build")
  31. #shelltools.export("QT5LINK", "/usr/lib/qt6/bin")
  32. #shelltools.export("QT5DIR", "/usr/lib/qt6")
  33. #shelltools.export("CFLAGS", "%s -I/usr/lib/sqlite3.16.2" % get.CFLAGS())
  34. #shelltools.system("qmake WEBENGINE_CONFIG+=use_proprietary_codecs WEBENGINE_CONFIG+=use_system_icu WEBENGINE_CONFIG+=use_system_protobuf WEBENGINE_CONFIG+=use_system_ffmpeg qtwebengine.pro")
  35. #pisitools.ldflags.add("-Wl,--no-keep-memory ")
  36. #shelltools.export("NINJAJOBS", "-j 4")
  37. # shelltools.system("qmake .. -- -proprietary-codecs \
  38. # -system-ffmpeg \
  39. # -system-webp \
  40. # -system-opus \
  41. # -spellchecker \
  42. # -webengine-icu \
  43. # -webengine-kerberos \
  44. # -webengine-webrtc-pipewire")
  45. qt6.configure(" -DCMAKE_TOOLCHAIN_FILE=/usr/lib/cmake/Qt6/qt.toolchain.cmake \
  46. -DQT_FEATURE_webengine_system_ffmpeg=ON \
  47. -DQT_FEATURE_webengine_system_icu=ON \
  48. -DQT_FEATURE_webengine_system_libevent=ON \
  49. -DQT_FEATURE_webengine_proprietary_codecs=ON \
  50. -DQT_FEATURE_webengine_kerberos=ON \
  51. -DQT_FEATURE_webengine_system_re2=OFF \
  52. -DQT_FEATURE_webengine_webrtc_pipewire=ON")
  53. def build():
  54. # shelltools.cd("build")
  55. qt6.make()
  56. def install():
  57. # shelltools.cd("build")
  58. qt6.install()
  59. #I hope qtchooser will manage this issue
  60. #for bin in shelltools.ls("%s/usr/lib/qt6/bin" % get.installDIR()):
  61. #pisitools.dosym("/usr/lib/qt6/bin/%s" % bin, "/usr/bin/%s-qt6" % bin)
  62. # shelltools.cd("..")
  63. pisitools.dodoc("LICENSES/**")