blob: b49f2eda65c40601be5d26303293d6bf7f4a6807 [file] [log] [blame]
#!/bin/sh
function usage() {
declare -r prog="${0##*/}"
cat <<EOF
Usage:
$prog [-o <out_dit>] [-d <dist_dir>]
Builds mac fsNotifier.
Library is built in <out_dir> (or "out" if unset).
If <dist_dir> is set, `fsnotifier` artifact is created there.
EOF
exit 1
}
source $(dirname $0)/build-mac-common.sh
# Make
(
cd "$out_dir"
"$cmake_bin" -DCMAKE_BUILD_TYPE=Release "$script_dir/fsNotifier/mac"
"$cmake_bin" --build .
)
verifyArchs "$out_dir/fsnotifier"
# Copy to Dist
[[ -n "${dist_dir:-}" ]] || exit 0
cp "$out_dir/fsnotifier" "$dist_dir"
echo "Built $dist_dir/fsnotifier"