# https://sourceforge.net/projects/waave/files/waave/waave-3.01.tar.gz

### DEPENDS ###
DKDEPEND(ffmpeg-dev)
DKDEPEND(ffmpeg-shared)
DKDEPEND(ffmpeg-static)
DKDEPEND(sdl2)


### VERSION ###
DKSET(WAAVE_VERSION 3.01)
DKSET(WAAVE_NAME waave-${WAAVE_VERSION})
DKSET(WAAVE_DL https://sourceforge.net/projects/waave/files/waave/${WAAVE_NAME}.tar.gz)
DKSET(WAAVE ${3RDPARTY}/${WAAVE_NAME})


### INSTALL ###
DKINSTALL(${WAAVE_DL} waave ${WAAVE})


### LINK ###
DKINCLUDE(${WAAVE}/src)
WIN_DEBUG_LIB(${WAAVE}/${OS}/${DEBUG_DIR}/waave.lib)
WIN_RELEASE_LIB(${WAAVE}/${OS}/${RELEASE_DIR}/waave.lib)
APPLE_DEBUG_LIB(${WAAVE}/${OS}/${DEBUG_DIR}/libwaave.a)
APPLE_RELEASE_LIB(${WAAVE}/${OS}/${RELEASE_DIR}/libwaave.a)
LINUX_DEBUG_LIB(${WAAVE}/${OS}/${DEBUG_DIR}/libwaave.a)
LINUX_RELEASE_LIB(${WAAVE}/${OS}/${RELEASE_DIR}/libwaave.a)
ANDROID_DEBUG_LIB(${WAAVE}/${OS}/${DEBUG_DIR}/obj/local/armeabi-v7a/libwaave.a)
ANDROID_RELEASE_LIB(${WAAVE}/${OS}/${RELEASE_DIR}/obj/local/armeabi-v7a/libwaave.a)


### COMPILE ###
WIN_PATH(${WAAVE}/${OS})
WIN32_COMMAND(${DKCMAKE_WIN32} ${FFMPEG_WIN} ${SDL2_WIN} ${WAAVE})
WIN64_COMMAND(${DKCMAKE_WIN64} ${FFMPEG_WIN} ${SDL2_WIN} ${WAAVE})
WIN_VS(${WAAVE_NAME} waave.sln waave)


MAC_PATH(${WAAVE}/${OS})
MAC64_COMMAND(${DKCMAKE_MAC64} ${WAAVE})
MAC_XCODE(${WAAVE_NAME} waave)


IOS_PATH(${WAAVE}/${OS})
IOS64_COMMAND(${DKCMAKE_IOS64} ${WAAVE})
IOS_XCODE(${WAAVE_NAME} waave)


IOSSIM_PATH(${WAAVE}/${OS})
IOSSIM64_COMMAND(${DKCMAKE_IOSSIM64} ${WAAVE})
IOSSIM_XCODE(${WAAVE_NAME} waave)


LINUX_DEBUG_PATH(${WAAVE}/${OS}/${DEBUG_DIR})
LINUX_DEBUG_COMMAND(${DKCMAKE_LINUX_DEBUG} ${WAAVE})
LINUX_DEBUG_COMMAND(make waave)

LINUX_RELEASE_PATH(${WAAVE}/${OS}/${RELEASE_DIR})
LINUX_RELEASE_COMMAND(${DKCMAKE_LINUX_RELEASE} ${WAAVE})
LINUX_RELEASE_COMMAND(make waave)


ANDROID_NDK(${WAAVE_NAME})
