aboutsummaryrefslogtreecommitdiff
path: root/extra/json-c/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/json-c/build')
-rwxr-xr-xextra/json-c/build12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/json-c/build b/extra/json-c/build
new file mode 100755
index 00000000..7f4f480b
--- /dev/null
+++ b/extra/json-c/build
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=OFF
+
+cmake --build build
+cmake --install build