mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Use opus built with cmake on Windows
This commit is contained in:
parent
ec064a904d
commit
0984e631fa
3 changed files with 20 additions and 11 deletions
14
.github/workflows/win.yml
vendored
14
.github/workflows/win.yml
vendored
|
@ -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: |
|
||||
|
|
|
@ -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
2
cmake
|
@ -1 +1 @@
|
|||
Subproject commit dbc1e4fb358faeda2abec4f32336eab1d7552922
|
||||
Subproject commit 1dacc0ac4fe2a5cb0237e7c89fe5dd8906e1593f
|
Loading…
Add table
Reference in a new issue