diff --git a/third_party/build.sh b/third_party/build.sh index 1989bb1..4ebaec3 100755 --- a/third_party/build.sh +++ b/third_party/build.sh @@ -61,6 +61,7 @@ function exec_script_external() { } +exec_script build_rnnoise.sh exec_script build_boringssl.sh [[ ${build_os_type} != "win32" ]] && exec_script build_breakpad.sh #Not required for windows TeaClient exec_script build_libevent.sh diff --git a/third_party/build_rnnoise.sh b/third_party/build_rnnoise.sh new file mode 100644 index 0000000..c32d1c2 --- /dev/null +++ b/third_party/build_rnnoise.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +[[ -z "${build_helper_file}" ]] && { + echo "Missing build helper file. Please define \"build_helper_file\"" + exit 1 +} +source ${build_helper_file} +[[ $build_helpers_defined -ne 1 ]] && { + echo "Failed to include build helpers." + exit 1 +} + + +library_path="rnnoise" +requires_rebuild ${library_path} +[[ $? -eq 0 ]] && exit 0 + +_fpic="" +[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC" +cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic}" -DRNNOISE_COMPILE_OPUS=OFF +check_err_exit ${library_path} "Failed to build rnnoise!" +set_build_successful ${library_path} diff --git a/third_party/mysqlconnector b/third_party/mysqlconnector deleted file mode 160000 index 7abcdc8..0000000 --- a/third_party/mysqlconnector +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7abcdc88c8235f02096e21b5bcd72e8312508f61 diff --git a/third_party/rnnnoise b/third_party/rnnnoise deleted file mode 160000 index d981adb..0000000 --- a/third_party/rnnnoise +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d981adb2e797216f456cfcf158f73761a29981f8 diff --git a/third_party/rnnoise b/third_party/rnnoise new file mode 160000 index 0000000..ad42339 --- /dev/null +++ b/third_party/rnnoise @@ -0,0 +1 @@ +Subproject commit ad42339dbd66e09755c09ac90c1f38e00062d1ef