2021-09-19 07:46:47 +02:00
|
|
|
if(NOT WIN32 AND USE_G719)
|
|
|
|
FetchDependency(G719
|
|
|
|
DIR libg719_decode
|
|
|
|
GIT_REPOSITORY https://github.com/kode54/libg719_decode
|
2023-01-15 22:44:52 +01:00
|
|
|
GIT_TAG da90ad8a676876c6c47889bcea6a753f9bbf7a73
|
2023-01-22 15:10:43 +01:00
|
|
|
GIT_UNSHALLOW ON
|
2021-09-19 07:46:47 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if(G719_PATH)
|
2021-10-23 09:48:06 +02:00
|
|
|
set(G719_LINK_PATH ${G719_BIN}/libg719_decode.a)
|
|
|
|
|
2021-09-19 07:46:47 +02:00
|
|
|
configure_file(
|
2023-01-15 20:10:21 +01:00
|
|
|
${VGM_SOURCE_DIR}/ext_libs/extra/libg719_decode/CMakeLists.txt
|
2021-09-19 07:46:47 +02:00
|
|
|
${G719_PATH}/CMakeLists.txt
|
|
|
|
COPYONLY)
|
2021-10-23 09:48:06 +02:00
|
|
|
|
|
|
|
if(EXISTS ${G719_LINK_PATH})
|
|
|
|
add_library(g719_decode STATIC IMPORTED)
|
|
|
|
set_target_properties(g719_decode PROPERTIES
|
|
|
|
IMPORTED_LOCATION ${G719_LINK_PATH}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
add_subdirectory(${G719_PATH} ${G719_BIN} EXCLUDE_FROM_ALL)
|
|
|
|
endif()
|
2021-09-19 07:46:47 +02:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(NOT USE_G719)
|
|
|
|
unset(G719_SOURCE)
|
|
|
|
endif()
|