blob: 06a6c56ebdab73ba075f91531c43e240b76d4c1d [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 "$top/tools/idea/native/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"