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

include(ExternalProject)

ExternalProject_Add(
  @DEPENDENCY@
  GIT_REPOSITORY    https://github.com/xiph/ogg.git
  GIT_TAG           v1.3.6
  INSTALL_DIR       @DEPENDENCIES_INSTALL_DIR@
  CONFIGURE_COMMAND <SOURCE_DIR>/autogen.sh
  COMMAND           . @ENVFILE@ && <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=@ANDROID_LLVM_TRIPLE@
  BUILD_COMMAND     make -j@NCPU@ -s LIBTOOLFLAGS="--silent"
)
