0001-Build-examples.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From 78f558df35860484711a600d155ae7a13ebf44b2 Mon Sep 17 00:00:00 2001
  2. From: =?utf-8?q?Ga=C3=ABl=20PORTAY?= <gael.portay@savoirfairelinux.com>
  3. Date: Tue, 28 Nov 2017 23:14:42 -0500
  4. Subject: [PATCH] Build examples
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=utf-8
  7. Content-Transfer-Encoding: 8bit
  8. This patch improves the qt5webkit examples build for 2 aspects:
  9. - Allows to build even if qt5base examples are not enabled
  10. - Builds xmlpatterns example only if the qt5xmlpattern package
  11. has been built
  12. Signed-off-by: Massimo Callegari <massimocallegari@yahoo.it>
  13. Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
  14. [gportay: build imageanalyzer example if concurrent module is built]
  15. ---
  16. examples/webkitwidgets/webkitwidgets.pro | 7 ++++---
  17. qtwebkit-examples.pro | 1 +
  18. 2 files changed, 5 insertions(+), 3 deletions(-)
  19. diff --git a/examples/webkitwidgets/webkitwidgets.pro b/examples/webkitwidgets/webkitwidgets.pro
  20. index ab20df4..67f6785 100644
  21. --- a/examples/webkitwidgets/webkitwidgets.pro
  22. +++ b/examples/webkitwidgets/webkitwidgets.pro
  23. @@ -4,9 +4,10 @@ SUBDIRS += domtraversal \
  24. previewer \
  25. fancybrowser \
  26. simpleselector \
  27. - imageanalyzer \
  28. framecapture \
  29. browser \
  30. embedded \
  31. - scroller \
  32. - xmlpatterns
  33. + scroller
  34. +
  35. +qtHaveModule(xmlpatterns): SUBDIRS += xmlpatterns
  36. +qtHaveModule(concurrent): SUBDIRS += imageanalyzer
  37. diff --git a/qtwebkit-examples.pro b/qtwebkit-examples.pro
  38. index 3fcecf1..2ade7ff 100644
  39. --- a/qtwebkit-examples.pro
  40. +++ b/qtwebkit-examples.pro
  41. @@ -3,3 +3,4 @@ requires(qtHaveModule(webkit))
  42. load(qt_parts)
  43. SUBDIRS += doc
  44. +SUBDIRS += examples
  45. --
  46. 2.15.0