diff options
author | Christian Dywan <christian@twotoasts.de> | 2018-08-27 18:26:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-27 18:26:15 +0200 |
commit | fc7ef0d06a1d7a51c809af1080b8c85c1e3682a7 (patch) | |
tree | 783e779286e430c323b429b8595b506f2d7fc046 | |
parent | ce24c734ff329d4a1826ea2b4a0cb2d425b5891f (diff) | |
download | midori-git-fc7ef0d06a1d7a51c809af1080b8c85c1e3682a7.tar.gz |
Check for availability of xmllint (#17)
xmllint is used by the gresource compiler to reduce whitespace if `xml-stripblanks` is specified.
-rw-r--r-- | data/CMakeLists.txt | 5 | ||||
-rw-r--r-- | snap/snapcraft.yaml | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 8e86bd49..b83a45b9 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,5 +1,10 @@ # Copyright (C) 2013-2018 Christian Dywan <christian@twotoasts.de> +find_program (XMLLINT_EXECUTABLE xmllint) +if (NOT XMLLINT_EXECUTABLE) + message(FATAL_ERROR "xmllint not found") +endif () + include(FindIntltool) if (NOT INTLTOOL_MERGE_FOUND) message(FATAL_ERROR "intltool-merge not found") diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 8d49aa10..6e1316d2 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -72,6 +72,7 @@ parts: - libsqlite3-dev - intltool - ninja-build + - libxml2-utils # xmllint stage-packages: - libwebkit2gtk-4.0-37 - libgcr-base-3-1 |