#!/usr/bin/env bash

set -e

# fixes the focus-stealing bug on macOS and seems to improve performance
export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true'

# ensure that JAVA_HOME is set
export JAVA_HOME=${JAVA_HOME:-`asdf where java`}

ant generate-all

ant compile

ant compile_native

