1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

Merge commit 'b19a54d2f9d8a3e83366c638aace4cf3b5daa96e' as 'build/dobuild'

This commit is contained in:
nosamad
2020-05-25 23:24:23 +02:00
95 changed files with 7843 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/sh
. DoBuildFiles/generic.properties
. DoBuildFiles/cmake.properties
camelcase() {
echo "$@" | sed -r 's/(^|_)([a-z])/\U\2/g'
}
if [ -f "${CMAKE_TOOLCHAIN_FILE}" ]; then
set -- "$@" "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}"
fi
if [ -n "$BUILD_TESTING" ]; then
set -- "$@" "-DBUILD_TESTING=ON"
fi
set -- "$@" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON "-DCMAKE_BUILD_TYPE=$(camelcase "$VARIANT")" "-G${CMAKE_GENERATOR}" "-B${PWD}" "$PROJECTDIR"
[ -z "$VERBOSE" ] || set -x
exec cmake "$@"