cmake_minimum_required(VERSION @CMAKE_MINIMUM_REQUIRED_VERSION@)
project(@DEPENDENCY@)

include(ExternalProject)

ExternalProject_Add(
  @DEPENDENCY@
  SOURCE_DIR        @EXULT_SOURCE_DIR@
  INSTALL_DIR       @DEPENDENCIES_INSTALL_DIR@
  CONFIGURE_COMMAND autoreconf -v -i <SOURCE_DIR>
            COMMAND . @ENVFILE@ && <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=@ANDROID_LLVM_TRIPLE@ --enable-libexult --enable-shared --disable-data --disable-tools --enable-zip-support --enable-midi-sfx --enable-mt32emu --disable-fluidsynth --disable-alsa --disable-timidity-midi --disable-oggtest --disable-vorbistest
  BUILD_COMMAND     make -j@NCPU@ -s LIBTOOLFLAGS="--silent"
)
