summaryrefslogtreecommitdiff
path: root/scripts/vendor
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-08-10 10:22:38 -0400
committerKonstantin Käfer <mail@kkaefer.com>2018-08-14 17:03:46 -0700
commita3b6fc149895a7f4c29acd6bba70546edec41438 (patch)
tree328880a17273390bd131af51481b9bcf8059fc21 /scripts/vendor
parentc96d9df798b9baba5134f4d22127b9ba044742b4 (diff)
downloadqtlocation-mapboxgl-a3b6fc149895a7f4c29acd6bba70546edec41438.tar.gz
[build] vendor std::expected polyfill
Diffstat (limited to 'scripts/vendor')
-rwxr-xr-xscripts/vendor/expected.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/vendor/expected.sh b/scripts/vendor/expected.sh
new file mode 100755
index 0000000000..58c98902f6
--- /dev/null
+++ b/scripts/vendor/expected.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
+
+NAME=expected
+VERSION=a2359cf61478d735a308e952b1c9840714f61386
+ROOT=expected-lite-$VERSION
+
+download "https://github.com/martinmoene/expected-lite/archive/$VERSION.tar.gz"
+init
+extract "$ROOT/include" "$ROOT/LICENSE.txt"
+mv include/nonstd/expected.hpp include
+rm -rf include/nonstd
+file_list include -name "*.hpp"