Use opus built with cmake on Windows

This commit is contained in:
Ilya Fedin 2021-09-24 22:43:30 +04:00 committed by John Preston
parent ec064a904d
commit 0984e631fa
3 changed files with 20 additions and 11 deletions

View File

@ -259,12 +259,16 @@ jobs:
- name: Opus.
if: steps.cache-opus.outputs.cache-hit != 'true'
run: |
git clone %GIT%/telegramdesktop/opus.git
git clone -b v1.3.1 %GIT%/xiph/opus.git
cd opus
git checkout tdesktop
cd win32\VS2015
msbuild -m opus.sln /property:Configuration=Debug /property:Platform="Win32"
msbuild -m opus.sln /property:Configuration=Release /property:Platform="Win32"
cmake -B out . ^
-A Win32 ^
-DCMAKE_INSTALL_PREFIX=%LibrariesPath%/local/opus ^
-DCMAKE_C_FLAGS_DEBUG="/MTd /Zi /Ob0 /Od /RTC1" ^
-DCMAKE_C_FLAGS_RELEASE="/MT /O2 /Ob2 /DNDEBUG"
cmake --build out --config Debug
cmake --build out --config Release
cmake --install out --config Release
- name: Rnnoise.
run: |

View File

@ -379,7 +379,7 @@ def runStages():
stage('patches', """
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout 9d2a07ba8b
git checkout 52e847920f
""")
stage('depot_tools', """
@ -499,13 +499,18 @@ mac:
""")
stage('opus', """
git clone -b td-v1.3.1 https://github.com/telegramdesktop/opus.git
git clone -b v1.3.1 https://github.com/xiph/opus.git
cd opus
win:
cd win32\\VS2015
msbuild opus.sln /property:Configuration=Debug /property:Platform="%WIN32X64%"
cmake -B out . ^
-A %WIN32X64% ^
-DCMAKE_INSTALL_PREFIX=%LIBS_DIR%/local/opus ^
-DCMAKE_C_FLAGS_DEBUG="/MTd /Zi /Ob0 /Od /RTC1" ^
-DCMAKE_C_FLAGS_RELEASE="/MT /O2 /Ob2 /DNDEBUG"
cmake --build out --config Debug
release:
msbuild opus.sln /property:Configuration=Release /property:Platform="%WIN32X64%"
cmake --build out --config Release
cmake --install out --config Release
mac:
./autogen.sh
CFLAGS="$MIN_VER $UNGUARDED" CPPFLAGS="$MIN_VER $UNGUARDED" LDFLAGS="$MIN_VER" ./configure --prefix=$USED_PREFIX

2
cmake

@ -1 +1 @@
Subproject commit dbc1e4fb358faeda2abec4f32336eab1d7552922
Subproject commit 1dacc0ac4fe2a5cb0237e7c89fe5dd8906e1593f